https://bugzilla.novell.com/show_bug.cgi?id=812209
https://bugzilla.novell.com/show_bug.cgi?id=812209#c16
Federico Vecchiarelli changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
InfoProvider|scereze@gmail.com |
--- Comment #16 from Federico Vecchiarelli 2014-04-07 02:45:56 UTC ---
Thanks for pointing that out. I tried:
evtest /dev/input/event7
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
Input device name: "Toshiba input device"
Supported events:
Event type 0 (Sync)
Event type 1 (Key)
Event code 113 (Mute)
Event code 128 (Stop)
Event code 142 (Sleep)
Event code 149 (Prog2)
Event code 150 (WWW)
Event code 152 (Coffee)
Event code 155 (Mail)
Event code 163 (NextSong)
Event code 164 (PlayPause)
Event code 165 (PreviousSong)
Event code 205 (Suspend)
Event code 224 (Brightness down)
Event code 225 (Brightness up)
Event code 226 (Media)
Event code 227 (?)
Event code 228 (?)
Event code 236 (?)
Event code 238 (?)
Event code 240 (Unknown)
Event code 418 (?)
Event code 419 (?)
Event code 420 (?)
Event code 464 (?)
Event code 530 (?)
Event type 4 (Misc)
Event code 4 (ScanCode)
Testing ... (interrupt to exit)
Event: time 1396838065.641639, type 4 (Misc), code 4 (ScanCode), value 13c
Event: time 1396838065.641639, type 1 (Key), code 236 (?), value 1
Event: time 1396838065.641639, -------------- Report Sync ------------
===================
So I created /usr/lib/udev/hwdb.d/61-keyboard-toshiba.hwdb with:
keyboard:dmi:bvn*:bvr*:bd*:svnTOSHIBA*:pnSatellite*M840:pvr*
KEYBOARD_KEY_13c=brightnessdown # F2 - Less brightness
KEYBOARD_KEY_13d=brightnessup # F3 - More brightness
KEYBOARD_KEY_13e=switchvideomode # F4 - Switch display outputs
KEYBOARD_KEY_13f=f21 # F5 - Touchpad on/off
KEYBOARD_KEY_157=mute # F11 - Audio mute/unmute
KEYBOARD_KEY_158=wlan # F12 - Wireless on/off
Then ran:
udevadm hwdb --update
Restarted, just to be sure and then issued:
udevadm --debug test /devices/platform/i8042/serio0/input/input0/event0
which returned (trimmed content here):
DEVNAME=/dev/input/event0
DEVPATH=/devices/platform/i8042/serio0/input/input0/event0
ID_INPUT=1
ID_INPUT_KEY=1
ID_INPUT_KEYBOARD=1
ID_PATH=platform-i8042-serio-0
ID_PATH_TAG=platform-i8042-serio-0
ID_SERIAL=noserial
KEYBOARD_KEY_13c=brightnessdown
KEYBOARD_KEY_13d=brightnessup
KEYBOARD_KEY_13e=switchvideomode
KEYBOARD_KEY_13f=f21
KEYBOARD_KEY_157=mute
KEYBOARD_KEY_158=wlan
The key mapping is still not working. Is it because the devname shows as event0
while the keys are captured by evtest on event7? If so, should the keyboard
entry under the hwdb file be different?
Thank you.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.