You are not logged in.

#1 2016-07-16 02:22:38

raistlin
Member
Registered: 2016-03-03
Posts: 8

USB Keyboard Issue

Alright guys, I've tried everything I know to do.. I've been battling this for 3 days now and cannot figure it out.

I've got a new custom keyboard (White Fox, from Massdrop) that I've been waiting patiently on for almost almost 8 months, so I finally get this thing home and assembled and I can't get it to work on my Arch install... It works on other Linux distros (Ubuntu and Debian), macOS and Windows perfectly. So it has to be an issue with my Arch install.

Anyways, on to the details:

Symptoms:  Keyboard gets power when I plug it in, however it doesn't type the correct key and when I press any key it will cause both my laptops built in keyboard and to exhibit the same problem. I can unplug it and it use my built in keyboard again just fine.

I've been following the logs at close as possible but I cannot get to the root of this problem..

  • Downgrading to an earlier kernel: linux-4.5.1-1

  • Using the Linux LTS kernel and headers

  • Downgrading xinput and xorg-server to previous packages

  • Forcing it to use evdev instead of libinput via a xx-whitefox.conf in /etc/X11/xorg.conf.d

  • and a few other things I'm sure but I can't remember right now...

relative information, i'm on the LTS kernel for right now:

uname -a:

4.4.15-1-lts #1 SMP Mon Jul 11 20:46:47 CEST 2016 x86_64 GNU/Linux

snippet from journalctl

Jul 15 21:08:53 IT-41921 kernel: usb 1-3: new full-speed USB device number 4 using xhci_hcd
Jul 15 21:08:54 IT-41921 kernel: usb 1-3: config 1 has an invalid interface number: 6 but max is 5
Jul 15 21:08:54 IT-41921 kernel: usb 1-3: config 1 has no interface number 5
Jul 15 21:08:54 IT-41921 kernel: input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:1C11:B04D.0009/input/input27
Jul 15 21:08:54 IT-41921 kernel: hid-generic 0003:1C11:B04D.0009: input,hidraw0: USB HID v1.11 Keyboard [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input0
Jul 15 21:08:54 IT-41921 kernel: input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:1C11:B04D.000A/input/input28
Jul 15 21:08:54 IT-41921 kernel: hid-generic 0003:1C11:B04D.000A: input,hidraw1: USB HID v1.11 Keyboard [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input1
Jul 15 21:08:54 IT-41921 kernel: input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.2/0003:1C11:B04D.000B/input/input29
Jul 15 21:08:54 IT-41921 mtp-probe[2945]: checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3"
Jul 15 21:08:54 IT-41921 mtp-probe[2945]: bus: 1, device: 4 was not an MTP device
Jul 15 21:08:54 IT-41921 kernel: hid-generic 0003:1C11:B04D.000B: input,hidraw2: USB HID v1.11 Device [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input2
Jul 15 21:08:54 IT-41921 kernel: cdc_acm 1-3:1.3: ttyACM0: USB ACM device
Jul 15 21:08:54 IT-41921 kernel: input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.6/0003:1C11:B04D.000C/input/input30
Jul 15 21:08:54 IT-41921 kernel: hid-generic 0003:1C11:B04D.000C: input,hidraw3: USB HID v1.11 Mouse [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input6
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) config/udev: Adding input device Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full (/dev/input/mouse2)
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) No input driver specified, ignoring this device.
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) This device may have been added with another device file.
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) config/udev: Adding input device Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full (/dev/input/event19)
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: Applying InputClass "libinput keyboard catchall"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) systemd-logind: got fd for /dev/input/event19 13:83 fd 43 paused 0
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) Using input driver 'libinput' for 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full'
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: always reports core events
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "Device" "/dev/input/event19"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "_source" "server/udev"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event19 is tagged by udev as: Keyboard
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event19 is a keyboard
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:1C11:B04D.000A/input/input28/event19"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) XINPUT: Adding extended input device "Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full" (type: KEYBOARD, id 15)
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event19 is tagged by udev as: Keyboard
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event19 is a keyboard
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) config/udev: Adding input device Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full (/dev/input/event18)
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: Applying InputClass "libinput keyboard catchall"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) systemd-logind: got fd for /dev/input/event18 13:82 fd 44 paused 0
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) Using input driver 'libinput' for 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full'
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: always reports core events
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "Device" "/dev/input/event18"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "_source" "server/udev"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event18 is tagged by udev as: Keyboard
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event18 is a keyboard
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:1C11:B04D.0009/input/input27/event18"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) XINPUT: Adding extended input device "Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full" (type: KEYBOARD, id 16)
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event18 is tagged by udev as: Keyboard
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event18 is a keyboard
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) config/udev: Adding input device Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full (/dev/input/event20)
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: Applying InputClass "libinput keyboard catchall"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) systemd-logind: got fd for /dev/input/event20 13:84 fd 45 paused 0
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) Using input driver 'libinput' for 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full'
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: always reports core events
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "Device" "/dev/input/event20"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "_source" "server/udev"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event20 is tagged by udev as: Keyboard
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event20 is a keyboard
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) libinput: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: needs a virtual subdevice
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.2/0003:1C11:B04D.000B/input/input29/event20"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) XINPUT: Adding extended input device "Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full" (type: MOUSE, id 17)
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "AccelerationScheme" "none"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: (accel) selected scheme none/0
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: (accel) acceleration factor: 2.000
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: (accel) acceleration threshold: 4
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event20 is tagged by udev as: Keyboard
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event20 is a keyboard
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: Applying InputClass "libinput keyboard catchall"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) systemd-logind: returning pre-existing fd for /dev/input/event20 13:84
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) Using input driver 'libinput' for 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full'
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: always reports core events
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "Device" "/dev/input/event20"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "_source" "_driver/libinput"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) libinput: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: is a virtual subdevice
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.2/0003:1C11:B04D.000B/input/input29/event20"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) XINPUT: Adding extended input device "Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full" (type: KEYBOARD, id 18)
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) config/udev: Adding input device Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full (/dev/input/event21)
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: Applying InputClass "libinput pointer catchall"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) systemd-logind: got fd for /dev/input/event21 13:85 fd 46 paused 0
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) Using input driver 'libinput' for 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full'
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: always reports core events
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "Device" "/dev/input/event21"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "_source" "server/udev"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event21 is tagged by udev as: Mouse
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event21 is a pointer caps
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.6/0003:1C11:B04D.000C/input/input30/event21"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) XINPUT: Adding extended input device "Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full" (type: MOUSE, id 19)
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Option "AccelerationScheme" "none"
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: (accel) selected scheme none/0
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: (accel) acceleration factor: 2.000
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (**) Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full: (accel) acceleration threshold: 4
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event21 is tagged by udev as: Mouse
Jul 15 21:08:54 IT-41921 /usr/lib/gdm/gdm-x-session[767]: (II) input device 'Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full', /dev/input/event21 is a pointer caps

