Page 1 of 1

Mouse and keyboard: strange behaviour

Posted: Thu Jul 19, 2012 8:03 am
by tassadar
Hello,


i've a strange behaviour with keyboard and mouse.

Raspbian: keyboard and mouse are recognized by kernel but mouse doesn't work under X - lxde
Openelec: keyboard and mouse works but not together, if i plug both only keyboard works but if i unplug the keyboard the mouse works!

Re: Mouse and keyboard: strange behaviour

Posted: Thu Jul 19, 2012 9:14 am
by El_Presidente
I'm guessing you are using an additional USB hub with your Pi.

You will likely get two forms of reply to your issue:

1) You have a power supply or hub quality issue. Most people are recommending power supplies for a powered hub need to be at least 1.5A, better at 2A+. Power needs to be stable in range 4.75v-5.25v across the TP1/TP2 power test points on the Pi board. The hub needs to be compliant with USB standards and many seem to break the rules. Check the Rpi Verified Peripherals list on the Wiki: http://elinux.org/RPi_VerifiedPeripherals

2) You could be seeing USB Kernel/Driver problems that more and more people are suspecting. Particularly if you have tried several hubs, power supplies, keyboards and mice and your voltage ratings appear solid. The Pi doesn't seem to like a mix of low/high power USB devices across it's USB channels and the mouse affecting networking (which appears when you load LXDE or other X) seems the most toxic.

Either one could be your problem, but the fact that different OS builds are showing different manifestations of this problem also hint at a greater underlying problem than bad components - do start by trying troubleshooting on item 1 and swapping out as many components for alternatives as you can. If you still have issues as I and many others do, you may want to add your support for the USB kernel/driver problem by posting back.

Best of luck.

Re: Mouse and keyboard: strange behaviour

Posted: Thu Jul 19, 2012 9:45 am
by tassadar
Thanks Presidente,

you guess right i've a powered hub, so for the first point i can try to plug mouse and keyboard directly to the pi.
I try another powered hub then, and i'll try to get one reported as working.

Thanks again

Re: Mouse and keyboard: strange behaviour

Posted: Thu Jul 19, 2012 4:43 pm
by holmez
I also have a mouse/keyboard problem:
Both the keyboard and the mouse work when plugged directly into the rpi.
An HDD works in my USB hub.
But neither my mouse nor my keyboard work when plugged into the hub, even if I only have hub, mouse and keyboard plugged in.
Everything is powered by a 1A adaptor. The adaptor powers my hub, with the rpi taking its power from a hub port.
I'm getting a good solid 5V across TP1/TP2 in every configuration that I try.
If my mouse is plugged into the hub, it does flash briefly on plugging in the power, and then nothing. Just checked (by unscrewing the cover and checking the incoming usb connections), and the mouse is receiving 5V.

Any thoughts?

Re: Mouse and keyboard: strange behaviour

Posted: Fri Jul 20, 2012 5:16 pm
by El_Presidente
[quote="holmez"Any thoughts?[/quote]

I'm seeing two schools of thought currently on this and similar issues -

1) There appears to be a lot of problems with low quality hub and/or hub power supplies. Some hubs are not fully compliant with USB standards, others are just cheap tat that you can get away with on a PC but the Pi is more sensitive.

2) The fact that there are just so many problems and a number of users have taken the time to try multiple configurations of hub/ps/device, points to a possible lower level issue with kernel or USB drivers at the current early stage in the Pi story.

I'm in camp 2, although I do accept that you have to go through diagnosing step 1 and for some they do actually seem to fix things with a change of kit.

Also I want to add the comment that I have nothing but total respect for all parties involved in the birth and early stage nurturing of this beautiful thing that is the Raspberry Pi. I'm not criticising anyone at all, I'm just looking to help focus development effort where it might be needed.

Re: Mouse and keyboard: strange behaviour

Posted: Fri Jul 20, 2012 8:55 pm
by holmez
El_Presidente wrote:
holmez wrote:Any thoughts?
I'm seeing two schools of thought currently on this and similar issues -

1) There appears to be a lot of problems with low quality hub and/or hub power supplies. Some hubs are not fully compliant with USB standards, others are just cheap tat that you can get away with on a PC but the Pi is more sensitive.

2) The fact that there are just so many problems and a number of users have taken the time to try multiple configurations of hub/ps/device, points to a possible lower level issue with kernel or USB drivers at the current early stage in the Pi story.

I'm in camp 2, although I do accept that you have to go through diagnosing step 1 and for some they do actually seem to fix things with a change of kit.

