[PATCH] fix omnibook max available brightness level
Danny Kukawka
danny.kukawka at web.de
Mon Jan 15 07:00:18 PST 2007
Hi,
this patch fixed the the number of max. available brightness levels for the
proc omnibook interface.
The reason for this change:
* there exist two different versions of the omnibook kernel module (the older
version is from [1] and the new one from project [2]).
* different hardware supported by this module have different max levels.
(older machines have 11 (0-10) and newer hardware support 8 levels (0-7))
How this patch handle this:
* for the newer module version the max. level can be parsed
from /proc/omnibook/lcd
* for the older version we assume now always max. 11 levels, since this module
only support level 0-10 for brightness.
Danny
[1] http://sourceforge.net/projects/omke/
[2] http://sourceforge.net/projects/omnibook/
hald/linux/acpi.c | 18 +++++++++++++-
tools/linux/hal-system-lcd-set-brightness-linux | 2 -
2 files changed, 18 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-omnibook.diff
Type: text/x-diff
Size: 1762 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070115/44a02481/hal-fix-omnibook.bin
More information about the hal
mailing list