Package: eeepc-acpi-scripts
Version: 1.0.8
Severity: minor
Tags: patch
See subject.
--
| Darren Salt | linux or ds at | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Lobby friends, family, business, government. WE'RE KILLING THE PLANET.
"Shhh! The Christians think they are up here alone." - God
--- ./etc/acpi/actions/hotkey.sh 2008-10-08 10:57:51.000000000 +0100
+++ ./etc/acpi/actions/hotkey.sh 2008-10-08 16:34:34.000000000 +0100
@@ -76,17 +76,18 @@
fi
}
-#show_brightness() {
-# # final digit of ACPI code is brightness level in hex
-# level=0x${code:${#code}-1}
-# # convert hex digit to percent
-# percent=$(((100 * $level + 8) / 15))
-# notify Brightness $percent
-#}
+show_brightness() {
+ # final digit of ACPI code is brightness level in hex
+ level=$((0x$code & 0xF))
+ # convert hex digit to percent
+ percent=$(((100 * $level + 8) / 15))
+ notify Brightness $percent
+}
case $code in
# Fn+F2 -- toggle wireless
00000010)
+ notify wireless "Wireless ..."
/etc/acpi/actions/wireless.sh on
show_wireless
;;
@@ -126,6 +127,7 @@
# Fn+F4 -- increase brightness
0000002?)
# actual brightness change is handled in hardware
+ show_brightness
;;
0000001a)
# soft-buton 1
_______________________________________________
Debian-eeepc-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel