Web lists-archives.com

how do i tell usb to leave keyboard alone?




  i have an USB keyboard, which once in a while goes
useless.  it is a fairly new device and should not be
defective, but i'm not sure how to tell if this is a
problem from the device or from the kernel or ?

  i do not have a scanner installed.  no idea why
colord-sane process is there at all.  i would be
happy to get rid of that message somehow as it might
be related.

  i do have cups and USB printer installed but it
has not been a problem at all.

  just for some reason my system is picking on USB
keyboard.

  i've adjusted bios in several ways (using legacy
USB support, turning it off, turning on and of handoff
to high speed, disabling ports i'm not using) recently
i turned on bios to wake up system using keyboard
but none of these things have made a difference (
also including moving the keyboard from USB3 to USB2
ports and back, using USB extention cards or main
board io plugs, etc).

  unplugging keyboard and plugging it back in does
wake it back up.

  i've run the most recent kernels from debian testing 
and experimental.

  my CPU is supposed to be power efficient so perhaps
there is some way that is timing out my keyboard when
there is no activity, but this is not always true as
i've had it stop working when i'm typing...  i've 
checked whatever i can via bios, but not seeing any-
thing that tells me how to limit the system from
turning off keyboard.  bios is updated to most recent
version.

  i can easily tell udev things via device ID and such
so if i can use magic words there that is fine with me...
i just don't know those words yet.  :)

  in looking at the logs i see various messages like:


...
Apr 07 13:10:11 auntie mtp-probe[7237]: bus: 1, device: 28 was not an MTP device
Apr 07 13:10:11 auntie kernel: hid-generic AAAA:BBBB:CCCC.DDDD: input,hidraw1: USB HID v1.11 Keyboard [Keyboard] on usb-0000:00:14.0-6/input0
Apr 07 13:10:11 auntie systemd-logind[715]: Watching system buttons on /dev/input/event18 (Keyboard)
Apr 07 13:10:11 auntie upowerd[1341]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/AAAA:BBBB:CCCC.DDDD
Apr 07 13:10:11 auntie upowerd[1341]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0
Apr 07 13:10:11 auntie upowerd[1341]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6
Apr 07 13:10:11 auntie colord-sane[7226]: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied
Apr 07 13:10:11 auntie colord-sane[7226]: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied
Apr 07 13:10:33 auntie kernel: usb 1-6: USB disconnect, device number 28
Apr 07 13:10:33 auntie upowerd[1341]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb1
/1-6/1-6:1.0/AAAA:BBBB:CCCC.DDDD
Apr 07 13:10:33 auntie upowerd[1341]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb1
/1-6/1-6:1.0
Apr 07 13:10:33 auntie upowerd[1341]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb1
/1-6
Apr 07 13:10:34 auntie kernel: usb 1-6: new full-speed USB device number 29 using xhci_hcd
Apr 07 13:10:34 auntie kernel: usb 1-6: New USB device found, idVendor=BBBB, idProduct=CCCC
Apr 07 13:10:34 auntie kernel: usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr 07 13:10:34 auntie kernel: usb 1-6: Product: Keyboard
Apr 07 13:10:34 auntie kernel: usb 1-6: Manufacturer: Keyboard
Apr 07 13:10:34 auntie kernel: input: Keyboard as /devices/pci0000:00/0000:00:14.0/
usb1/1-6/1-6:1.0/AAAA:BBBB:CCCC.EEEE/input/input36
Apr 07 13:10:34 auntie kernel: hid-generic AAAA:BBBB:CCCC.EEEE: input,hidraw1: USB HID v1.11 Keyboard [Keyboard] on usb-0000:00:14.0-6/input0
Apr 07 13:10:34 auntie mtp-probe[7318]: checking bus 1, device 29: "/sys/devices/pci0000:00/0000:00:14.0/usb
1/1-6"
Apr 07 13:10:34 auntie mtp-probe[7318]: bus: 1, device: 29 was not an MTP device
Apr 07 13:10:34 auntie systemd-logind[715]: Watching system buttons on /dev/input/event18 (Keyboard)
Apr 07 13:10:34 auntie upowerd[1341]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1
-6/1-6:1.0/AAAA:BBBB:CCCC.EEEE
Apr 07 13:10:34 auntie upowerd[1341]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1
-6/1-6:1.0
Apr 07 13:10:34 auntie upowerd[1341]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1
-6
Apr 07 13:10:37 auntie colord-sane[7312]: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied
Apr 07 13:10:37 auntie colord-sane[7312]: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied

  any help in figuring this out is greatly appreciated as it 
is very annoying to be typing along and not notice the keyboard
has stopped working.

  in the meantime i'm trying to find ways to tell the kernel to
give me more debugging information and/or the USB setups and/or
both.


  songbird