hal/tools hal-system-lcd-set-brightness,1.7,1.8
Richard Hughes
hughsient at kemper.freedesktop.org
Fri Mar 10 11:45:29 PST 2006
Update of /cvs/hal/hal/tools
In directory kemper:/tmp/cvs-serv8559/tools
Modified Files:
hal-system-lcd-set-brightness
Log Message:
2006-03-10 Richard Hughes <richard at hughsie.com>
Patch from Paolo Borelli <pborelli at katamail.com>.
* tools/hal-system-lcd-set-brightness: Sony laptops have a brightness range from 1..8 not 0..7 and so we need to add 1 before we echo this brightness value to /proc/acpi/sony/brightness. Fixes g-p-m not setting the screen to full brightness when set to 100%.
Index: hal-system-lcd-set-brightness
===================================================================
RCS file: /cvs/hal/hal/tools/hal-system-lcd-set-brightness,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- hal-system-lcd-set-brightness 18 Feb 2006 23:11:23 -0000 1.7
+++ hal-system-lcd-set-brightness 10 Mar 2006 19:45:27 -0000 1.8
@@ -59,7 +59,7 @@
elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "sony" ]; then
# echo "{1..8}" > /proc/acpi/sony/brightness
# http://popies.net/sonypi/2.6-sony_acpi4.patch
- echo "$value" > $HAL_PROP_LINUX_ACPI_PATH
+ echo "$((value + 1))" > $HAL_PROP_LINUX_ACPI_PATH
elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "omnibook" ]; then
# echo "{0..7}" > /proc/omnibook/lcd
# http://bugzilla.gnome.org/show_bug.cgi?id=331458
More information about the hal-commit
mailing list