mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-23 00:33:09 +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");
|
batteryHandle = fopen("/sys/class/power_supply/battery/capacity", "r");
|
||||||
usbHandle = fopen("/sys/class/power_supply/USB/online", "r");
|
usbHandle = fopen("/sys/class/power_supply/USB/online", "r");
|
||||||
acHandle = fopen("/sys/class/power_supply/ac/online", "r");
|
acHandle = fopen("/sys/class/power_supply/ac/online", "r");
|
||||||
backlightHandle =
|
backlightHandle = fopen(
|
||||||
fopen("/sys/class/backlight/gpm940b0-bl/brightness", "w+");
|
#ifdef PLATFORM_NANONOTE
|
||||||
|
"/sys/class/backlight/gpm940b0-bl/brightness",
|
||||||
|
#else
|
||||||
|
"/sys/class/backlight/pwm-backlight/brightness",
|
||||||
|
#endif
|
||||||
|
"w+");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user