lsusb (The blank one is the keyboard which is suspicious to me)

Bus 004 Device 004: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor
Bus 004 Device 002: ID 8087:8000 Intel Corp. 
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 8087:8008 Intel Corp. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 1c11:b04d  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg | grep USB

[    3.078048] ACPI: bus type USB registered
[    3.078903] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
[    3.080401] hub 1-0:1.0: USB hub found
[    3.083250] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.085168] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
[    3.085328] hub 2-0:1.0: USB hub found
[    3.121427] ehci-pci 0000:00:1a.0: new USB bus registered, assigned bus number 3
[    3.140151] ehci-pci 0000:00:1a.0: USB 2.0 started, EHCI 1.00
[    3.140385] hub 3-0:1.0: USB hub found
[    3.140697] ehci-pci 0000:00:1d.0: new USB bus registered, assigned bus number 4
[    3.160222] ehci-pci 0000:00:1d.0: USB 2.0 started, EHCI 1.00
[    3.160773] hub 4-0:1.0: USB hub found
[    3.460195] usb 3-1: new high-speed USB device number 2 using ehci-pci
[    3.480193] usb 4-1: new high-speed USB device number 2 using ehci-pci
[    3.610779] hub 3-1:1.0: USB hub found
[    3.630778] hub 4-1:1.0: USB hub found
[    3.910178] usb 4-1.5: new full-speed USB device number 3 using ehci-pci
[    4.100169] usb 4-1.8: new full-speed USB device number 4 using ehci-pci
[    4.939556] usb 4-1.5: USB disconnect, device number 3
[   19.659457] usb 1-3: new full-speed USB device number 2 using xhci_hcd
[   19.817529] usbhid: USB HID core driver
[   19.818469] input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:1C11:B04D.0001/input/input19
[   19.821253] cdc_acm 1-3:1.3: ttyACM0: USB ACM device
[   19.826781] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   19.869664] hid-generic 0003:1C11:B04D.0001: input,hidraw0: USB HID v1.11 Keyboard [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input0
[   19.869983] input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:1C11:B04D.0002/input/input20
[   19.929665] hid-generic 0003:1C11:B04D.0002: input,hidraw1: USB HID v1.11 Keyboard [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input1
[   19.930324] input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.2/0003:1C11:B04D.0003/input/input21
[   19.989541] hid-generic 0003:1C11:B04D.0003: input,hidraw2: USB HID v1.11 Device [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input2
[   19.989844] input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.6/0003:1C11:B04D.0004/input/input22
[   20.059545] hid-generic 0003:1C11:B04D.0004: input,hidraw3: USB HID v1.11 Mouse [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input6
[   47.173176] usb 1-3: USB disconnect, device number 2
[  997.443503] usb 1-3: new full-speed USB device number 3 using xhci_hcd
[  997.586978] input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:1C11:B04D.0005/input/input23
[  997.643806] hid-generic 0003:1C11:B04D.0005: input,hidraw0: USB HID v1.11 Keyboard [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input0
[  997.645326] input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:1C11:B04D.0006/input/input24
[  997.703807] hid-generic 0003:1C11:B04D.0006: input,hidraw1: USB HID v1.11 Keyboard [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input1
[  997.705777] input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.2/0003:1C11:B04D.0007/input/input25
[  997.763663] hid-generic 0003:1C11:B04D.0007: input,hidraw2: USB HID v1.11 Device [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input2
[  997.764082] cdc_acm 1-3:1.3: ttyACM0: USB ACM device
[  997.766320] input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.6/0003:1C11:B04D.0008/input/input26
[  997.766455] hid-generic 0003:1C11:B04D.0008: input,hidraw3: USB HID v1.11 Mouse [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input6
[ 1012.506642] usb 1-3: USB disconnect, device number 3
[ 1389.601359] usb 1-3: new full-speed USB device number 4 using xhci_hcd
[ 1389.744196] input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:1C11:B04D.0009/input/input27
[ 1389.801589] hid-generic 0003:1C11:B04D.0009: input,hidraw0: USB HID v1.11 Keyboard [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input0
[ 1389.803162] input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:1C11:B04D.000A/input/input28
[ 1389.861643] hid-generic 0003:1C11:B04D.000A: input,hidraw1: USB HID v1.11 Keyboard [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input1
[ 1389.863585] input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.2/0003:1C11:B04D.000B/input/input29
[ 1389.921542] hid-generic 0003:1C11:B04D.000B: input,hidraw2: USB HID v1.11 Device [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input2
[ 1389.921928] cdc_acm 1-3:1.3: ttyACM0: USB ACM device
[ 1389.924433] input: Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.6/0003:1C11:B04D.000C/input/input30
[ 1389.924572] hid-generic 0003:1C11:B04D.000C: input,hidraw3: USB HID v1.11 Mouse [Kiibohd Keyboard - WhiteFox PartialMap pjrcUSB full] on usb-0000:00:14.0-3/input6

usb-devices

T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1c11 ProdID=b04d Rev=01.00
S:  Manufacturer=Kiibohd
S:  Product=Keyboard - WhiteFox PartialMap pjrcUSB full
S:  SerialNumber=Clean master - 2016-05-31 00:40:10 -0700
C:  #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid
I:  If#= 1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=01 Driver=usbhid
I:  If#= 2 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=00 Driver=usbhid
I:  If#= 3 Alt= 0 #EPs= 1 Cls=02(commc) Sub=02 Prot=01 Driver=cdc_acm
I:  If#= 4 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
I:  If#= 6 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=02 Driver=usbhid

And this is telling too from the xev utility

Here's a test from the a, h, j and tab keys:

Laptop keyboard:

KeyPress event, serial 36, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 1999615, (-401,-141), root:(1061,281),
    state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 bytes: (61) "a"
    XmbLookupString gives 1 bytes: (61) "a"
    XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 1999704, (-401,-141), root:(1061,281),
    state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 bytes: (61) "a"
    XFilterEvent returns: False

KeyPress event, serial 36, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2006159, (-401,-141), root:(1061,281),
    state 0x0, keycode 43 (keysym 0x68, h), same_screen YES,
    XLookupString gives 1 bytes: (68) "h"
    XmbLookupString gives 1 bytes: (68) "h"
    XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2006242, (-401,-141), root:(1061,281),
    state 0x0, keycode 43 (keysym 0x68, h), same_screen YES,
    XLookupString gives 1 bytes: (68) "h"
    XFilterEvent returns: False

KeyPress event, serial 36, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2006838, (-401,-141), root:(1061,281),
    state 0x0, keycode 44 (keysym 0x6a, j), same_screen YES,
    XLookupString gives 1 bytes: (6a) "j"
    XmbLookupString gives 1 bytes: (6a) "j"
    XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2006922, (-401,-141), root:(1061,281),
    state 0x0, keycode 44 (keysym 0x6a, j), same_screen YES,
    XLookupString gives 1 bytes: (6a) "j"
    XFilterEvent returns: False

KeyPress event, serial 36, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2008408, (-401,-141), root:(1061,281),
    state 0x0, keycode 23 (keysym 0xff09, Tab), same_screen YES,
    XLookupString gives 1 bytes: (09) "	"
    XmbLookupString gives 1 bytes: (09) "	"
    XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2008509, (-401,-141), root:(1061,281),
    state 0x0, keycode 23 (keysym 0xff09, Tab), same_screen YES,
    XLookupString gives 1 bytes: (09) "	"
    XFilterEvent returns: False

problem keyboard:

KeyPress event, serial 36, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2061148, (-370,-227), root:(1092,195),
    state 0x4, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 bytes: (01) ""
    XmbLookupString gives 1 bytes: (01) ""
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2061334, (-370,-227), root:(1092,195),
    state 0x4, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 bytes: (01) ""
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2062325, (-370,-227), root:(1092,195),
    state 0x4, keycode 43 (keysym 0x68, h), same_screen YES,
    XLookupString gives 1 bytes: (08) "
    XmbLookupString gives 1 bytes: (08) "
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2062426, (-370,-227), root:(1092,195),
    state 0x4, keycode 43 (keysym 0x68, h), same_screen YES,
    XLookupString gives 1 bytes: (08) "
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2064956, (-370,-227), root:(1092,195),
    state 0x4, keycode 44 (keysym 0x6a, j), same_screen YES,
    XLookupString gives 1 bytes: (0a) "
"
    XmbLookupString gives 1 bytes: (0a) "
"
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2065064, (-370,-227), root:(1092,195),
    state 0x4, keycode 44 (keysym 0x6a, j), same_screen YES,
    XLookupString gives 1 bytes: (0a) "
"
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2065728, (-370,-227), root:(1092,195),
    state 0x4, keycode 23 (keysym 0xff09, Tab), same_screen YES,
    XLookupString gives 1 bytes: (09) "	"
    XmbLookupString gives 1 bytes: (09) "	"
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x1600001,
    root 0xd8, subw 0x0, time 2065828, (-370,-227), root:(1092,195),
    state 0x4, keycode 23 (keysym 0xff09, Tab), same_screen YES,
    XLookupString gives 1 bytes: (09) "	"
    XFilterEvent returns: False

I'm really at a loss of where to continue, I'm open to any suggestions.

Thanks for looking.

Offline

#2 2016-07-16 07:59:25

Awebb
Member
Registered: 2010-05-06
Posts: 6,282

Re: USB Keyboard Issue

Since you have determined, that it runs in Ubuntu, grep their patch sets for the kernel, udev and probably evdev for the USBID of your keyboard and see what they do differently.

Offline

#3 2016-07-16 10:58:42

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: USB Keyboard Issue

The obvious difference is "state 0x4" vs "state 0x0", which means that CTRL is stuck or at least X thinks so. Don't ask me how and why.

What if you play with CTRL keys a bit?

Offline

#4 2016-07-16 16:20:27

raistlin
Member
Registered: 2016-03-03
Posts: 8

Re: USB Keyboard Issue

Yeah it definitely thinks the CTRL key is active..

Today I desoldered both CTRL keys and it still thinks the its pressed somehow.

Awebb, I'll look through you're idea today hopefully. Do you have a good place to start for the patch sets?

Offline

#5 2016-07-16 18:14:46

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: USB Keyboard Issue

Yes, it's pretty clear that switches are OK if it works on other machines/OSs. BTW, did you test with other distributions on the same machine or on a different one?

Anyway, start with checking if the same happens outside of X, on TTYs. This will narrow it down to either X or the kernel.

Offline

#6 2016-07-16 18:32:59

raistlin
Member
Registered: 2016-03-03
Posts: 8

Re: USB Keyboard Issue

It definitely happens outside of X, when I drop down to a TTY or boot into single user mode I get characters like "^T" or "^E".

And I tested it out on different machines for the different Linux distros, my first thought was a bad port actually and I've tried all of them with the same result.

Last edited by raistlin (2016-07-16 18:39:19)

Offline

#7 2016-07-16 19:55:52

Awebb
Member
Registered: 2010-05-06
Posts: 6,282

Re: USB Keyboard Issue

You can download the source packages here: http://packages.ubuntu.com/search?keywords=linux-source. Use the search on top of the site to find other packages.

Offline

#8 2016-07-16 21:46:35

raistlin
Member
Registered: 2016-03-03
Posts: 8

Re: USB Keyboard Issue

Thanks Awebb, I was unable to find anything specific for USB ID 1c11:b04d in the following source http://packages.ubuntu.com/wily/all/lin … 0/download.

Offline

#9 2016-07-16 22:28:22

raistlin
Member
Registered: 2016-03-03
Posts: 8

Re: USB Keyboard Issue

So oddly enough if press the Backspace key immediately upon plugging it in it the CTRL key doesn't behave like its pressed. The keyboard functions like normal.. I can't think of anything that would cause this.

Offline

#10 2016-07-17 09:38:42

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: USB Keyboard Issue

Probably a bug in the kernel or keyboard firmware (somehow triggered by the kernel, BIOS, USB controller or anything).

One more thing you can check is run wireshark, select usbmon1 (if the keyboard is still on bus 1, check lsusb) and click start. Hit some keys and you should see "interrupt IN" URBs coming. Select one whose destination is "host" and in the middle horizontal panel, "leftover capture data" will show the received HID packet. The first two digits will be 10 or 01 if the keyboard wants to say that one CTRL is pressed, 11 if both and 00 if none. So you can see if it's the keyboard lying or the kernel.

Another thing - if you have this Debian/Ubuntu installer/livecd try it on the Arch machine, just for peace of mind wink Also, see what kernel version these distributions run and try to downgrade to similar version from /var/cache/pacman/pkg.

Offline

#11 2016-07-20 22:01:43

raistlin
Member
Registered: 2016-03-03
Posts: 8

Re: USB Keyboard Issue

Hey mich41, sorry for the late delay, I just found some time to debug this.

The leftover capture data always starts with 01, so I'm assuming that's the keyboard reporting this and not the kernel?

Offline

#12 2016-07-21 05:33:40

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: USB Keyboard Issue

So it seems. Are other modifiers reported correctly? CTRL is 1, SHIFT is 2, ALT is 4. Multiple keys are summed together, so 5 is CTRL+ALT and so on. Left digit is right side, right digit is left side - simple wink BTW, the next field should always be 00 and the remaining six fields are just the list of currently pressed non-modifier keys - maybe hit few random keys and see if it behaves as expected because it would be silly if it turned out that the keyboard uses some different protocol altogether and we are barking up the wrong tree.

I have no idea why it happens only on this system. Can you try wireshark on this Debian box to be sure it's really this?

Offline

#13 2016-07-21 12:40:00

raistlin
Member
Registered: 2016-03-03
Posts: 8

Re: USB Keyboard Issue

So I found that I didn't push the switches all the way down to the PCB, as a result my USB port is off center and causing a few other issues cosmetically. I've decided to bite the bullet though and get a decent solder station (Hakko FX888D) in order to desolder and resolder everything back. I was previously using an old Weller that had a horrible tip.. so I'm not ruling out the possibility that I butchered something.

I'll have it in tomorrow and will probably have everything soldered back up in a few days. I'll report back once I get it done if it solves the issue.

Thanks for your assistance, you've been extremely helpful!

Offline

#14 2016-07-21 13:47:45

Awebb
Member
Registered: 2010-05-06
Posts: 6,282

Re: USB Keyboard Issue

Interesting. It's still strange, that it would work on one OS but not on another.

Offline

#15 2016-07-21 13:57:33

raistlin
Member
Registered: 2016-03-03
Posts: 8

Re: USB Keyboard Issue

I definitely agree with that,  I'm actually pretty sure that even with resoldering all these switches with a good iron the problem will still exist. I think we can all agree that it is either an issue with the firmware on the keyboard itself or something with my kernel.

Thinking about it more it actually seems like something on the keyboard firmware itself that other kernels filter out or something... though I've reflashed it multiple times successfully.

Offline

Board footer

Powered by FluxBB