Adding disable screen blank to startup script

This commit is contained in:
Jordan Ruthe committed 2020-11-02 12:04:45 -05:00
1 parent 221d2f6821
commit 76820ea0a1
2 files changed
+2 -2

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ RestartSec=1
User=pi
WorkingDirectory=KS_DIR
ExecStart=/usr/bin/xinit KS_ENV/bin/python KS_DIR/screen.py
ExecStartPost=KS_DIR/scripts/disablescreenblank.sh
[Install]
WantedBy=multi-user.target
+1 -2
View File
@@ -2,10 +2,9 @@
screen=${1:-0}
# wait 10s for the display manager service to start and attach to screen
# wait for the display manager service to start and attach to screen
sleep 5
/usr/bin/xset -display :$screen s off # deactivate screen saver
/usr/bin/xset -display :$screen -dpms # disable DPMS
/usr/bin/xset -display :$screen s noblank # disable screen blanking