hal/tools hal-system-lcd-get-brightness, 1.8,
1.9 hal-system-lcd-set-brightness, 1.9, 1.10
Richard Hughes
hughsient at kemper.freedesktop.org
Thu Apr 27 14:31:39 PDT 2006
Update of /cvs/hal/hal/tools
In directory kemper:/tmp/cvs-serv11222/tools
Modified Files:
hal-system-lcd-get-brightness hal-system-lcd-set-brightness
Log Message:
2006-04-27 Richard Hughes <richard at hughsie.com>
Patch from Bastien Nocera <hadess at hadess.net>:
* tools/hal-system-lcd-get-brightness: * tools/hal-system-lcd-set-brightness: Commit a patch to check whether we have the userspace tool spicctrl as well. Could cause a few problems otherwise.
Index: hal-system-lcd-get-brightness
===================================================================
RCS file: /cvs/hal/hal/tools/hal-system-lcd-get-brightness,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- hal-system-lcd-get-brightness 26 Apr 2006 22:27:43 -0000 1.8
+++ hal-system-lcd-get-brightness 27 Apr 2006 21:31:37 -0000 1.9
@@ -58,7 +58,7 @@
# cat /proc/omnibook/lcd
# LCD brightness: 7
value="`cat $HAL_PROP_LINUX_ACPI_PATH | awk '{print $3;}'`"
-elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "sonypi" ]; then
+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "sonypi" -a -x /usr/sbin/spicctrl ]; then
# spicctrl -B
# 70
# 0..255
Index: hal-system-lcd-set-brightness
===================================================================
RCS file: /cvs/hal/hal/tools/hal-system-lcd-set-brightness,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- hal-system-lcd-set-brightness 26 Apr 2006 22:27:43 -0000 1.9
+++ hal-system-lcd-set-brightness 27 Apr 2006 21:31:37 -0000 1.10
@@ -65,7 +65,7 @@
# echo "{0..7}" > /proc/omnibook/lcd
# http://bugzilla.gnome.org/show_bug.cgi?id=331458
echo "$value" > $HAL_PROP_LINUX_ACPI_PATH
-elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "sonypi" ]; then
+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "sonypi" -a -x /usr/sbin/spicctrl ]; then
# spicctrl -b "{0..255}"
/usr/sbin/spicctrl -b ${value}
else
More information about the hal-commit
mailing list