Unsolved

This post is more than 5 years old

10 Posts

614732

October 19th, 2006 14:00

Linux USB Problems on Dimension E521 AMD 64 X2

Hi,

Anyone else try running Linux (in my case Ubuntu 6.06) on the E521 with the AMD 64 X2 processor? I am having a problem when using xorg where my USB devices, more often my mouse, but my keyboard has had the problem as well stops working. It is almost like the interrupts start getting masked, but it isn't that. Because when the mouse stops working I am usually able to still use the keyboard.

It happens after a while, and usually in times of heavy use. I guess really instead of heavy I would say normal. But it has never happened that it will be working and then I let it lay idle for a while and then reach for it again and it be frozen.

This started happening under the amd64 version of Ubuntu but I have tried several different versions by now and the problem continues to happen.

As far as troubleshooting it has been a real pain. There is never a message in the kernel log or shown by running dmesg. Actually once or twice I have seen the irq status -71 received, but I am pretty sure that is not the cause, becuase it has only happened about twice out of maybe 40 occurances. And there is no message in the Xorg log either.

I have tried the default amd64-generic kernel the latest amd64-generic, the latest amd64-k8 kernel (I think 2.6.15-27.48) I have tried running the i386 uniprocessor kernel and the latest k7-smp kernel. All of them have the same problem.

In an effort to get to the bottom of it I have re-compiled the kernel according to the directions here: http://doc.gwos.org/index.php/Kernel_Compilation_Dapper and turned on debugfs and collected data, but there doesn't seem to be anything of interest. It seems I get hundreds of thousands of lines of -115 status (Which I believe is the controller just telling the device that yeah, I hear ya and I am going to do something EINPROGRESS) and then nothing. The mouse appears to continue to function at least the circuit which senses movement and turns the LED into bright mode. And under Windows I have had no problems at all.

The only solution that always works is to disconnect the USB cable and then reconnect it, which grabs a new device file /dev/input/event7 and probably does some other magic registers with the USB controller, and a bunch of other stuff and then the mouse starts working again.

The only other consistent problem I have noted is the IOAPIC stuff complains about a bug, and sometimes it won't boot and panics, other times it figures out a way to get by and does so. Because of this I have tried booting with noapic and other than changing the way /proc/interrupts looks there seems to be no change in the problem. Eventually under usage the mouse stops responding entirely. Even looking at cat /dev/input/mice there is nothing getting there.

I have upgraded the BIOS to 1.0.3 that had no effect. And also turned off the Cool and Quiet support in the bios.

Any thoughts, recommendations of how to proceed, or any other suggestions are appreciated.

Thank you,
Kevin

14 Posts

November 17th, 2006 16:00

