Jump to content

Hey so I recently did a Raspberry Pi project, hooking it up to the 7-inch touchscreen and I want it (the screen) to turn off at night and back on in the morning. After a bit of googling I went with the crontab

 

30 5 * * * xset -display :0.0 dpms force off

30 22 * * * xset -display :0.0 dpms force on

 

Which works to turn it off (and I assume on but I'm not actually awake at 5:30 am) at these times, however it also turns off (again and I assume on but that's harder to notice) multiple times, seemingly at random times, throughout the day. Am I missing something?

 

(I'm running Pi OS btw)

 

Thanks

Link to comment
https://linustechtips.com/topic/1282105-crobtab-command-running-multiple-times/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×