mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 13:08:26 +02:00
Backlight: use different sysfs name for NanoNote and Dingoo.
Fixes backlight control on Dingoo.
This commit is contained in:
parent
6729e30acb
commit
b997485859
@ -243,8 +243,13 @@ void GMenu2X::init() {
|
||||
batteryHandle = fopen("/sys/class/power_supply/battery/capacity", "r");
|
||||
usbHandle = fopen("/sys/class/power_supply/USB/online", "r");
|
||||
acHandle = fopen("/sys/class/power_supply/ac/online", "r");
|
||||
backlightHandle =
|
||||
fopen("/sys/class/backlight/gpm940b0-bl/brightness", "w+");
|
||||
backlightHandle = fopen(
|
||||
#ifdef PLATFORM_NANONOTE
|
||||
"/sys/class/backlight/gpm940b0-bl/brightness",
|
||||
#else
|
||||
"/sys/class/backlight/pwm-backlight/brightness",
|
||||
#endif
|
||||
"w+");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user