Jpe230 / SonicPad-Debian

Port of Debian for the SonicPad (Allwinner R818)
GNU General Public License v3.0
115 stars 16 forks source link

Added screen backlight off and on script upon sleep and wake #28

Closed calculous closed 4 months ago

calculous commented 9 months ago

Added a script for disable backlight of screen when pad goes in suspend, and enable backlight when pad wakes.

Jpe230 commented 8 months ago

Thanks for the PR! Would you mind creating the necessary scripts to add it while creating the rootfs?

Probably it would be a good to idea to create the script here: https://github.com/Jpe230/SonicPad-Debian/tree/main/src/base_rootfs/usr/local/bin

and then create the service to enable the script at boot here: https://github.com/Jpe230/SonicPad-Debian/tree/main/src/base_rootfs/etc/systemd/system

calculous commented 8 months ago

I added display-sleep.sh and display-sleep.service at these locations.