[Debian-eeepc-devel] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. f8367bd3d1a0ceb9675ee6781aec3053efbb54f8

Damyan Ivanov dmn at debian.org
Fri Sep 5 22:40:38 UTC 2008


The following commit has been merged in the master branch:
commit e79a6ae7181fbd77dd764e95b0bfee619eece9a2
Author: Damyan Ivanov <dmn at debian.org>
Date:   Sat Sep 6 01:04:38 2008 +0300

    default/hotkey.sh: make hotkey actions configurable

diff --git a/actions/hotkey.sh b/actions/hotkey.sh
index 589e5e9..d43407c 100755
--- a/actions/hotkey.sh
+++ b/actions/hotkey.sh
@@ -148,12 +148,28 @@ case $code in
     0000002?)
 	# actual brightness change is handled in hardware
 	;;
+    0000001a)
+	# soft-buton 1
+	if [ "${SOFTBTN1_ACTION}" != 'NONE' ]; then
+	    ${SOFTBTN1_ACTION}
+	fi
+	;;
+    0000001b)
+	# soft-buton 2
+	if [ "${SOFTBTN2_ACTION}" != 'NONE' ]; then
+	    ${SOFTBTN2_ACTION}
+	fi
+	;;
     0000001c)
-	# soft-buton 3 -- toggle camera
-	handle_camera_toggle
+	# soft-buton 3
+	if [ "${SOFTBTN3_ACTION:-handle_camera_toggle}" != 'NONE' ]; then
+	    ${SOFTBTN3_ACTION:-handle_camera_toggle}
+	fi
 	;;
     0000001d)
-	# soft-buton 4 -- toggle bluetooth
-	handle_bluetooth_toggle
+	# soft-buton 4
+	if [ "${SOFTBTN4_ACTION:-handle_bluetooth_toggle}" != 'NONE' ]; then
+	    ${SOFTBTN4_ACTION:-handle_bluetooth_toggle}
+	fi
 	;;
 esac
diff --git a/debian/eeepc-acpi-scripts.default b/debian/eeepc-acpi-scripts.default
index ecf5016..5906404 100644
--- a/debian/eeepc-acpi-scripts.default
+++ b/debian/eeepc-acpi-scripts.default
@@ -18,3 +18,22 @@ LOCK_SCREEN_ON_SUSPEND='yes'
 # bluetooth state when the bluetooth control node in
 # /sys/devices/platform/bluetooth is not present
 BLUETOOTH_FALLBACK_TO_HCITOOL='yes'
+
+# Configuration of "soft" keys found on models 900 and above
+# The possible actions are:
+#  - handle_bluetooth_toggle
+#      Toggles internal bluetooth adapter on/off.
+#      When there is no bluetooth control node, and
+#      BLUETOOTH_FALLBACK_TO_HCITOOL is equal to 'yes', attempts to toggle
+#      on/off any USB bluetooth adapter found
+#  - handle_camera_toggle
+#      Toggles internal camera on/off
+#  - NONE
+#      Ignore the key
+#  - custom function name
+#      For example you can write a shell function in this file and use its name
+#      as an action. It will be called when the button is pressed
+SOFTBTN1_ACTION='NONE'
+SOFTBTN2_ACTION='NONE'
+SOFTBTN3_ACTION='handle_camera_toggle'
+SOFTBTN4_ACTION='handle_bluetooth_toggle'

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-devel mailing list