maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   1 in 3 USB Keyboards Work (https://talk.maemo.org/showthread.php?t=32317)

derekp 2009-10-04 19:06

Re: 1 in 3 USB Keyboards Work
 
Here's a couple of dmesg outputs from mine (the first is after plugging in the Happy Hackin Keyboard (HHKB), (after hitting the "Host" button in the usbcontrol app), the second is after hitting the Host button a second time with the keyboard plugged in.
Code:

[430760.015625] usb usb1: usb auto-resume
[430760.015625] usb usb1: finish resume
[430760.015625] hub 1-0:1.0: hub_resume
[430760.039062] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
[430762.039062] hub 1-0:1.0: hub_suspend
[430762.039062] usb usb1: usb auto-suspend
[430765.843750] musb_stage0_irq 569: VBUS_ERROR in a_wait_bcon (90, <VBusValid), retry #3, port1 00080108
[430765.843750] tusb_source_power 633: VBUS a_wait_vfall, devctl 90 otg 154 conf c0000001 prcm 00a80500
[430768.656250] tusb_source_power 633: VBUS a_idle, devctl 80 otg 184 conf c0000001 prcm 00a80500
[430768.664062] tusb_source_power 633: VBUS a_idle, devctl 80 otg 184 conf c0000001 prcm 00a80500

Code:

[430888.304687] usb usb1: usb auto-resume
[430888.304687] usb usb1: finish resume
[430888.304687] hub 1-0:1.0: hub_resume
[430888.328125] hub 1-0:1.0: over-current change on port 1
[430888.328125] hub 1-0:1.0: enabling power on all ports
[430888.328125] /home/bifh4/diablo-uarm-prereleased.gcc34qemu/work/kernel-diablo-2.6.21/kernel-source-diablo/drivers/usb/musb/tusb6010.c musb_platform_enable: dma not reactivated
[430888.328125] tusb_source_power 633: VBUS a_wait_vrise, devctl 81 otg 184 conf c0010001 prcm 00a80500
[430888.375000] musb_stage0_irq 569: VBUS_ERROR in a_wait_vrise (90, <VBusValid), retry #3, port1 00080108
[430888.375000] tusb_source_power 633: VBUS a_wait_vfall, devctl 90 otg 151 conf c0000001 prcm 00a80500
[430888.726562] tusb_source_power 633: VBUS a_idle, devctl 80 otg 184 conf c0000001 prcm 00a80500

Compare this to the dmesg output from my Fedora 10 box with the same keyboard:
Code:

usb 2-1: new full speed USB device using ohci_hcd and address 5
usb 2-1: configuration #1 chosen from 1 choice
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 3 ports detected
usb 2-1: New USB device found, idVendor=04fe, idProduct=0008
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: Generic USB Hub
usb 2-1: Manufacturer: Chicony
usb 2-1.1: new full speed USB device using ohci_hcd and address 6
usb 2-1.1: configuration #1 chosen from 1 choice
input: Chicony PFU-65 USB Keyboard as /devices/pci0000:00/0000:00:02.0/usb2/2-1/2-1.1/2-1.1:1.0/input/input7
input,hidraw1: USB HID v1.00 Keyboard [Chicony PFU-65 USB Keyboard] on usb-0000:00:02.0-1.1
usb 2-1.1: New USB device found, idVendor=04fe, idProduct=0006
usb 2-1.1: New USB device strings: Mfr=3, Product=4, SerialNumber=0
usb 2-1.1: Product: PFU-65 USB Keyboard
usb 2-1.1: Manufacturer: Chicony

So to me this looks like a power issue from what I can tell (either that the keyboard's built in hub draws too much power, or the kernel doesn't recognize it as a device that needs 100mw power).

shadowjk 2009-10-04 22:08

Re: 1 in 3 USB Keyboards Work
 
whether kernel 'recognizes' it as a device that needs 100mA or not is of little significance. What matters is not what the device claims to use, what, matters is what the device actually uses.

lsusb -v should contain what the device claims to use. Presumably the hub will claim to use 100mA for itself and 100mA for every port it has, unless it's powered by an external power source.


All times are GMT. The time now is 08:54.

vBulletin® Version 3.8.8