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:

  1. ATKD | HOTK ) ( 0000006 [ ab ] | 00000037 ) #(por) event = hotkey (ATKD | Hotka) (0,000,006 [ab] | 00,000,037) # (for)
  2. 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:

  1. 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 )
  2. 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'`
  3. | awk '/Synaptics Off/ { print $NF }' ` #(por) TPSTATUS = `list-props xinput $ XINPUTNUM | awk '/ Synaptics Off / (print $ NF)'` # (for)
  4. | awk '/Device Enabled/ { print $NF }' ` TPSTATUS = `list-props xinput $ XINPUTNUM | awk '/ Device Enabled / (print $ NF)'`
  5. 8 1 #(por) xinput set-int-prop $ XINPUTNUM "Synaptics Off" 8 1 # (for)
  6. 8 1 xinput set-int-prop $ XINPUTNUM "Device Enabled" August 1
  7. 8 0 #(por) xinput set-int-prop $ XINPUTNUM "Synaptics Off" 8 0 # (for)
  8. 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

  1. asus-touchpad. sh - Etc / acpi / asus-touchpad. Sh
  2. asus-touchpad. sh + + + Etc / acpi / asus-touchpad. Sh
  3. , 23 +13 , 23 @@ @ @ -13, 23 +13, 23 @ @
  4. # To hal (or whatever is for hal Replacing Such events)
  5. getXconsole
  6. 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'`
  7. 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'`
  8. usr / share / acpi-support / state-funcs ] || exit 0 [-F / usr / share / acpi-support / state-funcs] | | exit 0
  9. # Get the current state of the touchpad
  10. | awk '/Synaptics Off/ { print $NF }' ` - TPSTATUS = `list-props xinput $ XINPUTNUM | awk '/ Synaptics Off / (print $ NF)'`
  11. | awk '/Device Enabled/ { print $NF }' ` + TPSTATUS = `list-props xinput $ XINPUTNUM | awk '/ Device Enabled / (print $ NF)'`
  12. # If getting the status failed, exit
  13. && exit 1 test-z $ TPSTATUS & & exit 1
  14. $TPSTATUS = 0 ] ; then if [$ TPSTATUS = 0]; Then
  15. 8 1 - Xinput set-int-prop $ XINPUTNUM "Synaptics Off" August 1
  16. 8 1 + Xinput set-int-prop $ XINPUTNUM "Device Enabled" August 1
  17. -e / sys / class / leds / asus::touchpad / brightness ] ; then if [-e / sys / class / leds / asus:: touchpad / brightness]; Then
  18. > / sys / class / leds / asus::touchpad / brightness echo 0> / sys / class / leds / asus:: touchpad / brightness
  19. fi
  20. else
  21. 8 0 - Xinput set-int-prop $ XINPUTNUM "Synaptics Off" 8 0
  22. 8 0 + Xinput set-int-prop $ XINPUTNUM "Device Enabled" 8 0
  23. -e / sys / class / leds / asus::touchpad / brightness ] ; then if [-e / sys / class / leds / asus:: touchpad / brightness]; Then
  24. > / sys / class / leds / asus::touchpad / brightness echo 1> / sys / class / leds / asus:: touchpad / brightness
  25. fi

One comment

Gravatar;?>

adverick on May 23, 2010

FRANCE FRANCE Mozilla Firefox Mozilla Firefox 3.5.9 Linux Linux

Test!

Leave a Comment