Reply To: Got a "new to me" Wireless Multimedia Keyboard

Forum Forums General Hardware Got a "new to me" Wireless Multimedia Keyboard Reply To: Got a "new to me" Wireless Multimedia Keyboard

#25840
Member
AvatarBobC

I think I was able to find a way to program all but 5 of the keys. The ones that produce no codes are My Favorites #1 thru #5.

These were the best sites

https://sourceforge.net/projects/keytouch/

http://www.pal-blog.de/linux/ubuntu-1404-trusty-mapping-usb-keyboards.html

https://hal.freedesktop.org/quirk/quirk-keymap-list.txt

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 03eb:8a96 Atmel Corp. 
Bus 001 Device 003: ID 8087:0a2a Intel Corp. 
Bus 001 Device 002: ID 1bcf:2b8a Sunplus Innovation Technology Inc. 
Bus 001 Device 014: ID 045e:009d Microsoft Corp. Wireless Optical Desktop 3.0
$ sudo getscancodes /dev/input/event18
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x45e product 0x9d version 0x111
Input device name: "Microsoft Microsoft Wireless Optical Desktop® 2.10"
786870 (0xc01b6)
786871 (0xc01b7)
786841 (0xc0199)
786844 (0xc019c)

Therefore /etc/udev/hwdb.d/ms1011-keyboard.hwdb will contain:
keyboard:usb:v045ep009d*
KEYBOARD_KEY_0xc0183=media
KEYBOARD_KEY_0xc01b6=graphicseditor
KEYBOARD_KEY_0xc01b7=audio
KEYBOARD_KEY_0xc0199=messenger
KEYBOARD_KEY_0xc019c=exit`



So I want to program those to run

XF86Video - KEYBOARD_KEY_0xc0183=media
XF86Pictures - KEYBOARD_KEY_0xc01b6=graphicseditor
XF86Music - KEYBOARD_KEY_0xc01b7=audio
XF86Messenger - KEYBOARD_KEY_0xc0199=messenger
<code>XF86Logoff - KEYBOARD_KEY_0xc019c=exit</code>
I tried adding a key to my keys file
<code>key &quot;graphicseditor&quot; mtpaint</code>

And save, and restart IceWM, then reset udev database:

Testing a HWDB change

Either reboot your computer to make your new configuration file active or run the udevadm command to update the internal database from your file and reload it into the running system:

<code>$ sudo udevadm -d hwdb --update;sudo udevadm -d control --reload</code>

I saw my changes were read at the end

Now unplug your USB keyboard, wait two or three seconds (or more) and plug it in again. Press the reconfigured key and you should get the action defined in the config file (I used mute for testing, because it’s a visible action in Ubuntu).

But it had no effect. I will try rebooting next…

Reply To: Got a "new to me" Wireless Multimedia Keyboard


The reboot didn’t fix it. xev produces nothing on the My Pictures key instead of pressing the graphicseditor key and bringing up mtpaint.

Any ideas?

  • This reply was modified 11 months, 3 weeks ago by rokytnji.
  • This reply was modified 11 months, 3 weeks ago by rokytnji.
  • This reply was modified 11 months, 3 weeks ago by rokytnji.