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: 3037
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.

Return to “Other projects”

Who is online

Users browsing this forum: leitnerjk and 15 guests