Package: eeepc-acpi-scripts Version: 1.1.10 Severity: wishlist
At least when using ASUS x101h eeepc, synclient doesn't actually do anything as it fails with: $ synclient -l Couldn't find synaptics properties. No synaptics driver loaded? At the same time, it looks like that using xinput is actually the way of handling input devices in current stable xserver-xorg, and using it allows toggling touchpad and camera of x101h. Patch attached to this bug report works for me, but obviously introduces an extra dependency to eeepc-acpi-scripts. -- System Information: Debian Release: 6.0.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 3.2.0-0.bpo.2-686-pae (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages eeepc-acpi-scripts depends on: ii acpi-support-base 0.137-5 scripts for handling base ACPI eve ii acpid 1:2.0.7-1squeeze3 Advanced Configuration and Power I ii pm-utils 1.3.0-3 utilities and scripts for power ma ii rfkill 0.4-1 tool for enabling and disabling wi Versions of packages eeepc-acpi-scripts recommends: ii alsa-utils 1.0.23-3 Utilities for configuring and usin Versions of packages eeepc-acpi-scripts suggests: pn aosd-cat <none> (no description available) pn gnome-osd <none> (no description available) ii ttf-dejavu 2.31-1 Metapackage to pull in ttf-dejavu- ii ttf-liberation 1.05.2.20091019-4squeeze1 Fonts with the same metrics as Tim -- Configuration Files: -- no debconf information
--- a/etc/acpi/lib/touchpad.sh 2012-04-02 23:23:50.824472826 +0400 +++ b/etc/acpi/lib/touchpad.sh 2012-04-02 23:15:40.718042504 +0400 @@ -6,8 +6,13 @@ toggle_touchpad() { - local STATE - STATE="$(synclient -l 2>/dev/null | sed -e '/TouchpadOff/! d; s/[^0-9]\+//g')" - synclient TouchpadOff=$((1-STATE)) 2>/dev/null || return 2 + local DEV=`xinput list | grep Pad | cut -d= -f2 | cut -c1,2` + [ -z "$DEV" ] && exit 2 + + local STATE=`xinput list-props $DEV | grep "Device Enabled" | sed -nr 's/.*([0-9])$/\1/p'` + [ -z "$STATE" ] && exit 2 + + xinput set-prop $DEV "Device Enabled" $((1-$STATE)) + return $((1-STATE)) }