what to name the hwdb file

Hi all,

I have an Chinese made generic remote USB/Bluetooth, the OK / Select button doesn’t work. I’m trying to remap the button. I have the hwdb file created with the help from this post the only thing i’m not sure about is what to name the file. Could something help me.

below is the info from the device.

udevadm info /dev/input/event3

P: /devices/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.2/0003:7545:2804.0001/input/input3/event3

N: input/event3

L: 0

S: input/by-id/usb-NANO_IC_NANOSIC_USB_Dongle_WNF150U-if02-event-mouse

S: input/by-path/platform-xhci-hcd.0.auto-usb-0:1:1.2-event-mouse

E: DEVPATH=/devices/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.2/0003:7545:2804.0001/input/input3/event3

E: DEVNAME=/dev/input/event3

E: MAJOR=13

E: MINOR=67

E: SUBSYSTEM=input

E: USEC_INITIALIZED=9969308

E: ID_INPUT=1

E: ID_INPUT_MOUSE=1

E: ID_INPUT_KEY=1

E: ID_INPUT_KEYBOARD=1

E: ID_VENDOR=NANO_IC

E: ID_VENDOR_ENC=NANO\x20IC

E: ID_VENDOR_ID=7545

E: ID_MODEL=NANOSIC_USB_Dongle

E: ID_MODEL_ENC=NANOSIC\x20USB\x20Dongle

E: ID_MODEL_ID=2804

E: ID_REVISION=0100

E: ID_SERIAL=NANO_IC_NANOSIC_USB_Dongle_WNF150U

E: ID_SERIAL_SHORT=WNF150U

E: ID_TYPE=hid

E: ID_BUS=usb

E: ID_USB_INTERFACES=:010100:010200:030001:030000:

E: ID_USB_INTERFACE_NUM=02

E: ID_USB_DRIVER=usbhid

E: ID_PATH=platform-xhci-hcd.0.auto-usb-0:1:1.2

E: ID_PATH_TAG=platform-xhci-hcd_0_auto-usb-0_1_1_2

E: LIBINPUT_DEVICE_GROUP=3/7545/2804:usb-xhci-hcd.0.auto-1

E: DEVLINKS=/dev/input/by-id/usb-NANO_IC_NANOSIC_USB_Dongle_WNF150U-if02-event-mouse /dev/input/by-path/platform-xhci-hcd.0.auto-usb-0:1:1.2-event-mouse

E: TAGS=:power-switch:

I: Bus=0003 Vendor=7545 Product=2804 Version=0111

N: Name=“NANO IC NANOSIC USB Dongle”

P: Phys=usb-xhci-hcd.0.auto-1/input2

S: Sysfs=/devices/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.2/0003:7545:2804.0001/input/input3

U: Uniq=WNF150U

H: Handlers=kbd mouse1 event3

B: PROP=0

B: EV=12001f

B: KEY=3007f 0 0 0 0 483ffff 17aff32d bf544446 0 0 1f0001 130f93 8b17c007 ffff7bfa d9415fff febeffdf ffefffff ffffffff fffffffe

B: REL=143

B: ABS=1 0

B: MSC=10

B: LED=1f

@Liffeyman
https://kodi.wiki/view/Add-on:Keymap_Editor
Take you 2 minutes.
Its in the Kodi Repository.

1 Like

Hi, thanks for the suggestion, have tried this before, when I edit the key, it shows a number 16839168, I save the configuration, but it still doesn’t work.

From the evtest, i’m getting the following from the OK/Select button
Event: time 1575931921.867946, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0041
Event: time 1575931921.867946, type 1 (EV_KEY), code 353 (KEY_SELECT), value 1
Event: time 1575931921.867946, -------------- SYN_REPORT ------------
Event: time 1575931922.059918, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0041
Event: time 1575931922.059918, type 1 (EV_KEY), code 353 (KEY_SELECT), value 0
Event: time 1575931922.059918, -------------- SYN_REPORT ------------

On my hwdb file, i have the following entered.
evdev:input:b0003v7545p2804*
KEYBOARD_KEY_c0041=enter

when i run the commands
CoreELEC:~ # udevadm hwdb --update - i get the following statement
/storage/.config/hwdb.d/99-x20IC.hwdb:2: Property expected, ignoring record with no properties
same for
CoreELEC:~ # systemd-hwdb update
/storage/.config/hwdb.d/99-x20IC.hwdb:2: Property expected, ignoring record with no properties
and then i run this
CoreELEC:~ # udevadm trigger

I think my problems is with the name of the .hwdb file, i’m not sure what it needs to be named. Any suggestions?

thanks
Paul

You are missing space in front of second line (before KEYBOARD_KEY_…). Content of the file must be

evdev:input:b0003v7545p2804*
 KEYBOARD_KEY_c0041=enter
2 Likes

Legend!! I seen that and I thought it was a typo. That’s worked straight away

Cheers Paul

1 Like

Hi Liffey,

Glad you got it worked out. Can i ask you, what did you end up calling the file, and where did you place it?

Thanks

edit: actually all set. just had to get the right info in there. Thanks