Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668326 - sys-apps/hwids: Error calling EVIOCSKEYCODE on device node
Summary: sys-apps/hwids: Error calling EVIOCSKEYCODE on device node
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-11 16:27 UTC by eNca
Modified: 2019-11-29 02:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eNca 2018-10-11 16:27:45 UTC
When I connect my USB keyboard "Microsoft Natural® Ergonomic Keyboard 4000" to the USB port then these error messages appears in the /var/log/messages:

> Oct 11 17:24:41 vvotipka-gentoo kernel: <27>[ 1264.059078] udevd[7879]: Error calling EVIOCSKEYCODE on device node '/dev/input/event7' (scan code 0xc022d, key code 103): Invalid argument
> Oct 11 17:24:41 vvotipka-gentoo kernel: <27>[ 1264.059085] udevd[7879]: Error calling EVIOCSKEYCODE on device node '/dev/input/event7' (scan code 0xc022e, key code 108): Invalid argument

I have found the solution (https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1389201/comments/6). When I remove these lines from /lib/udev/hwdb.d/60-keyboard.hwdb and run udevadm hwdb -u then the problem disappears:

> ###########################################################
> # Microsoft
> ###########################################################
> 
> # Microsoft Natural Ergonomic Keyboard 4000
> evdev:input:b0003v045Ep00DB*
>  KEYBOARD_KEY_c022d=zoomin
>  KEYBOARD_KEY_c022e=zoomout

My environment: 
Gentoo Linux on MacBook Pro
sys-apps/hwids-20171003
sys-fs/eudev-3.2.5

Very similar problem appears for Logitech Pefromance MX wireless mouse. When I connect the receiver to the USB port then these errors appears in the /var/log/messages:
> Oct 11 17:39:06 vvotipka-gentoo kernel: <27>[ 2128.800717] udevd[8663]: Error calling EVIOCSKEYCODE on device node '/dev/input/event10' (scan code 0xc00b8, key code 161): Invalid argument
> Oct 11 17:39:06 vvotipka-gentoo kernel: <27>[ 2128.800723] udevd[8663]: Error calling EVIOCSKEYCODE on device node '/dev/input/event10' (scan code 0xc0183, key code 226): Invalid argument
> Oct 11 17:39:06 vvotipka-gentoo kernel: <27>[ 2128.800728] udevd[8663]: Error calling EVIOCSKEYCODE on device node '/dev/input/event10' (scan code 0xc0184, key code 421): Invalid argument
> Oct 11 17:39:06 vvotipka-gentoo kernel: <27>[ 2128.800732] udevd[8663]: Error calling EVIOCSKEYCODE on device node '/dev/input/event10' (scan code 0xc0186, key code 423): Invalid argument
> Oct 11 17:39:06 vvotipka-gentoo kernel: <27>[ 2128.800737] udevd[8663]: Error calling EVIOCSKEYCODE on device node '/dev/input/event10' (scan code 0xc018a, key code 155): Invalid argument
> Oct 11 17:39:06 vvotipka-gentoo kernel: <27>[ 2128.800742] udevd[8663]: Error calling EVIOCSKEYCODE on device node '/dev/input/event10' (scan code 0xc018e, key code 397): Invalid argument
> Oct 11 17:39:06 vvotipka-gentoo kernel: <27>[ 2128.800746] udevd[8663]: Error calling EVIOCSKEYCODE on device node '/dev/input/event10' (scan code 0xc01b6, key code 212): Invalid argument
> Oct 11 17:39:06 vvotipka-gentoo kernel: <27>[ 2128.800751] udevd[8663]: Error calling EVIOCSKEYCODE on device node '/dev/input/event10' (scan code 0xc01bc, key code 430): Invalid argument
> Oct 11 17:39:06 vvotipka-gentoo kernel: <27>[ 2128.800755] udevd[8663]: Error calling EVIOCSKEYCODE on device node '/dev/input/event10' (scan code 0xc0221, key code 217): Invalid argument
> Oct 11 17:39:06 vvotipka-gentoo kernel: <27>[ 2128.800760] udevd[8663]: Error calling EVIOCSKEYCODE on device node '/dev/input/event10' (scan code 0xc0223, key code 172): Invalid argument

In this case I need to remove this part from the same file:

> # Cordless Wave Pro
> evdev:input:b0003v046DpC52[9B]*
>  KEYBOARD_KEY_0c01b6=camera
>  KEYBOARD_KEY_0c0183=media
>  KEYBOARD_KEY_0c0184=wordprocessor
>  KEYBOARD_KEY_0c0186=spreadsheet
>  KEYBOARD_KEY_0c018e=calendar
>  KEYBOARD_KEY_0c0223=homepage
>  KEYBOARD_KEY_0c01bc=messenger
>  KEYBOARD_KEY_0c018a=mail
>  KEYBOARD_KEY_0c0221=search
>  KEYBOARD_KEY_0c00b8=ejectcd
>  KEYBOARD_KEY_0c022d=zoomin
>  KEYBOARD_KEY_0c022e=zoomout
Comment 1 Mike Gilbert gentoo-dev 2019-11-29 02:32:22 UTC
If you still have this problem, please report it to the system developers.

https://github.com/systemd/systemd