Also I want to add the comment that I have nothing but total respect for all parties involved in the birth and early stage nurturing of this beautiful thing that is the Raspberry Pi. I'm not criticising anyone at all, I'm just looking to help focus development effort where it might be needed.
Thank you for your response, I think I'm also in camp 2.

Neither mouse nor keyboard show up in lsusb when they're plugged into the hub.
Can't decide whether to get a new hub, or just live with the limitation.
In my case, it'll be using mouse and keyboard to experiment with the GPIO functionality, including using old style lego mindstorm motors which only draw 10mA. OR using hub and HDD with ssh

Re: Mouse and keyboard: strange behaviour

Posted: Sat Jul 21, 2012 9:23 am
by tassadar
Hello, just a little update:

tried with another powered hub and now i can get work both keyboard and mouse but the wifi adapter that was correctly initialized by kernel plugged in the previous hub now fail with a -22 error.

If i can get access to the sd partition in some way i can paste all the dmesg output.

So it seems that i've to buy another hub.... i hope.

Re: Mouse and keyboard: strange behaviour

Posted: Sat Jul 21, 2012 10:27 am
by tassadar
I uploaded the dmesg. Anyway i tried the the last hub in my ubuntu desktop and i get the same error. I hope that my experience could be useful to someone

Re: Mouse and keyboard: strange behaviour

Posted: Sat Jul 21, 2012 10:37 am
by redhawk
"I'm getting a good solid 5V across TP1/TP2 in every configuration that I try." this fact is irrelevant you should be measuring the voltage directly from the USB port.
I had the same problem with my Wifi dongle I had a stable 5.05v at TP1/TP2 however the voltage at the USB port had dropped to 4.7v which is unacceptable for some devices.
The USB hub on the PI is designed to provide a limited current supply if you want to attach something beefy you need a external powered USB hub or provide external power source to your USB device.

Richard S.

Re: Mouse and keyboard: strange behaviour

Posted: Tue Jul 24, 2012 5:54 pm
by tassadar
El_Presidente wrote:I'm guessing you are using an additional USB hub with your Pi.

You will likely get two forms of reply to your issue:

1) You have a power supply or hub quality issue. Most people are recommending power supplies for a powered hub need to be at least 1.5A, better at 2A+. Power needs to be stable in range 4.75v-5.25v across the TP1/TP2 power test points on the Pi board. The hub needs to be compliant with USB standards and many seem to break the rules. Check the Rpi Verified Peripherals list on the Wiki: http://elinux.org/RPi_VerifiedPeripherals

2) You could be seeing USB Kernel/Driver problems that more and more people are suspecting. Particularly if you have tried several hubs, power supplies, keyboards and mice and your voltage ratings appear solid. The Pi doesn't seem to like a mix of low/high power USB devices across it's USB channels and the mouse affecting networking (which appears when you load LXDE or other X) seems the most toxic.

Either one could be your problem, but the fact that different OS builds are showing different manifestations of this problem also hint at a greater underlying problem than bad components - do start by trying troubleshooting on item 1 and swapping out as many components for alternatives as you can. If you still have issues as I and many others do, you may want to add your support for the USB kernel/driver problem by posting back.

Best of luck.
I've an update:

now i tried the pi with a known working powered hub: LogiLink UA0096 but no better luck with raspbian.
Anyway just to test i tried to plug the hub into my ubuntu desktop (12.04) and all work perfectly. I'm start thinking that there's still some bugs :(
Now i try with openelec.

Re: Mouse and keyboard: strange behaviour

Posted: Thu Jul 26, 2012 11:02 pm
by toonhead85
OS: Raspbian "wheezy"
Problem: Keyboard and Mouse not working, when plugged in at the same time (one or the other will work, ie the first one plugged in)

I thought I would add my experience as well. I have had, early on in my set-up, both my keyboard and mouse working... I think. This was before I got a working WiFi Adapter though, so I was only clicking around and playing games.

I recently got a new power supply: 5.3v and 1.2A and was using a Staples powered USB Hub. When that didn't work, I tried my Belkin 7 Port Powered Hub, which also manifested the problem.

I have tried 2 keyboards: An Apple Pro (mechanical) and an Aluminum Apple keyboard (newest medel)
I have tried 2 mice: Razer Orochi and a Logitech Netbook mouse (with Linux support! Said so on the box)

I am now going to try to make a fresh install (no added drivers or anything) and see what I can do.
Results: No Luck

I have tried both USB Hubs, a mixture of configurations with things being in RaspberryPi Only, Hub Only ect.

With the state of things not working, I have to say: This is fustrating :(