You are not logged in.

#1 2009-10-24 17:40:42

idosh
Member
Registered: 2008-11-07
Posts: 42

Keytouch doesn't map keys properly

Hello,

I've a Logitech Desktop Wave Keyboard (Cordless) and I tried configuring the special keys via keytouch, but it doesn't seem to work. I always get this error:

keytouch-init: Failed to set keycode:
keycode 142 to scancode 8450 (0x2102)
keytouch-init: Failed to set keycode:
keycode 140 to scancode 729618 (0xb2212)
keytouch-init: Failed to set keycode:
keycode 171 to scancode 729603 (0xb2203)
keytouch-init: Failed to set keycode:
keycode 226 to scancode 729603 (0xb2203)
keytouch-init: Failed to set keycode:
keycode 163 to scancode 729397 (0xb2135)
keytouch-init: Failed to set keycode:
keycode 164 to scancode 729421 (0xb214d)
keytouch-init: Failed to set keycode:
keycode 115 to scancode 729449 (0xb2169)
keytouch-init: Failed to set keycode:
keycode 114 to scancode 729450 (0xb216a)
keytouch-init: Failed to set keycode:
keycode 113 to scancode 729442 (0xb2162)
keytouch-init: Failed to set keycode:
keycode 165 to scancode 729398 (0xb2136)
keytouch-init: Failed to set keycode:
keycode 166 to scancode 729399 (0xb2137)
keytouch-init: Failed to set keycode:
keycode 212 to scancode 733317 (0xb3085)
keytouch-init: Failed to set keycode:
keycode 177 to scancode 733344 (0xb30a0)
keytouch-init: Failed to set keycode:
keycode 178 to scancode 733343 (0xb309f)

I made a config file for my keyboard via keytouch-editor. I had to change the scan codes manually to 6 digits instead of the 3 the editor spits out. Here it is:

<keyboard>
  <file-info>
    <syntax-version>1.1</syntax-version>
    <last-change format="%d-%m-%Y">24-10-2009</last-change>
    <author></author>
  </file-info>
  <keyboard-info>
    <keyboard-name>
      <manufacturer>Logitech</manufacturer>
      <model>My Wave</model>
    </keyboard-name>
  </keyboard-info>
  <key-list>
    <key>
      <name>Sleep</name>
      <scancode>65666</scancode>
      <keycode>SLEEP</keycode>
      <default-action action-type="plugin">
        <plugin-name>Lock Screen</plugin-name>
        <plugin-function>Lock Screen</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Calc</name>
      <scancode>786834</scancode>
      <keycode>CALC</keycode>
      <default-action>kcalc || gnome-calculator || xcalc</default-action>
    </key>
    <key>
      <name>Media Center</name>
      <scancode>786819</scancode>
      <keycode>CONFIG</keycode>
      <default-action>kcontrol || gnome-control-center</default-action>
    </key>
    <key>
      <name>Music</name>
      <scancode>786819</scancode>
      <keycode>MEDIA</keycode>
      <default-action>kcontrol || gnome-control-center</default-action>
    </key>
    <key>
      <name>Next song</name>
      <scancode>786613</scancode>
      <keycode>NEXTSONG</keycode>
      <default-action action-type="plugin">
        <plugin-name>XMMS</plugin-name>
        <plugin-function>Next</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Play/Pause</name>
      <scancode>786637</scancode>
      <keycode>PLAYPAUSE</keycode>
      <default-action action-type="plugin">
        <plugin-name>XMMS</plugin-name>
        <plugin-function>Play/Pause</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Volume Up</name>
      <scancode>786665</scancode>
      <keycode>VOLUMEUP</keycode>
      <default-action action-type="plugin">
        <plugin-name>Amixer</plugin-name>
        <plugin-function>Volume increase</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Volume Down</name>
      <scancode>786666</scancode>
      <keycode>VOLUMEDOWN</keycode>
      <default-action action-type="plugin">
        <plugin-name>Amixer</plugin-name>
        <plugin-function>Volume decrease</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Mute</name>
    <key>
      <name>Mute</name>
      <scancode>786658</scancode>
      <keycode>MUTE</keycode>
      <default-action action-type="plugin">
        <plugin-name>Amixer</plugin-name>
        <plugin-function>Mute</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Previous song</name>
      <scancode>786614</scancode>
      <keycode>PREVIOUSSONG</keycode>
      <default-action action-type="plugin">
        <plugin-name>XMMS</plugin-name>
        <plugin-function>Previous</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Stop CD</name>
      <scancode>786615</scancode>
      <keycode>STOPCD</keycode>
      <default-action action-type="plugin">
        <plugin-name>XMMS</plugin-name>
        <plugin-function>Stop</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Camera</name>
      <scancode>790533</scancode>
      <keycode>CAMERA</keycode>
      <default-action></default-action>
    </key>
    <key>
      <name>Scroll Up</name>
      <scancode>790560</scancode>
      <keycode>SCROLLUP</keycode>
      <default-action action-type="plugin">
        <plugin-name>Scroll</plugin-name>
        <plugin-function>Up</plugin-function>
      </default-action>
    </key>
    <key>
      <name>Scroll Down</name>
      <scancode>790559</scancode>
      <keycode>SCROLLDOWN</keycode>
      <default-action action-type="plugin">
        <plugin-name>Scroll</plugin-name>
        <plugin-function>Down</plugin-function>
      </default-action>
    </key>
  </key-list>
</keyboard>

The only key that is working is the "Stop" button, but it doesn't work properly since it decreases the volume.

I know I am not the only one with this problem, it appeared here and here.

If you look carefully, you would see that the scancodes that appear in the error message aren't the scancodes entered in the config file!

Thanks in advance, Ido.

Offline

Board footer

Powered by FluxBB