Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB Mouse and Keyboard Freeze with rt-sources
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
linuxpyro
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 255

PostPosted: Fri Jul 23, 2010 4:21 am    Post subject: USB Mouse and Keyboard Freeze with rt-sources Reply with quote

I'm setting up my machine for audio work, and am using the rt-sources from the pro-audio overlay. Everything's fine under the normal gentoo-sources kernel, but when I switch to the rt-sources one my keyboard and mouse freeze after logging in to Gnome. So far this basically happens just after logging in whether I do something heavy like start an emerge or just open a Web browser. The entire system doesn't usually freeze; I can still SSH in.

I tried doing tail -f /var/log/messages just before it would normally freeze, but found no incriminating errors. I tried cat /dev/input/mice in another SSH session at the same time and saw the stream of data from the mouse stop just as the system froze, which leads me to believe this is a kernel thing. I'm running 2.6.31.12-rt21, with the nvidia driver. (I tried the later version, 2.6.33.6-rt26, but I couldn't get the nvidia drivers to compile with it.) I tried it without the nvidia driver loaded just to see, but this didn't change anything.

Finally, I tried plugging a PS/2 keyboard in, which works after the freeze, leading me to believe this is a USB issue (the system stays frozen even at the console with X killed, so I'm thinking that it must be in the kernel). Anyone see anything similar with the realtime kernel?
Back to top
View user's profile Send private message
CrankyPenguin
Apprentice
Apprentice


Joined: 19 Jun 2003
Posts: 274

PostPosted: Fri Jul 23, 2010 5:26 pm    Post subject: What usb devices/deivers do you have? Reply with quote

What specific USB devices and drivers do you have. Some usb hardware, notably the nvidia CK8S usb hardware does not always play nicely with the EHCI drivers sometimes leading to all USB 1 devices behaving as you have observed. It could also be the case that you have hardware that is incompatable with the rt-sources' favored drivers. To check this run lspci -v and see what drivers are running for the specified hardware.
_________________
Linux, the OS for the obsessive-compulsive speed freak in all of us.
Back to top
View user's profile Send private message
linuxpyro
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 255

PostPosted: Fri Jul 23, 2010 11:20 pm    Post subject: Reply with quote

All I'm using is a wireless USB mouse/keyboard. It is indeed using the EHCI drivers:

Code:

00:0b.1 USB Controller: nVidia Corporation MCP51 USB Controller (rev a3) (prog-i
f 20 [EHCI])
        Subsystem: ASUSTeK Computer Inc. A8N-VM CSM Mainboard
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 11
        Memory at fe02e000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [44] Debug port: BAR=1 offset=0098
        Capabilities: [80] Power Management version 2
        Kernel driver in use: ehci_hcd


I disabled the EHCI driver, and it actually seems to be working, in that the keyboard and mouse haven't frozen yet. However, my network card (also nVidia, MCP51) seems to be stalling (ie, speed drops until finally nothing goes through it). Not sure if that's relevant here...

I also tried disabling acpi at the grub command line, which also worked, but only one core of my processor was detected.
Back to top
View user's profile Send private message
linuxpyro
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 255

PostPosted: Mon Jul 26, 2010 2:44 am    Post subject: Reply with quote

Alright, never mind, it did freeze eventually with EHCI disabled.
EDIT: Should add that I just had it freeze with ACPI disabled in grub, that must not be it.
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Mon Jul 26, 2010 8:33 am    Post subject: Reply with quote

I don't see ant references to dmesg in your posts , yet

You say

Quote:

Everything's fine under the normal gentoo-sources kernel


If that's the case I'd be thinking of doing a #diff of the two kernels, and observe their differences re the suspected usb settings, then any others. After all, you say the regular works fine.
_________________
idella4@aus
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Mon Jul 26, 2010 12:17 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Unsupported Software, support questions for overlay packages belong in US.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
CrankyPenguin
Apprentice
Apprentice


Joined: 19 Jun 2003
Posts: 274

PostPosted: Mon Jul 26, 2010 7:50 pm    Post subject: Yes diff. Reply with quote

So I would follow idella4's advice and diff the .config files for the kernels to determine if there is any relevant variations there. If not then I suspect some patch made in the rt-sources to the usb drivers is to blame. Either the gentoo sources have better support or the rt-sources have less stable or both.

As a side point, I myself have had issues with the nvidia usb systems and found that freezing will occur if the EHCI drivers are loaded even if they are loaded later for a different device. While this is a different chipset than yours you might check. If the EHCI drivers are not loaded by you are they getting autoloaded by something else? Or, put another way, are you simply removing the driver or building without it?

I suspect really that this is a kernel difference but it is worth chasing that down in any case.
_________________
Linux, the OS for the obsessive-compulsive speed freak in all of us.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum