MoiCJarod
Posts: 1
Joined: Tue Jul 04, 2017 9:04 am

Re: Programmatically turn screen off

Tue Jul 04, 2017 9:17 am

Hello,

For my installation, I was able to reactivate the screen by adding a

Code: Select all

fbset -depth 32
after the two

Code: Select all

fbset -depth 8
fbset -depth 16
Maybe because framebuffer is now in 32 bits and not 16 ? I am on a raspberry pi 3.

Thanks for the help provided on this page !

Cheers !

User avatar
jojopi
Posts: 3041
Joined: Tue Oct 11, 2011 8:38 pm

Re: Programmatically turn screen off

Tue Jul 04, 2017 3:00 pm

Since this thread has been bumped, a better way to turn HDMI off and on with recent firmware is:

Code: Select all

vcgencmd display_power 0

vcgencmd display_power 1
This does not change resolution or require any refreshing of the framebuffer.

I have not tested this with DSI, DPI, or CVBS outputs. Possibly they still need the other methods.

Embries
Posts: 6
Joined: Wed Apr 23, 2014 3:59 pm

Re: Programmatically turn screen off

Sun Jan 14, 2018 6:17 am

jojopi wrote:
Tue Jul 04, 2017 3:00 pm
Since this thread has been bumped, a better way to turn HDMI off and on with recent firmware is:

Code: Select all

vcgencmd display_power 0

vcgencmd display_power 1
This does not change resolution or require any refreshing of the framebuffer.

I have not tested this with DSI, DPI, or CVBS outputs. Possibly they still need the other methods.


THIS IS THE SOLUTION I AM LOOKING FOR!!!!!
I am trying to create a power button in my arcade, and want the screen off (standby) but the Pi to stay on as I also use it for my VPN and often want to access the Pi remotely.

jacklawry
Posts: 8
Joined: Thu Jan 14, 2016 9:26 pm

Re: Programmatically turn screen off

Thu May 10, 2018 7:34 pm

Embries wrote:
Sun Jan 14, 2018 6:17 am
jojopi wrote:
Tue Jul 04, 2017 3:00 pm
Since this thread has been bumped, a better way to turn HDMI off and on with recent firmware is:

Code: Select all

vcgencmd display_power 0

vcgencmd display_power 1
This does not change resolution or require any refreshing of the framebuffer.

I have not tested this with DSI, DPI, or CVBS outputs. Possibly they still need the other methods.


THIS IS THE SOLUTION I AM LOOKING FOR!!!!!
I am trying to create a power button in my arcade, and want the screen off (standby) but the Pi to stay on as I also use it for my VPN and often want to access the Pi remotely.
This has been working for me perfectly but suddenly today has stopped working as expected. The screen now stops showing the Pi but instead of turning off (& power light going orange) it shows a coloured Dell panel that moves around.

The Pi, monitor and hdmi to vga adaptor are all the same.

Any ideas?

Return to “Other projects”