crontab not turning off TFT screen

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

crontab not turning off TFT screen

Post by /RaspberryPi »

Hey fellow Pi users, I ran into an issue last few months on my rPi TFT not turning off through crontab. The code worked with zero issues for several years, but I had to format my pi and start from scratch in July, and the screen stopped doing what it is supposed to do. The code is from Adafruits Pi-Hole guide, and is their screen. Now, I did upgrade from a 3b+ when I reimaged the pi, to a 4b, but as far as I know that shouldn't make a difference. Any insight as to what may or may not be going on would be very welcomed.
The code in question is below, and is in sudo crontab as the guide states.
# PADD Sleep
# Turn off the PiTFT+ at 2030
30 20 * * * 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'

submitted by /u/silentfox0
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”