["Xiaoyang Yu (Max)" <[email protected]>]
> 
> Android assumes the sysfs interface for backlight adjustment is at "/
> sys/class/leds/lcd-backlight/brightness", which is not true for EeePC.
> EeePC uses "/sys/class/backlight/eeepc/brightness". And other
> platforms may use "/sys/class/backlight/acpi_video0/brightness".
> 
> Also Android assuems the backlight value change from 30..255. While it
> should be 0..15 for EeePC, and 0..7 for other platforms. The maximum
> backlight value can be read from "/sys/class/backlight/eeepc/
> max_brightness" or "/sys/class/backlight/acpi_video0/max_brightness".
> 
> So should we change Android kernel's sysfs interface? For example,
> Android kernel create a symbol link "default" in "/sys/class/
> backlight", and make it link to "eeepc" or "acpi_video0". Or create "/
> sys/class/leds/lcd-backlight" as a symbol link to "/sys/class/
> backlight/eeepc" or "/sys/class/backlight/acpi_video0".
> 
> Or should we not change kernel, but only change the userspace code,
> like scan the directory "/sys/class/backlight" to see which sub-
> directory in it?

Updating the userspace side of things to not hardcode names within
/sys/class/backlight and /sys/class/leds, and to pick up max_brightness
from the sysfs interface makes the most sense to me.

Brian

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel
-~----------~----~----~----~------~----~------~--~---

Reply via email to