简体   繁体   中英

Raspberry PI enter Display sleep

is it possible to get the Rasperry PI into display sleep mode (After pressing the touchscreen reactivate)?

This code is only for disable the display

sudo sh -c 'echo 1 > /sys/class/backlight/rpi_backlight/bl_power'

Thankyou!

So for everyone with the same problem as me, I found a solution:

sudo XAUTHORITY=/home/pi/.Xauthority DISPLAY=:0.0 xset dpms force on for turning on

sudo XAUTHORITY=/home/pi/.Xauthority DISPLAY=:0.0 xset dpms force off for turning off the display in the ssh remote connection.

You can set the following in the .xinitrc file if you are running X:

xset s on

To turn of the terminal screen, you could do:

setterm -powersave on -blank 1

More information on screen blanking on: http://www.cyberciti.biz/tips/linux-disable-screen-blanking-screen-going-blank.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM