Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off display backlight after xx seconds #710

Closed
graphiste opened this issue Jun 3, 2020 · 4 comments
Closed

Turn off display backlight after xx seconds #710

graphiste opened this issue Jun 3, 2020 · 4 comments
Labels
support Something isn't working with the users setup

Comments

@graphiste
Copy link

Hello,
My octoprint is aways running and the display stays aways On.
Is it possible to have the display backlight turned Off after some seconds and get it On with touch?
I checked already the available settings, but those dont affect my setup (Octoprint aways running).
I have the official 7" RPi touchscreen V1.1

@graphiste graphiste added the support Something isn't working with the users setup label Jun 3, 2020
@UnchartedBull
Copy link
Owner

You have to edit your ~/.xinitrc. Just replace the that reads xset -dpms with something like xset +dpms dpms 600 1200 1800, just adjust the values to your need - more info available here: https://wiki.archlinux.de/title/DPMS

@RRocks01
Copy link

RRocks01 commented Oct 2, 2021

You have to edit your ~/.xinitrc. Just replace the that reads xset -dpms with something like xset +dpms dpms 600 1200 1800, just adjust the values to your need - more info available here: https://wiki.archlinux.de/title/DPMS

If its not too much trouble I could really use a dummy's guide for this. I was able to ssh and set the xset +dpms as above but that will reset on the next reboot. I don't know how to edit the xinitrc over ssh which is where a dummy's guide would help.

I really need this screen to go to sleep after a few minutes and then wake up if touched. I like to do overnight prints but the screen keeps my wife up at night and that's never going to fly, please help, thank you very much.

@jneilliii
Copy link
Contributor

jneilliii commented Oct 2, 2021

after SSH to the pi run sudo nano ~/.xinitrc, make your changes using your keyboard arrow keys to navigate, press ctrl + x to exit, answer y to save and press enter to overwrite existing file.

@7R0J4Ner
Copy link

7R0J4Ner commented Oct 3, 2021

If its not too much trouble I could really use a dummy's guide for this. I was able to ssh and set the xset +dpms as above but that will reset on the next reboot. I don't know how to edit the xinitrc over ssh which is where a dummy's guide would help.

So im a total beginner but just had a similar problem the last view days.

xset q just spit out the error message Error: Can't open display: (null) for me.
After export DISPLAY=:0 xset q answered something, but this setting was lost at every reboot.
So I wrote export DISPLAY=:0 in .bashrc (with sudo nano ~/.bashrc)
Now you can edit the .xinitrc file with sudo nano ~/.xinitrc and replace
xset -dpms
with something like
xset +dpms
xset 60 120 180

After that you just have to disable the option "Turn screen off while sleeping" in Octodash under Settings or else it will turn off dpms again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Something isn't working with the users setup
Projects
None yet
Development

No branches or pull requests

5 participants