So I've followed the instructions from the above link, and I've added
the following to /usr/share/hal/fdi/information/10freedesktop/30-keymap-
hp.fdi :

          <match 
key="/org/freedesktop/Hal/devices/computer:system.hardware.product" 
contains="CQ70">
            <!-- The Compaq Presario CQ70 has a touchpad disable button -->
            <append key="input.keymap.data" type="strlist">e058:f22</append>    
<!-- Touchpad toggle (on-to-off) -->
            <append key="input.keymap.data" type="strlist">e059:f22</append>    
<!-- Touchpad toggle (off-to-on)  -->
          </match>

Now the key is seen from xev, both on the first and second "click". However, I 
still have a problem...
This is what is returned by:
xev | sed -n 's/^.*state \([0-9].*\), keycode *\([0-9]\+\) *\(.*\), .*$/keycode 
\2 = \3, state = \1/p'
keycode 200 = (keysym 0x0, NoSymbol), state = 0x10
keycode 200 = (keysym 0x0, NoSymbol), state = 0x10
keycode 200 = (keysym 0x0, NoSymbol), state = 0x10
keycode 200 = (keysym 0x0, NoSymbol), state = 0x10

I see that the keysym is 0x0, which does not seem to be nice.

And there is something strange:
When I configure the keyboard shortcuts (from System -> keyboard shortcuts) and 
I create a new shortcut (for the command "firefox", for example), pressing the 
key does not produce anything. However, if I associate this key with "Launch 
help browser", the help browser gets called... I must admit that I am a bit 
surprised by this!

Would anyone have an idea how to associate this key to the script
/etc/acpi/asus-touchpad.sh (which takes care of deactivating the
touchpad once you have enabled SHMConfig:
https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig)

-- 
[9.04 Beta] - Hotkey for deactivating touchpad not working
https://bugs.launchpad.net/bugs/352864
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to