Mouse & Keyboard...hair tearing time


15 posts
by W. H. Heydt » Sun Jun 24, 2012 11:19 pm
Using Debian 19-04-2012 (most recent on the Download page).
Keyboard, mouse (trackball) and monitor connected through Trendnet TK-802R KVM switch (self-powered).
Keyboard & mouse using a USB-to-2-PS/2 adaptor.
Monitor using one of the small HDMI-to-VGA adaptors.

System modifications: Static IP, ssh enabled.

Video works fine. Can ssh into RpI just fine.

First time I set things up, everything worked as intended. After some reboots, RPi started not seeing keyboard & mouse. Sometimes yes, sometimes no. Now, it doesn't ever seem to see the keyboard & mouse.

In the boot messages I see a number of lines referring to USB ending with "error -32". Unfortunately, "error -32" for USB devices is....sorely lacking.

I can log in through ssh (that being a primary reason I set it for a static IP address), so there is obviously power and clock to the ethernet port, which implies the same for the USB ports. On reboot, I have to pull the power to get it to come back up, but it does so without problems (or--at least--problems that I can see).

Is there any way to "probe" the USB devices from the system side? To find out if the RPi can even *see* the USB devices?

Any suggestions for how to resolve this?
Posts: 1372
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)
by RaTTuS » Mon Jun 25, 2012 8:14 am
sudo tail -f /var/log/syslog
and plug in your usb stuff
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX - Prosliver FTW
"That's not right, the badgers have moved the goalposts."
User avatar
Posts: 4159
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
by AndrewS » Mon Jun 25, 2012 1:58 pm
Sounds like this might be another inadequate-power-supply problem?
User avatar
Posts: 2193
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by W. H. Heydt » Mon Jun 25, 2012 5:14 pm
AndrewS wrote:Sounds like this might be another inadequate-power-supply problem?


Power supply has 2 USB connectors and the spec is 2A for one connector, or 1A each if both are used. Only one device is connected. Connecting cable is a Belkin USB-to-micro-USB cable (that is, reputable cable manufacturer...though I do recall the issue report with "reputable" HDMI cables during the certification tests...). Still, when I first set it up, and sporadically thereafter, the mouse & keyboard DID work. Plus, with the KVM switch, there shouldn't be any power draw for them, since the switch has it's own power and is what is actually powering keyboard and mouse. (The "mouse" is a Logitec trackball spec'd at 50mA. The keyboard doesn't give a current spec, just that it wants 5v. The keyboard is a UniComp with "buckling spring" tech for the keyswitches...it has really superior typing touch.)

So...I don't think it's a power issue.

Edit to add:

I found this thread:
viewtopic.php?t=5663&p=75680

But since the UniComp keyboard is actually being powered by the KVM switch *and* none of the other machines on the switch have ever had the slightest k/b issues.
Posts: 1372
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)
by W. H. Heydt » Mon Jun 25, 2012 5:36 pm
RaTTuS wrote:sudo tail -f /var/log/syslog
and plug in your usb stuff


pi@raspberrypi:~$ sudo tail -f /var/log/syslog
Jun 25 14:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 25 14:17:01 raspberrypi /USR/SBIN/CRON[1455]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 25 15:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 25 15:17:01 raspberrypi /USR/SBIN/CRON[1461]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 25 16:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 25 16:17:01 raspberrypi /USR/SBIN/CRON[1467]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 25 17:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 25 17:17:01 raspberrypi /USR/SBIN/CRON[1473]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 25 18:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 25 18:17:01 raspberrypi /USR/SBIN/CRON[1501]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)

Want me to do it gain at a reboot?
Posts: 1372
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)
by SirLagz » Tue Jun 26, 2012 7:00 am
While you're running that command, unplug and plug the usb stuff back in and then see if anything new comes up
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by W. H. Heydt » Tue Jun 26, 2012 4:30 pm
SirLagz wrote:While you're running that command, unplug and plug the usb stuff back in and then see if anything new comes up


I did...and nothing new came up. One presumes that the RPi isn't "seeing" the USB devices. Annoying, since it worked originally and leaving it powered down for an extended period to allow for polyfuses to reset don't have any effect, either.
Posts: 1372
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)
by W. H. Heydt » Tue Jun 26, 2012 4:54 pm
SirLagz wrote:While you're running that command, unplug and plug the usb stuff back in and then see if anything new comes up


Okay...I tried it again and got:

