Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I need help to setup multimedia keys
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Basilio
n00b
n00b


Joined: 04 Feb 2010
Posts: 16

PostPosted: Mon Oct 16, 2017 9:29 pm    Post subject: I need help to setup multimedia keys Reply with quote

I am using PS/2 Genius KL-0210 Comfy KB21eScroll keyboard image

Almost all keys work out-of-the box, except two keys marked as "Excel" and "Word".

When I try to capture their codes with xev nothing happens.

/var/log/messages shows these:
Code:

Oct 17 00:07:26 quad kernel: atkbd serio0: Unknown key pressed (translated set 2, code 0x94 on isa0060/serio0).
Oct 17 00:07:26 quad kernel: atkbd serio0: Use 'setkeycodes e014 <keycode>' to make it known.
Oct 17 00:07:26 quad kernel: atkbd serio0: Unknown key released (translated set 2, code 0x94 on isa0060/serio0).
Oct 17 00:07:26 quad kernel: atkbd serio0: Use 'setkeycodes e014 <keycode>' to make it known.
Oct 17 00:07:27 quad kernel: atkbd serio0: Unknown key pressed (translated set 2, code 0x93 on isa0060/serio0).
Oct 17 00:07:27 quad kernel: atkbd serio0: Use 'setkeycodes e013 <keycode>' to make it known.
Oct 17 00:07:27 quad kernel: atkbd serio0: Unknown key released (translated set 2, code 0x93 on isa0060/serio0).
Oct 17 00:07:27 quad kernel: atkbd serio0: Use 'setkeycodes e013 <keycode>' to make it known.


I've added file: /etc/udev/hwdb.d/90-custom-keyboard.hwdb:
Code:

evdev:atkbd:dmi:bvn*:bvr*:bd*:svnGigabyteTechnologyCo.,Ltd.:pnTobefilledbyO.E.M.:pvr*
  KEYBOARD_KEY_93=wordprocessor
  KEYBOARD_KEY_94=spreadsheet


The identification string I've dug from here
Code:

# evemu-describe /dev/input/event2
# EVEMU 1.3
# Kernel: 4.12.10-gentoo
# DMI: dmi:bvnAmericanMegatrendsInc.:bvrUa9:bd03/06/2013:svnGigabyteTechnologyCo.,Ltd.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rnZ68AP-D3:rvrTobefilledbyO.E.M.:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvrToBeFilledByO.E.M.:
# Input device name: "AT Translated Set 2 keyboard"
# Input device ID: bus 0x11 vendor 0x01 product 0x01 version 0xab41


after
Code:
systemd-hwdb update
and reboot evtest /dev/input/event2 results:

Code:

Event: time 1508187683.829408, type 4 (EV_MSC), code 4 (MSC_SCAN), value 94
Event: time 1508187683.829408, type 1 (EV_KEY), code 423 (KEY_SPREADSHEET), value 1
Event: time 1508187683.829408, -------------- SYN_REPORT ------------
Event: time 1508187683.996437, type 4 (EV_MSC), code 4 (MSC_SCAN), value 94
Event: time 1508187683.996437, type 1 (EV_KEY), code 423 (KEY_SPREADSHEET), value 0
Event: time 1508187683.996437, -------------- SYN_REPORT ------------
Event: time 1508187684.355193, type 4 (EV_MSC), code 4 (MSC_SCAN), value 93
Event: time 1508187684.355193, type 1 (EV_KEY), code 421 (KEY_WORDPROCESSOR), value 1
Event: time 1508187684.355193, -------------- SYN_REPORT ------------
Event: time 1508187684.587079, type 4 (EV_MSC), code 4 (MSC_SCAN), value 93
Event: time 1508187684.587079, type 1 (EV_KEY), code 421 (KEY_WORDPROCESSOR), value 0


xev is still silent :(

Although, when I set
Code:
setkeycodes e013 93 e014 94
, xev catches these keys:
Code:

KeyPress event, serial 35, synthetic NO, window 0x1600001,
    root 0xd1, subw 0x0, time 688163, (99,76), root:(100,119),
    state 0x0, keycode 102 (keysym 0xff22, Muhenkan), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x1600001,
    root 0xd1, subw 0x0, time 688395, (99,76), root:(100,119),
    state 0x0, keycode 102 (keysym 0xff22, Muhenkan), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 35, synthetic NO, window 0x1600001,
    root 0xd1, subw 0x0, time 688917, (99,76), root:(100,119),
    state 0x0, keycode 101 (keysym 0xff27, Hiragana_Katakana), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x1600001,
    root 0xd1, subw 0x0, time 689181, (99,76), root:(100,119),
    state 0x0, keycode 101 (keysym 0xff27, Hiragana_Katakana), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False


I'm totally confused:
Code:

basilio@quad ~ $ xmodmap -pke
...
keycode  98 = Katakana NoSymbol Katakana
keycode  99 = Hiragana NoSymbol Hiragana
keycode 101 = Hiragana_Katakana NoSymbol Hiragana_Katakana
keycode 102 = Muhenkan NoSymbol Muhenkan


How keycodes, scancodes and keysyms are bound together?

What is proper setup to map these keys to XF86ApplicationA/B or XF86Launch1 etc?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum