hiby: backlight: use framebuffer blanking instead of PWM on hosted targets
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 7bc856046b69c7331c0170d2e4629fcdb92ff727 Author: Roman Artiukhin <[email protected]> Date: Sun Jan 18 12:08:33 2026 +0200 hiby: backlight: use framebuffer blanking instead of PWM on hosted targets This enables deeper sleep. On touchscreen devices (HiBy R1) it shuts down both screen and touch (touchscreen needs few seconds before it's actually disabled) Change-Id: I5e8a7dae840227ddf4433daa461cc7124db7676a diff --git a/firmware/target/hosted/backlight-unix.c b/firmware/target/hosted/backlight-unix.c index 7c62f69c0c..a1b4194ec3 100644 --- a/firmware/target/hosted/backlight-unix.c +++ b/firmware/target/hosted/backlight-unix.c @@ -43,7 +43,9 @@ static const char * const sysfs_bl_brightness = "/sys/class/backlight/backlight_pwm0/brightness"; static const char * const sysfs_bl_power = - "/sys/class/backlight/backlight_pwm0/bl_power"; + /* Framebuffer powers off both touch (if available) and screen */ + "/sys/class/graphics/fb0/blank"; + #else static const char * const sysfs_bl_brightness = "/sys/class/backlight/pwm-backlight.0/brightness"; -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs