LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Udev rules problem with Dell's WMI hotkeys (https://www.linuxquestions.org/questions/linux-hardware-18/udev-rules-problem-with-dells-wmi-hotkeys-4175595953/)

netpumber 12-22-2016 02:05 PM

Udev rules problem with Dell's WMI hotkeys
 
Hi. I'm getting this error from journalctl

Quote:

Error calling EVIOCSKEYCODE on device node '/dev/input/event10' (scan code 0x150, key code 190):
Tried to figure out why this error is coming out but couldn't actually find a way to fix it.

Code:

sudo evtest /dev/input/event10
returns :

Quote:

Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
Input device name: "Dell WMI hotkeys"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 113 (KEY_MUTE)
Event code 114 (KEY_VOLUMEDOWN)
Event code 115 (KEY_VOLUMEUP)
Event code 148 (KEY_PROG1)
Event code 149 (KEY_PROG2)
Event code 161 (KEY_EJECTCD)
Event code 202 (KEY_PROG3)
Event code 203 (KEY_PROG4)
Event code 224 (KEY_BRIGHTNESSDOWN)
Event code 225 (KEY_BRIGHTNESSUP)
Event code 227 (KEY_SWITCHVIDEOMODE)
Event code 236 (KEY_BATTERY)
Event code 240 (KEY_UNKNOWN)
Event code 248 (KEY_MICMUTE)
Event code 431 (KEY_DISPLAYTOGGLE)
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)
and

Code:

grep event10 /proc/bus/input/devices -A5 -B4
returns

Quote:

N: Name="Dell WMI hotkeys"
P: Phys=wmi/input0
S: Sysfs=/devices/virtual/input/input12
U: Uniq=
H: Handlers=kbd event10
B: PROP=0
B: EV=13
B: KEY=8000 0 0 0 0 0 101100b c00 2 300000 e0000 0 0 0
B: MSC=10
Which exactly is the file where these keycodes are defined for udev rules ?

Does anyone has an idea on how to try fix it ?

Thanks

ferrari 12-24-2016 01:25 AM

Perhaps this bug report is relevant to you

https://bugs.launchpad.net/ubuntu/+s...d/+bug/1597415

This thread too

https://ubuntuforums.org/showthread.php?t=2250210

Quote:

Which exactly is the file where these keycodes are defined for udev rules ?
Check /lib/udev/hwdb.d/60-keyboard.hwdb

In particular, this entry seems to be causing grief for some Dell owners...
Quote:

# Dell Latitude microphone mute
keyboard:name:Dell WMI hotkeys:dmi:bvn*:bvr*:bd*:svnDell*:pnLatitude*
KEYBOARD_KEY_150=f20 # Mic mute toggle, should be micmute

netpumber 12-25-2016 08:47 AM

I saw these Bugs but there is no any fixed referenced in these threads. I found also that issue https://bugs.launchpad.net/ubuntu/+s...d/+bug/1339998 where i tried what Hui Wang said at post #6 but without any luck. The error still exists.

I don't know if I have to just comment that specific line of the /lib/udev/hwdb.d/60-keyboard.hwdb as said at ubuntu board. I would like to find another more sophisticated fix.

Thanks anyway for your answer.

ferrari 12-25-2016 01:45 PM

Quote:

I don't know if I have to just comment that specific line of the /lib/udev/hwdb.d/60-keyboard.hwdb as said at ubuntu board. I would like to find another more sophisticated fix.

Thanks anyway for your answer.
I can only suggest submitting a bug report.


All times are GMT -5. The time now is 12:46 PM.