Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


7 Inch display on and off
#1
I keep my pi on constantly, but blank the display when not in use. I do this with my it remote programed for the following commands


sudo XAUTHORITY=/home/pi/.Xauthority DISPLAY=:0.0 xset dpms force on
[size=undefined][size=undefined]
 [/size][/size]
sudo XAUTHORITY=/home/pi/.Xauthority DISPLAY=:0.0 xset dpms force off
The only problem is it messes up the moose sleep setting from "never" and I need to set it to 10 then back to never.
Is there a better command?
Thanks
Reply
#2
What is .Xauthority?

moOde manipulates .xinitrc file for setting the screen blank timeout.

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(07-16-2018, 09:03 PM)Tim Curtis Wrote: What is .Xauthority?

moOde manipulates .xinitrc file for setting the screen blank timeout.

-Tim

Ok I think I got it. In .xinitrc changed
xset -dpms     to.    xset dpms 0 0 0

I now use DISPLAY=:0.0 xset dpms force on
or force off to turn the screen on and off in my .lircrc file
Reply
#4
Cool :-)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: