LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-25-2014, 07:18 AM   #1
landrei
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Rep: Reputation: Disabled
Keyboard generates multiple wrong keys on keypress


Hello,

I bought external wireless keyboard for laptop but encountered strange problem. On single key press keyboard generates multiple wrong keys. For example, instead of 'w' key I get three keys 'jlm'. My laptop runs on Fedora 20.

What strange is I tried Debian Wheezy LiveCD and keyboard worked like expected. But then I tried Debian Testing and got the same wrong behaviour. Then I tried to use this keyboard with desktop running RHEL7 and it works.

Dmesg output from laptop
Code:
[ 2964.342962] usb 2-1.1: new low-speed USB device number 6 using ehci-pci
[ 2964.432455] usb 2-1.1: New USB device found, idVendor=0188, idProduct=8496
[ 2964.432467] usb 2-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2964.437751] input: HID 0188:8496 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0188:8496.0007/input/input28
[ 2964.438532] hid-generic 0003:0188:8496.0007: input,hidraw2: USB HID v1.10 Keyboard [HID 0188:8496] on usb-0000:00:1d.0-1.1/input0
[ 2964.444449] input: HID 0188:8496 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:0188:8496.0008/input/input29
[ 2964.444626] hid-generic 0003:0188:8496.0008: input,hidraw3: USB HID v1.10 Keyboard [HID 0188:8496] on usb-0000:00:1d.0-1.1/input1
Dmesg output from desktop
Code:
[ 6163.117043] usb 3-1: new low-speed USB device number 4 using uhci_hcd
[ 6163.463083] usb 3-1: New USB device found, idVendor=0188, idProduct=8496
[ 6163.463092] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 6163.483598] input: HID 0188:8496 as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input11
[ 6163.483969] hid-generic 0003:0188:8496.0005: input,hidraw0: USB HID v1.10 Keyboard [HID 0188:8496] on usb-0000:00:1a.0-1/input0
[ 6163.520244] input: HID 0188:8496 as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.1/input/input12
[ 6163.520453] hid-generic 0003:0188:8496.0006: input,hidraw1: USB HID v1.10 Keyboard [HID 0188:8496] on usb-0000:00:1a.0-1/input1
Evtest output from laptop on w key
Code:
Event: time 1403697758.609910, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000d
Event: time 1403697758.609910, type 1 (EV_KEY), code 36 (KEY_J), value 1
Event: time 1403697758.609910, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000f
Event: time 1403697758.609910, type 1 (EV_KEY), code 38 (KEY_L), value 1
Event: time 1403697758.609910, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70010
Event: time 1403697758.609910, type 1 (EV_KEY), code 50 (KEY_M), value 1
Event: time 1403697758.609910, -------------- SYN_REPORT ------------
jlmEvent: time 1403697758.713862, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000d
Event: time 1403697758.713862, type 1 (EV_KEY), code 36 (KEY_J), value 0
Event: time 1403697758.713862, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000f
Event: time 1403697758.713862, type 1 (EV_KEY), code 38 (KEY_L), value 0
Event: time 1403697758.713862, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70010
Event: time 1403697758.713862, type 1 (EV_KEY), code 50 (KEY_M), value 0
Event: time 1403697758.713862, -------------- SYN_REPORT ------------
Evtest output from laptop internal keyboard on w press
Code:
Event: time 1403697851.287064, type 4 (EV_MSC), code 4 (MSC_SCAN), value 11
Event: time 1403697851.287064, type 1 (EV_KEY), code 17 (KEY_W), value 1
Event: time 1403697851.287064, -------------- SYN_REPORT ------------
wEvent: time 1403697851.412160, type 4 (EV_MSC), code 4 (MSC_SCAN), value 11
Event: time 1403697851.412160, type 1 (EV_KEY), code 17 (KEY_W), value 0
Event: time 1403697851.412160, -------------- SYN_REPORT ------------
I see that evtest reports values (scancodes?) in range of 0x7000 but can't tell why is this and how to fix it. If someone have any ideas I would be very grateful.
 
Old 06-25-2014, 08:34 AM   #2
landrei
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Long story short. keyboard has combination Fn-F12 that swaps Ctrl and Caps Lock. When Caps = Ctrl other keys works fine. Guess I have to stick with this solution and swap Ctrl and Caps back through xkb.
 
Old 06-25-2014, 09:59 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Fn+shift on an old laptop would change modes so that the numpad in the middle of the keyboard was outputted, not the qwerty keys. Doing Fn+shift put it back to the other mode. Lessons taught by cats.

On debian based distros there's a keyboard-configuration tool since the default keyboard layout is assumed to be brittish as in en_GB.UTF-8 on things like a raspberry pi. With various tools like xinput, or lsinput to show what your hardware is vs. what it is being used as.

Maybe you're missing some locales or unicode stuff, or it's misconfigured. Unicode being where things like ascii characters are two bytes instead of one. So multiple languages can be semi-native to a given system. Or it could be a udev or evdev quirk.

Last edited by Shadow_7; 06-25-2014 at 10:01 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
keyboard issue: no xev output on keypress... masavini Linux - Hardware 4 05-30-2012 02:21 AM
My keyboard has two keycodes from one keypress Sbryant31 Linux - Newbie 4 06-14-2011 03:17 PM
Wrong keys on keyboard when in terminal mode boerkees Linux - Newbie 2 05-15-2009 03:51 PM
[SOLVED] [Keyboard Multimedia keys] Multiple scancodes mapped to same keycode Vhann Linux - Laptop and Netbook 1 04-20-2009 11:28 PM
Grey Cat Linux on old laptop...wrong keyboard keys vdogvictor Linux - Laptop and Netbook 0 05-27-2004 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration