UCTRONICS / U6143_ssd1306

70 stars 88 forks source link

Put the Display to Sleep at Night #30

Open Litesung opened 2 years ago

Litesung commented 2 years ago

Is there a way to edit the cron to put the display to sleep at certain times?

This is an example from the PADD project.

# PiTFT+ SLEEPY TIME
# Turn off the PiTFT+ at midnight
00 00 * * * sh -c 'echo "0" > /sys/class/backlight/soc\:backlight/brightness'
# Turn on the PiTFT+ at 8:00 am
00 08 * * * sh -c 'echo "1" > /sys/class/backlight/soc\:backlight/brightness'
Aesop7 commented 1 year ago

I'm curious if you came up with a good solution for this. I ended up using webhook to remotely control when the displays are on, but I'm hoping someone has a better solution.

Aesop7 commented 1 year ago

Welp, my solution didn't work so I'm back here hoping that someone has figured this out...

derek-miller commented 1 year ago

I too would like to turn on/off the displays at certain times. Stopping the display process does not work either.