Solution 1:
# vi ~/.config/lxsession/LXDE-pi/autostart
@xset s noblank
@xset s off
@xset -dpms
Note: /etc/xdg/lxsession/LXDE/autostart
Note: /etc/xdg/lxsession/LXDE-pi/autostart
Restart the computer:
# sync; reboot
Check the setting:
# xset q
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000000
XKB indicators:
00: Caps Lock: off 01: Num Lock: off 02: Scroll Lock: off
03: Compose: off 04: Kana: off 05: Sleep: off
06: Suspend: off 07: Mute: off 08: Misc: off
09: Mail: off 10: Charging: off 11: Shift Lock: off
12: Group 2: off 13: Mouse Keys: off
auto repeat delay: 500 repeat rate: 33
auto repeating keys: 00ffffffdffffbbf
fadfffefffedffff
9fffffffffffffff
fff7ffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 20/10 threshold: 10
Screen Saver:
prefer blanking: no allow exposures: yes
timeout: 0 cycle: 600
Colors:
default colormap: 0x20 BlackPixel: 0x0 WhitePixel: 0xffff
Font Path:
/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,built-ins
DPMS (Energy Star):
Standby: 600 Suspend: 600 Off: 600
DPMS is Disabled
Solution 2:
# cp /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf_ORIG
# vi /etc/lightdm/lightdm.conf
[SeatDefaults]
xserver-command=X -s 0 -dpms
Reference:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=43932
https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=136925
https://www.raspberrypi.org/forums/viewtopic.php?f=108&t=133519
No comments:
Post a Comment