The officially official Devuan Forum!

You are not logged in.

#1 2022-02-04 18:12:38

jpark
Member
Registered: 2021-03-18
Posts: 32  

[SOLVED] USB Device (keyboard) problem

I keep getting this message repeating again and again.. in dmesg -wH

Should I use a different keyboard?

[Feb 4 09:55] usb 5-1-port2: disabled by hub (EMI?), re-enabling...
[  +0.000007] usb 5-1.2: USB disconnect, device number 11
[  +0.911151] usb 5-1.2: new full-speed USB device number 12 using xhci_hcd
[  +0.224837] usb 5-1.2: New USB device found, idVendor=258a, idProduct=1006, bcdDevice=20.03
[  +0.000002] usb 5-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000001] usb 5-1.2: Product: Gaming KB 
[  +0.000001] usb 5-1.2: Manufacturer: Gaming KB 
[  +0.085267] input: Gaming KB  Gaming KB  as /devices/pci0000:00/0000:00:08.1/0000:0f:00.3/usb5/5-1/5-1.2/5-1.2:1.0/0003:258A:1006.0010/input/input42
[  +0.057789] hid-generic 0003:258A:1006.0010: input,hidraw4: USB HID v1.11 Keyboard [Gaming KB  Gaming KB ] on usb-0000:0f:00.3-1.2/input0
[  +0.004252] input: Gaming KB  Gaming KB  System Control as /devices/pci0000:00/0000:00:08.1/0000:0f:00.3/usb5/5-1/5-1.2/5-1.2:1.1/0003:258A:1006.0011/input/input43
[  +0.063731] input: Gaming KB  Gaming KB  Consumer Control as /devices/pci0000:00/0000:00:08.1/0000:0f:00.3/usb5/5-1/5-1.2/5-1.2:1.1/0003:258A:1006.0011/input/input44
[  +0.000053] input: Gaming KB  Gaming KB  Keyboard as /devices/pci0000:00/0000:00:08.1/0000:0f:00.3/usb5/5-1/5-1.2/5-1.2:1.1/0003:258A:1006.0011/input/input45
[  +0.000075] hid-generic 0003:258A:1006.0011: input,hiddev2,hidraw5: USB HID v1.11 Keyboard [Gaming KB  Gaming KB ] on usb-0000:0f:00.3-1.2/input1

Offline

#2 2022-02-04 18:15:23

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] USB Device (keyboard) problem

Do you actually have any problems with the keyboard apart from the dmesg spam?

Could be a dodgy cable and/or connector.


Brianna Ghey — Rest In Power

Offline

#3 2022-02-04 18:18:47

jpark
Member
Registered: 2021-03-18
Posts: 32  

Re: [SOLVED] USB Device (keyboard) problem

Head_on_a_Stick wrote:

Do you actually have any problems with the keyboard apart from the dmesg spam?

Seems to work ok,  I guess its just spam then?
Tried wiggling the cable, disconnect and reconnect.. I'll see if that helps anything.

Last edited by jpark (2022-02-04 18:19:00)

Offline

#4 2022-02-08 19:31:28

jpark
Member
Registered: 2021-03-18
Posts: 32  

Re: [SOLVED] USB Device (keyboard) problem

I've found another issue that might be related..  once in awhile the keyboard goes dead.
So I tried switching usb ports , doesn't help.

I found this script which seems to reset the usb , and it does end up working again.. :

#!/bin/bash

if [[ $EUID != 0 ]] ; then
  echo This must be run as root!
  exit 1
fi

for xhci in /sys/bus/pci/drivers/?hci_hcd ; do

  if ! cd $xhci ; then
    echo Weird error. Failed to change directory to $xhci
    exit 1
  fi

  echo Resetting devices from $xhci...

  for i in ????:??:??.? ; do
    echo -n "$i" > unbind
    echo -n "$i" > bind
  done
done

Last edited by jpark (2022-02-08 19:35:45)

Offline

Board footer