Asus U30JC TouchPad Lock (Fn + F9) to squeeze Debian / sid
Apparently there is a problem in detecting the touchpad in some models of Asus laptops, and my u30jc squeeze running a Debian / sid 32 bit is no exception. Indeed if we execute the command console $ xinput list we see that the touchpad is incorrectly recognized as a "ImPS / 2 Logitech Wheel Mouse", and thus the combination Fn + F9 to enable / disable the device is not working. For the moment we can perform a simple workaround by changing acpi scripts associated with the desired function
To start we:
$ sudo acpi_listen
And we press Fn + F9 for associated event code, in this case: hotkey ATK0100:00 0000006b (...) . The last part will change depending on the number of times to repeat the action. Then open the file / etc / acpi / events / asus-touchpad and changed the line:
- ATKD | HOTK ) ( 0000006 [ ab ] | 00000037 ) #(por) event = hotkey (ATKD | Hotka) (0,000,006 [ab] | 00,000,037) # (for)
- 0000006b event = hotkey ATK0100: 00 0000006b
Finally, it should make some changes to the script associated with the event located at / etc / acpi / asus-touchpad.sh:
- grep 'SynPS/2 Synaptics TouchPad' | sed -n -e 's/.*id= \( [0-9] \+ \) .*/ \1 /p' ` #(por) XINPUTNUM = `xinput list | grep 'SynPS / 2 Synaptics TouchPad' | sed-n-e 's / .* id = \ ([0-9] \ + \) .* / \ 1 / p'` # (for )
- grep 'ImPS/2 Logitech Wheel Mouse' | sed -n -e 's/.*id= \( [0-9] \+ \) .*/ \1 /p' ` XINPUTNUM = `xinput list | grep" ImPS / 2 Logitech Wheel Mouse "| sed-n-e 's / .* id = \ ([0-9] \ + \) .* / \ 1 / p'`
- | awk '/Synaptics Off/ { print $NF }' ` #(por) TPSTATUS = `list-props xinput $ XINPUTNUM | awk '/ Synaptics Off / (print $ NF)'` # (for)
- | awk '/Device Enabled/ { print $NF }' ` TPSTATUS = `list-props xinput $ XINPUTNUM | awk '/ Device Enabled / (print $ NF)'`
- 8 1 #(por) xinput set-int-prop $ XINPUTNUM "Synaptics Off" 8 1 # (for)
- 8 1 xinput set-int-prop $ XINPUTNUM "Device Enabled" August 1
- 8 0 #(por) xinput set-int-prop $ XINPUTNUM "Synaptics Off" 8 0 # (for)
- 8 0 xinput set-int-prop $ XINPUTNUM "Device Enabled" 8 0
Made the changes just restart the computer to complete the job.
I've also created a patch for the file-touchpad.sh asus
- asus-touchpad. sh - Etc / acpi / asus-touchpad. Sh
- asus-touchpad. sh + + + Etc / acpi / asus-touchpad. Sh
- , 23 +13 , 23 @@ @ @ -13, 23 +13, 23 @ @
- # To hal (or whatever is for hal Replacing Such events)
- getXconsole
- grep 'SynPS/2 Synaptics TouchPad' | sed -n -e 's/.*id= \( [0-9] \+ \) .*/ \1 /p' ` - XINPUTNUM = `xinput list | grep 'SynPS / 2 Synaptics TouchPad' | sed-n-e 's / .* id = \ ([0-9] \ + \) .* / \ 1 / p'`
- grep 'ImPS/2 Logitech Wheel Mouse' | sed -n -e 's/.*id= \( [0-9] \+ \) .*/ \1 /p' ` + XINPUTNUM = `xinput list | grep" ImPS / 2 Logitech Wheel Mouse "| sed-n-e 's / .* id = \ ([0-9] \ + \) .* / \ 1 / p'`
- usr / share / acpi-support / state-funcs ] || exit 0 [-F / usr / share / acpi-support / state-funcs] | | exit 0
- # Get the current state of the touchpad
- | awk '/Synaptics Off/ { print $NF }' ` - TPSTATUS = `list-props xinput $ XINPUTNUM | awk '/ Synaptics Off / (print $ NF)'`
- | awk '/Device Enabled/ { print $NF }' ` + TPSTATUS = `list-props xinput $ XINPUTNUM | awk '/ Device Enabled / (print $ NF)'`
- # If getting the status failed, exit
- && exit 1 test-z $ TPSTATUS & & exit 1
- $TPSTATUS = 0 ] ; then if [$ TPSTATUS = 0]; Then
- 8 1 - Xinput set-int-prop $ XINPUTNUM "Synaptics Off" August 1
- 8 1 + Xinput set-int-prop $ XINPUTNUM "Device Enabled" August 1
- -e / sys / class / leds / asus::touchpad / brightness ] ; then if [-e / sys / class / leds / asus:: touchpad / brightness]; Then
- > / sys / class / leds / asus::touchpad / brightness echo 0> / sys / class / leds / asus:: touchpad / brightness
- fi
- else
- 8 0 - Xinput set-int-prop $ XINPUTNUM "Synaptics Off" 8 0
- 8 0 + Xinput set-int-prop $ XINPUTNUM "Device Enabled" 8 0
- -e / sys / class / leds / asus::touchpad / brightness ] ; then if [-e / sys / class / leds / asus:: touchpad / brightness]; Then
- > / sys / class / leds / asus::touchpad / brightness echo 1> / sys / class / leds / asus:: touchpad / brightness
- fi


adverick on May 23, 2010
Test!