login as: pi
pi@192.168.1.121's password:
Linux raspberrypi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jun 25 18:07:03 2012 from 192.168.1.152
pi@raspberrypi:~$ tail -f /var/log/syslog
Jun 26 12:17:01 raspberrypi /USR/SBIN/CRON[1799]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 26 13:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 26 13:17:01 raspberrypi /USR/SBIN/CRON[1805]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 26 14:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 26 14:17:01 raspberrypi /USR/SBIN/CRON[1811]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 26 15:17:01 raspberrypi /USR/SBIN/CRON[1815]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 26 16:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 26 16:17:01 raspberrypi /USR/SBIN/CRON[1822]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 26 17:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 26 17:17:01 raspberrypi /USR/SBIN/CRON[1828]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
^[[A^[[A^C
pi@raspberrypi:~$ sudo tail -f /var/log/syslog
Jun 26 12:17:01 raspberrypi /USR/SBIN/CRON[1799]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 26 13:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 26 13:17:01 raspberrypi /USR/SBIN/CRON[1805]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 26 14:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 26 14:17:01 raspberrypi /USR/SBIN/CRON[1811]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 26 15:17:01 raspberrypi /USR/SBIN/CRON[1815]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 26 16:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 26 16:17:01 raspberrypi /USR/SBIN/CRON[1822]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 26 17:07:23 raspberrypi ntpd[1093]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Jun 26 17:17:01 raspberrypi /USR/SBIN/CRON[1828]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 26 17:51:42 raspberrypi kernel: usb 1-1.3: new low speed USB device number 8 using dwc_otg
Jun 26 17:51:42 raspberrypi kernel: usb 1-1.3: New USB device found, idVendor=13ba, idProduct=0017
Jun 26 17:51:42 raspberrypi kernel: usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Jun 26 17:51:42 raspberrypi kernel: usb 1-1.3: Product: Generic USB K/B
Jun 26 17:51:42 raspberrypi kernel: generic-usb: probe of 0003:13BA:0017.0001 failed with error -32
Jun 26 17:51:42 raspberrypi kernel: generic-usb: probe of 0003:13BA:0017.0002 failed with error -32
Jun 26 17:51:43 raspberrypi kernel: usb 1-1.3: USB disconnect, device number 8

Now to be fair, the KVM switch was set to an XP system where I was running the tail -f through PuTTY, but that really shouldn't affect anything.
Posts: 1372
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)
by W. H. Heydt » Wed Jun 27, 2012 5:21 pm
Just an update about updates...

I've run upgrade, update and rpi-update (for firmware) and everything is current...situation is unchanged.
Posts: 1372
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)
by W. H. Heydt » Fri Jun 29, 2012 12:57 am
I don't know how much help this will be, but I can get this bit of data from the system indicating that it can see the USB-to-2xPS/2 adaptor and recognize it for what it is....


pi@RPi001:~$ lsusb
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 13ba:0017 Unknown PS/2 Keyboard+Mouse Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@RPi001:~$

Any ideas how to get the system actually *use* the keyboard from the console?
Posts: 1372
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)
by W. H. Heydt » Sat Jun 30, 2012 8:12 pm
After as much futzing around, I tried an HP wireless k/b that came with a PC a couple of years ago. *That* one works...so at least I don't have to fear that I've damaged to USB ports. The dongle is rated for 50 ma, the keyboard (battery powered...obviously) pulls 10ma.

Now to locate a USB mouse, which I'm pretty sure I've got some around...
Posts: 1372
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)
by SirLagz » Sun Jul 01, 2012 5:32 pm
W. H. Heydt wrote:
SirLagz wrote:While you're running that command, unplug and plug the usb stuff back in and then see if anything new comes up


<snip>

Jun 26 17:51:42 raspberrypi kernel: usb 1-1.3: new low speed USB device number 8 using dwc_otg
Jun 26 17:51:42 raspberrypi kernel: usb 1-1.3: New USB device found, idVendor=13ba, idProduct=0017
Jun 26 17:51:42 raspberrypi kernel: usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Jun 26 17:51:42 raspberrypi kernel: usb 1-1.3: Product: Generic USB K/B
Jun 26 17:51:42 raspberrypi kernel: generic-usb: probe of 0003:13BA:0017.0001 failed with error -32
Jun 26 17:51:42 raspberrypi kernel: generic-usb: probe of 0003:13BA:0017.0002 failed with error -32
Jun 26 17:51:43 raspberrypi kernel: usb 1-1.3: USB disconnect, device number 8

Now to be fair, the KVM switch was set to an XP system where I was running the tail -f through PuTTY, but that really shouldn't affect anything.


At least that shows that it was getting a response from the Ps2->USB adapter. but it looks like an error is occuring when it tries to probe the device.
Not sure on what error -32 is unfortunately, sorry.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by W. H. Heydt » Mon Jul 02, 2012 12:09 am
Thanks to a poster in another thread...who pointed out that the USB-to-PS/2 adaptor may be pulling more current than the RpI USB port can supply...I tried the only "USB" keyboard in the house: An HP wireless that came with a PC I got about 18 months ago. The dongle is rated for 50mA. That works. It even works if I plug a Logitect MarbleMouse Trackball (50mA) into the other port. Since that all worked I managed to find the wireless mouse (companion to the keyboard) that runs off the same dongle and the RPi is now very happy, with only a 50mA load on the USB ports.

Now all I need to do is get to Fry's and start testing keyboards. (I'll look at the power specs and my wife with test them for "touch"...it being a pity that people have reported trouble with UniComp "buckling spring" keyboards, which we both love for their typing feel.)
Posts: 1372
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)
by SirLagz » Mon Jul 02, 2012 1:09 am
Or get a powered USB hub.
Either way, good luck with it :)
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by geep999 » Mon Jul 02, 2012 11:42 am
FWIW I've successfully used a USB to PS2 cable http://www.ebuyer.com/106560-xenta-usb-to-ps2-cable-a-usb2ps2 to connect to an ancient PS2 keyboard rated @ 5V / 170mA + a Trust Cordless Mouse AMI Mouse 250S. Both work fine on my RPi..

(Both my Microsoft wireless keyboards suffer "sticky" keys with the RPi, yet are perfect on my "real" PC. But the MS wireless mice seem to work perfectly on the RPi through the same dongles.
I bought a powered hub specially for the RPi, but then the wireless keyboards don't work at all.
And on my "real" PC the wireless keyboards only work through the hub whilst booting in grub. Once LInux or Windows are launched the wireless keyboards don't work at all through the powered hub. Weird or what?).

Cheers,
Peter
User avatar
Posts: 28
Joined: Fri May 18, 2012 10:20 pm
Location: East Herts, UK