[Hwdb-devel] cutomized hwdb rules for Heng Yu Technology Poker II not working

Weiwu a at colourful.land
Fri May 19 04:49:41 UTC 2017


Dear developers:

This is a user question slightly beyond the capacity of all user lists.

The keyboard "Heng Yu Technology Poker II" has reverse positioned ESC and 
TILE keys.  They reason that ESC is the most frequently used key, and TILE 
the least, hence ESC should be where TILE is. The ignorant manufacturer has 
Windows in mind so they don't know TILE represents $HOME hence is often 
used; They also don't know some languages uses characters like ñ which can 
be produced by composing tile key.

My attempt is to swap back those two keys.

Step 1. This command identifies the ESC key code is 1 and TILE is 41
# showkey --keycode

Step 2. dmesg identifies the bus/vendor/product to be 3/0F39/0611
$ dmesg | grep -i Heng
[    3.391586] usb 6-1: Manufacturer: Heng Yu Technology
[    4.194499] input: Heng Yu Technology Poker II as /devices/pci0000:00/0000:00:10.0/usb6/6-1/6-1:1.0/0003:0F39:0611.0001/input/input11
[    4.253849] hid-generic 0003:0F39:0611.0001: input,hidraw0: USB HID v1.10 Keyboard [Heng Yu Technology Poker II] on usb-0000:00:10.0-1/input0
[    4.261416] input: Heng Yu Technology Poker II as /devices/pci0000:00/0000:00:10.0/usb6/6-1/6-1:1.1/0003:0F39:0611.0002/input/input12
[    4.321654] hid-generic 0003:0F39:0611.0002: input,hidraw1: USB HID v1.10 Device [Heng Yu Technology Poker II] on usb-0000:00:10.0-1/input1

Step 3. Add rule for 3/0F39/0611

$ cat /etc/udev/hwdb.d/70-keyboard.hwdb evdev:input:b0003v0F39p0611*
 	KEYBOARD_KEY_41=esc
 	KEYBOARD_KEY_1=tile

Step 4. update hwdb:

# systemd-hwdb update

Step 5. Reboot.

Despite bus/vendor/product remain 3/0F39/0611 after reboot, the keyboard 
swap rules are ineffective.  Can you have a look which step did I do wrong?

Thanks!



More information about the Hwdb-devel mailing list