You are not logged in.
Pages: 1
I have a Compaq laptop and my brightness key (fn+F7 and fn+F8) doesn't work. I have found that if I add (acp_osi=) in grub I can use these keys but the main problem I have found, is that there is no scancode and also no keycodes when i press these keys. There is a few other function keys with this problem. I discover that if I boot another distro (Live archbang) the brightness keys give a scancode and work perfectly. Do you have any idea to help me with this issue? Is it a problem with the config of the Kernel?
Keyboard hwinfo:
$ hwinfo --keyboard
13: PS/2 00.0: 10800 Keyboard
[Created at input.226]
Unique ID: 3FDI.+49ps10DtUF
Hardware Class: keyboard
Model: "AT Translated Set 2 keyboard"
Vendor: 0x0001
Device: 0x0001 "AT Translated Set 2 keyboard"
Compatible to: int 0x0211 0x0001
Device File: /dev/input/event5
Device Files: /dev/input/event5, /dev/input/by-path/platform-i8042-serio-0-event-kbd
Device Number: char 13:69
Driver Info #0:
XkbRules: xfree86
XkbModel: pc104
Config Status: cfg=new, avail=yes, need=no, active=unknown
Thanks!
Offline
Arch is home!
https://github.com/Docbroke
Offline
Thank you Docbroke, but this wiki was my starting point to resolve my keyboard bug.
I'm gonna tell you some output of test i did.
I did: showkey --scancodes in virtual console ; Result no output
I did : showkey --keycodes in virtual console: Result no output
I did : xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }' : Result no output
I did dmesg:
$ dmesg | tail
[ 923.130502] hp_wmi: Unknown key code - 0x30000
[ 923.982155] hp_wmi: Unknown key code - 0x30000
[ 970.303520] fuse init (API version 7.23)
[ 1243.992034] hp_wmi: Unknown key code - 0x30000
[ 1244.332783] hp_wmi: Unknown key code - 0x30000
[ 1244.643610] hp_wmi: Unknown key code - 0x30000I did evtest:
$sudo evtest
Select the device event number [0-11]: 5
Input driver version is 1.0.1
Input device ID: bus 0x11 vendor 0x1 product 0x1 version 0xab41
Input device name: "AT Translated Set 2 keyboard"
Properties:
Testing ... (interrupt to exit)
Event: time 1458089411.808935, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1c
Event: time 1458089411.808935, type 1 (EV_KEY), code 28 (KEY_ENTER), value 0
Event: time 1458089411.808935, -------------- SYN_REPORT ------------
Event: time 1458089414.692029, type 4 (EV_MSC), code 4 (MSC_SCAN), value 81
Event: time 1458089414.692029, type 1 (EV_KEY), code 465 (KEY_FN_ESC), value 1
Event: time 1458089414.692029, -------------- SYN_REPORT ------------
Event: time 1458089414.700414, type 4 (EV_MSC), code 4 (MSC_SCAN), value 81
Event: time 1458089414.700414, type 1 (EV_KEY), code 465 (KEY_FN_ESC), value 0
Event: time 1458089414.700414, -------------- SYN_REPORT ------------
Event: time 1458089415.944134, type 4 (EV_MSC), code 4 (MSC_SCAN), value 81
Event: time 1458089415.944134, type 1 (EV_KEY), code 465 (KEY_FN_ESC), value 1
Event: time 1458089415.944134, -------------- SYN_REPORT ------------
Event: time 1458089415.952718, type 4 (EV_MSC), code 4 (MSC_SCAN), value 81
Event: time 1458089415.952718, type 1 (EV_KEY), code 465 (KEY_FN_ESC), value 0In evtest the brightness up and brightness down have the same code 465 and a wrong value KEY_FN_ESC
Do you have a suggestion for me ??
Thanks in advance!
Last edited by sco22 (2016-03-16 02:23:37)
Offline
both keys having same keycode (465) is and same scancode (81), is a problem, I have similar thing in my keyboard where Fn+End and Fn+Home gives same scancodes, no solution yet.
Another point which may help you later is, keycodes/scancode given by evtest are same as found in console by showkey, but they don't work under x-server, as after startx, keycodes interpretation done by x is different. So if you try to bind keys using codes from evtest it will not work under x. To find out keycodes under x use "xbindkeys -k".
Arch is home!
https://github.com/Docbroke
Offline
Pages: 1