Been trying for weeks to stop the screen blanking every 10 minutes.
I had almost given up - because I tried a lot of things and none of them worked.
Until I saw this post. Now it's fixed, and no more blanking!!!
Many thanks
Best regards,
Niall.
Why is this giving me the following error when i add this to a Python script?dasmanul wrote:This looks like you're logged in remotely to your Pi. Try issuing
first and then repeat the commands.Code: Select all
export DISPLAY=:0
Code: Select all
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000002
XKB indicators:
00: Caps Lock: off 01: Num Lock: on 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: 30
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: no
timeout: 0 cycle: 0
Colors:
default colormap: 0x20 BlackPixel: 0x0 WhitePixel: 0xffffff
Font Path:
/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,built-ins
DPMS (Energy Star):
Standby: 0 Suspend: 0 Off: 600
DPMS is Enabled
Monitor is On
Code: Select all
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@point-rpi
@xscreensaver -no-splash
@xset s 0 0
@xset s noblank
@xset s noexpose
@xset dpms 0 0 600Rive wrote: ↑Sat May 07, 2016 2:12 pmConfigure the built in lxde screensaver, lock screen, and monitor (actually turn offs, not screen blanking) power save features via lightlocker which uses the Jessie login screen. This also allows you to use the keyboard shortcut to screenlock:
Instructional youtube video:
https://youtu.be/aTrp83lgq_s
note- "xset q" is useful for checking screen and dpms settings, and changing them for testing (e.g., Monitor "off" is set for 1200 sec, or 20 min, and you want to test it, so you set dpms to 10 sec (xset dpms 0 0 10)). Changes here are temporary, and will not survive a reboot.Code: Select all
xset q
Run:Open:Code: Select all
sudo apt-get install light-lockerAdd:Code: Select all
sudo nano /boot/config.txtOpen:Code: Select all
# uncomment to put the monitor into power saving mode (DPMS) hdmi_blanking=1Add:Code: Select all
sudo nano ~/.config/lxsession/LXDE-pi/autostartSave with 'Ctrl + x', then 'y', then 'enter'Code: Select all
@xset s 0 0 @xset s noblank @xset s noexpose @xset dpms 0 0 1200
open:
(note- if you do an "apt-get dist-upgrade" instead of an "apt-get upgrade", you will need to re-add this keybind)find:Code: Select all
nano ~/.config/openbox/lxde-pi-rc.xmladd:Code: Select all
<!--keybindings for LXPanel →The above dpms '1200', means turn off monitor after 20min, and lock screen with light-locker (lxlock). Change to whatever time you want (in seconds).Code: Select all
<keybind key="C-A-L"> <action name="Execute"><command>lxlock</command></action> </keybind>
Code: Select all
Exec=light-locker --lock-on-suspend --late-locking --lock-after-screensaver=1