It may be straying a bit off the mouse topic, but I have sound working fine on gnome, but locked to a single process on KDE :(

16 Posts

November 17th, 2006 16:00

This mouse is still freezing with the 2.6.18.2 kernel. If you boot it with no kernel parameters it freezes after "Registering CFQ IO Scheduler". It does not freeze at that spot if you boot with acpi=off, however the mouse still freezes!!! 2.6.18.2 does not work! Here's my config:

http://t35t0r.googlepages.com/home

1 Rookie

 • 

20 Posts

November 17th, 2006 16:00

There must be something with your config file; please try the following:

Download the 2.6.18 clean source from kernel.org
Apply the 2.6.18.2 patch
Use the Ubuntu Dapper .config file (/boot/config-2.6.17-10-generic)
Choose optimisation for AMD64 and leave the other options as they are
Build the kernel

Through this procedure I've obtained a kernel that does not have the locking mouse problem. It still needs some work, because I have not got neither ALSA nor ESD so the sound is output directly through OSS emulation, and only one process can get to the audio at any one time. I have not yet compiled nVidia drivers, and the open source module does not go above 1024x768, for some reason. My Ralink card has no driver, so I'll also have to build it myself (the source is available from Ralink, thank them!). But it boots, it works, it connects to the internet using the built-in LAN connection, etcetera.

I'd be pleased to send you the .deb file if you want to try them; just let me know how.

16 Posts

November 17th, 2006 17:00

I highly doubt there is anything wrong with the config file. It loads the mouse and keyboard perfectly it's just that it freezes the mouse after a while as usual. I used the linux-2.6.18.2 full sources and where are users supposed to get the ubuntu config file? I even went into #ubuntu/irc.freenode.net and not a single person would give me their config file. So you see not everyone uses ubuntu. I posted a generic config at the google but it was taken down, probably, because too many people hit the site, or their servers out, so here's the thing at a nopaste site:

http://rafb.net/paste/results/GMc4cR54.html

If you let me see what you have I can diff.

Basically I gave up and went to compusa and purchased an overpriced USB card with a NEC chipset. If you plugin the keyboard to this card it won't come up until after the kernel boots ..a minor pain if you want to get into the bios or modify your grub/lilo. So I'm back to 2.6.14.7 because RHEL4's HALD is broken with anything higher.

4 Posts

November 17th, 2006 17:00

I bought a cheap 9 € USB PCI card (Made in China), and it works well, no more freezes, although I don't have keyboard until the system boots like you mention. The idea to add a PCI network card is great if it also fixes the problem.

However I'm worried that the SATA CD-Rom driver is not recognized, nor the sound card.

November 17th, 2006 19:00


@jbquenot wrote:
I bought a cheap 9 € USB PCI card (Made in China), and it works well, no more freezes, although I don't have keyboard until the system boots like you mention.


Therefore it might be better to use an external powered USB hub. A few are reported not to work, but many others do (personally I can confirm that the Trust HU-5540 works). It is still possible to get into the BIOS or to make changes in GRUB, while I haven't experienced any problems with USB devices for nearly a week now.

5 Posts

November 18th, 2006 03:00

I have a Dell C521, AMD 64 3200+ (single processor) and have installed SUSE linux 10.1, X86_64, Kernel 2.6.16.21-0.25.
The mouse froze constantly in this distribution as well as Ubuntu and Fedora 6.0. I was going to try a PCI Serial/PS2 card, but have not been able to find one. As an alternative, I connected a Belkin USB hub (powered) between the keyboard/mouse and the usb port on the back of the computer. That appears to have solved the problem for me. I installed the Gnome desktop in Suse 10.1 and have played lots of games including breakout which is very mouse intensive. There is no evidence of any mouse problem or keyboard problem with the USB hub between my mouse and keyboard, and the C521.
The actual hub installed is a Belkin powered hub made for the Mac Mini (Apple) but I'm sure its electronically the same as any of their current hubs.
This will have to be the bandaid I use until the original problem with the Dell hardware is solved. (Either through a Bios update, or a Linux kernel fix.
Good luck!
Don

1 Rookie

 • 

20 Posts

November 18th, 2006 13:00

> and where are users supposed to get the ubuntu config file?
> I even went into #ubuntu/irc.freenode.net and not a single person
> would give me their config file.

They *wouldn't* give you ther config file? People are getting more paranoid by the day. Maybe they're right, though...

As for where to get the Ubuntu config file, please, read my previous post again.

.Nacho.

38 Posts

November 19th, 2006 05:00

Some posssibly interesting information ...

OK. I did some digging. I have Dell C521 and I'm running FC6 i686
(not x86_64). The original kernel with FC6 was named "1.2798". If
I booted this kernel with "acpi=off", then I would get both cores
and the problem with the mouse hanging. If I booted this kernel w/o
args I would get one core and no mouse hangups. When I upgraded to
1.2849 booting with "acpi=off" would hang. Without arguments this
kernel would boot one core - no mouse hangups. I wanted to dig into
why the new kernel would not boot with "acpi=off", so I downloaded
the source and diffed the config files. I deleted the option
"CONFIG_X86_APIC_AUTO=y" that had been added to 1.2849 and now I
can boot with "acpi=off" and get both cores. The mouse still hangs
however. This kernel (1.2849) is based on 2.6.18.2, I believe.
The older kernel (1.2749) is based on 2.6.18.1, I believe.

Looking through the patch file for 2.6.18.2, there are changes for
usb devices. I see lots of mutex lock/unlock pairs added.

31 Posts

November 19th, 2006 23:00

Hello, I've recently bought a C521 (AMD 64 with nforce 430 chipset) and the same mouse problem happens here. I've tried FC6 (i386). Also, my sound card was recognized, but doesn't play any sound.

Any news about this problem?!

It's just impossible to work with linux on this machine!!! :-(

I see that the bug reported at kernel bugzilla tracker stills with no solution...

Cheers,
Duli

38 Posts

November 19th, 2006 23:00

Please post what OS, kernel version and boot options you are working with.
I am getting different behavior than others. If I can help, I will try.

I have C521 with Athlon X2 3800+ and ATI X1300 graphics.
I'm using FC6 with the 2.6.18-1.2849 i686 kernel. Boot
options (cat /proc/cmdline) ro root=LABEL=/ rhgb apic=debug.

I am getting one core running. I do get sound but the "alsactl store"
command does not work. I am not getting the mouse freezing issue
unless I recompile the kernel to remove CONFIG_X86_ACPI_AUTO and
boot with "acpi=off" (while I do get two cores running).

31 Posts

November 20th, 2006 15:00

Hello, I´m running FC6 and the same kernel as you are. As for the kernel options, I have "rhgb quiet noapic".

Without the noapic option I get a "kernel panic" and no boot at all.

Anyway, I think it was you who was very kind and helped me in fedoraforum.org (http://www.fedoraforum.org/forum/showthread.php?t=136879).

I did not try to recompile the kernel yet. I´ll try that.

I think you have commented your progress in kernel bug tracker, right? Did you mention there the test with the kernel compilation? Might be useful.

Thanks for all the help... We have to call attention (dell´s and kernel developers') for this issue, because I think it´s really important.

If I got any success I´ll let you know!

Cheers!
Duli

38 Posts

November 21st, 2006 00:00

It is interesting that you are using "noapic". Can you list the
output of "cat /proc/interrupts" ? I'm interested to see how INT0
is mapped.

10 Posts

November 22nd, 2006 15:00

I am running Mandriva Powerpack 2007 (x86-64) on a Dell Dimension C521. "Out of the box" I had been experiencing mouse freeezes. I had tried an old Belkin 4 port USB hub that took power from the bus. That did not stop the freezes. I ordered a D-link DUB-4 4-port USB hub that is self-powered and connected the mouse and keybosrd through the hub. I have used it all day without a mouse or keyboard freeze.

Message Edited by jrminter on 11-22-200611:22 AM

31 Posts

November 22nd, 2006 16:00



mwette wrote:
It is interesting that you are using "noapic". Can you list the
output of "cat /proc/interrupts" ? I'm interested to see how INT0
is mapped.

Unfortunately, my FC6 no longer boots... It just gest stuck right after the "booting the kernel" message... I guess I won´t be able to show you that output. I´ll perform another fresh install and then I´ll do that and post here... Well, it seems the kernel is really unstable... :-(
No Events found!

Top