Dear Darren,
could you please have a look at the attached patch (against the shengine
branch) which allows toggling of HUAWEI USB GSM adapters? (saves approx
0.5-0.8 Watts on my Eee PC 1000HGO)
Thank you and kind regards,
Thiemo
--
+-----------------------------------+--------------------------+
| Dipl.-Phys. Thiemo Nagel | |
| Technische Universitaet Muenchen | Room PH1 3276 |
| Physik-Department E18 | |
| James-Franck-Strasse | Phone +49 89 289-12379 |
| D-85747 Garching | Fax +49 89 289-12570 |
+-----------------------------------+--------------------------+
diff --git a/debian/eeepc-acpi-scripts.default
b/debian/eeepc-acpi-scripts.default
index 8fe4a7c..8895730 100644
--- a/debian/eeepc-acpi-scripts.default
+++ b/debian/eeepc-acpi-scripts.default
@@ -1,5 +1,5 @@
# by default OSD output of function keys is disabled because it's too slow
-# set to yes if you want fancy osd overlayS
+# set to yes if you want fancy osd overlays
ENABLE_OSD='no'
OSD_FONT='DejaVuSans 36'
diff --git a/etc/acpi/actions/hotkey.sh b/etc/acpi/actions/hotkey.sh
index 1de5077..f545f35 100755
--- a/etc/acpi/actions/hotkey.sh
+++ b/etc/acpi/actions/hotkey.sh
@@ -98,6 +98,12 @@ handle_shengine() {
handle_shengine "$@"
}
+handle_gsm_toggle() {
+ . /etc/acpi/lib/gsm.sh
+ handle_gsm_toggle "$@"
+}
+
+
case $code in
# Fn + key:
# <700/900-series key>/<1000-series key> - function
diff --git a/etc/acpi/lib/gsm.sh b/etc/acpi/lib/gsm.sh
new file mode 100644
index 0000000..0f2eb1f
--- /dev/null
+++ b/etc/acpi/lib/gsm.sh
@@ -0,0 +1,17 @@
+# a shell library for handling GSM on Asus EeePC
+#
+# to be sourced
+
+handle_gsm_toggle() {
+ for f in /sys/bus/usb/devices/*; do
+ if [ -e "$f/product" ] && grep -q '^HUAWEI Mobile' $f/product; then
+ if [ `cat $f/power/level` != suspend ]; then
+ echo 'suspend' > $f/power/level
+ notify gsm "GSM off"
+ else
+ echo 'auto' > $f/power/level
+ notify gsm "GSM on"
+ fi
+ fi
+ done
+}
_______________________________________________
Debian-eeepc-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel