TransWikia.com

Fade screen on sleep and brighten on wake

Raspberry Pi Asked by Itamar Kerbel on February 8, 2021

I’m looking for a way to control the screen brightness from code.
I saw this post but this just turns the screen on and off.
How can I dim the screen before it goes to sleep instead of just turning it off and wake up the screen in code (later using I/O) by brightening it gradually?

One Answer

Possible answer to your question can probably be found in the answer to this Adjusting the Brightness of the Official Touchscreen Display post. I clearly says a display brightness can be adjusted by sending a value to /sys/class/backlight/rpi_backlight/brightness as shown below.

echo n > /sys/class/backlight/rpi_backlight/brightness

Answered by user91822 on February 8, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP