2009-03-12 12:54:20 UTC
Now I tried to avoid the non-compiling keytouch-editor program and follow the guide in
http://prdownloads.sourceforge.net/keytouch/howto_keyboard_2.1.pdf?download
and for the volume down buttong, I got the following keycode with 'getscancodes' (that compiled fine):
786666 (0xC00ea)
So I crafted the following 'I-want-one-key-working-first' xml-file and got it imported in keytouch:
<keyboard>
<file-info>
<syntax-version>1.1</syntax-version>
<last-change format="%d-%m-%Y">10-03-2009</last-change>
<author>Morten Breum Mikkelsen</author>
</file-info>
<keyboard-info>
<keyboard-name>
<manufacturer>Logitech</manufacturer>
<model>diNovo mini (USB bt) Y-RBG93</model>
</keyboard-name>
</keyboard-info>
<key-list>
<key>
<name>Volume Down</name>
<scancode>786666</scancode>
<keycode>VOLUMEDOWN</keycode>
<default-action action-type="program">
mythfrontend
</default-action>
</key>
</key-list>
</keyboard>
But for some reason, mythfrontend does not show up when I press the button. I also tried reconfiguring the command to something else just in case, but no action seems to be performed.
What do I do to debug that?
Thanks,
/Morten
PS. Perhaps I missed it, but I didn't seem to read anywhere that getscancodes will not work in a terminal within an X environment, but I found out that I had to go to a non-graphical console to receive anything.
PPS. Importing a keyboard in keytouch requires root privileges (got a permission denied when the GUI tried to copy the xml file from my home directory). I moved the file by hand and got in a fight with the naming convention, but I got it sorted out.