1
0
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:
Maarten ter Huurne 2011-09-23 00:38:43 +02:00
parent 6729e30acb
commit b997485859

View File

@ -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
}