mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
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
This commit is contained in:
parent
476d23ac3a
commit
7bc856046b
1 changed files with 3 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue