Unsolved

This post is more than 5 years old

10 Posts

614757

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

16 Posts

December 9th, 2006 12:00

You need to call Dell. Show them this forum and all the other forums online from ubuntu that describe this same problem. Get them to send you a free PCI USB card, if they say they don't support linux on this machine just show them this webpage:

http://www.dell.com/content/topics/segtopic.aspx/e510_nseries?c=us&cs=19&l=en&s=dhs

6 Posts

December 9th, 2006 17:00

I found a solution to this problem. Boot the kernel with the following parameters.

usb-handoff i8042.nomux

Make sure you don't have any acpi or apic options on the line... Cheers!

16 Posts

December 10th, 2006 18:00

Interesting, can anyone else verify that this works? I can't atm, but I found from the kernel docs (/usr/src/linux/Documentation/kernel-parameters.txt):

i8042.nomux [HW] Don't check presence of an active multiplexing controller

from http://www.opensubscriber.com/message/linux-kernel@vger.kernel.org/567230.html:

"usb-handoff is a kernel option that enables a PCI quirk routine that takes the USB controller out of BIOS's hands. Until that is done (the linux USB drivers also do it, only later), the BIOS owns the USB controller and tries to emulate a PS/2 mouse and keyboard for systems which can't handle USB."

Looking in /usr/src/linux/drivers/usb/host/pci-quirks.c there is a comment in the code that says:

"EHCI 0.96 and later may have "extended capabilities" spec section 5.1 explains the bios handoff, e.g. for booting from USB disk or using a usb keyboard"

..well if it works great, if not let the dell bashing resume :) .

7 Posts

December 11th, 2006 06:00

YES! It works like a charm... Very good hint, no further hardware needed. Perfect solution. After one hour without mouse/keyboard hanging and no registered side effects I will take this as permanent solution.

Thanks in advance
Mike

EDIT: Sorry, but after writing this post, Murphi's law occured here. Mouse hangs and keyboard after a while, too.

My Linux distribution is Fedora Core 6, Kernel 2.6.18-1.2849. I also noticed, that keyboard hangs, if there is heavy hdd access like makewhatis.cron-weekly...

Message Edited by noisefan on 12-11-200602:55 AM

December 11th, 2006 08:00

This "usb-handoff i8042.nomux" failed also for me.
But I use now a USB hub, externally powered. And everything works fine : SMP, sound, CD burning. Moreover the mouse and keyboard are recognized at the beginning and I can switch between Linux and XP with no problem.

31 Posts

December 11th, 2006 11:00



Hephaistos2 wrote:
This "usb-handoff i8042.nomux" failed also for me.
But I use now a USB hub, externally powered. And everything works fine : SMP, sound, CD burning. Moreover the mouse and keyboard are recognized at the beginning and I can switch between Linux and XP with no problem.


Hello, Hephaistos2. What is your machine? C521? E521? Thanks a lot!!

December 11th, 2006 14:00



@Duli wrote:


@Hephaistos2 wrote:
This "usb-handoff i8042.nomux" failed also for me.
But I use now a USB hub, externally powered. And everything works fine : SMP, sound, CD burning. Moreover the mouse and keyboard are recognized at the beginning and I can switch between Linux and XP with no problem.


Hello, Hephaistos2. What is your machine? C521? E521? Thanks a lot!!





I have a E521 with Athlon 64 X2 4200. I have added a better graphic card (Leadtek WinFast A7600 GS), and this externally powered USB hub (APM).

I have installed Slackware for AMD64 (slamd64), and kernel 2.6.19. For the installation the DVD-ROM was not found (but the system was booted from it), and I had to copy all the data in the NTFS partition from XP before installing Slackware.
For X11, I use the Nvidia driver 1.0-9631.
I plan to install also Gentoo (on a new hard disk), and verified already that the kernel from the installation CD recognizes the network card. So it should be possible to install Gentoo without having a NTFS partition. For the gentoo kernel to boot I had to choose "gentoo-nofb acpi=noirq".

1 Rookie

 • 

20 Posts

December 12th, 2006 10:00

My experience shows that kernels compiled from clean kernel.org versions 2.6.18.2, 2.6.18.3 and 2.6.18.4 do not show problems with the USB mouse. Still, I have not managed to get the two processors working, and ALSA in Ubuntu Edgy does not work. I have not compiled 2.6.19 either. Has anybody there done so?

The first distro I have tried that works fine out of the box is OpenSuse 10.2 (it has kernel 2.6.18.3, I believe). It is a pity that I totally hated it for these reasons:

* It does not mount NTFS partitions for alleged patent problems.

* It does not show long filenames in FAT32 partitions for alleged patent problems.

* It does not mount my iPod for alleged permission problems.

* Gstreamer has no mp3 codecs for alleged patent problems. Not that it matters, when I've got no music to play with no iPod and no NTFS partitions. There are no codecs for mpeg, mpeg2 or mpeg4, aac or anything of interest either. You've got Theora and ogg, and that's it. Well, and there's Banshee-Helix and a proprietary mp3 decoder. Of course, no DVD reproduction.

If these limitations don't bother you, OpenSuse works OK on the E521. And compiz eye-candy would be just a click away if the built-in nVidia graphics chip were recognized (which it isn't). I might painstakingly work around all those limitations, but I'm feeling too tired.

Message Edited by NRios on 12-12-200606:24 AM

38 Posts

December 12th, 2006 11:00

I have C521 w/ AMD X2 3800+ and ATI X1300. I am running Fedora Core 6 i386.
By default the machine does not boot dual processors. Under this configuration
I have no problems with the USB mouse or keyboard. I found that with the first
FC6 kernel 2.6.18-1.2798.fc6 it would boot both CPUs if I used "acpi=off" option.
The newer kernel 2.6.18-1.2849.fc6 would not boot with the "acpi=off" option,
but would with "acpi=off" and "lacpi".

I also noticed that when I'm running both cores (booting "acpi=off" "lapic")
that interrupts on IRQ5, which handles the mouse, keyboard and ethernet, are
not being balanced: CPU 1 gets about 130 interrupts and then all the rest go
to CPU 0.

Plea to others: If you report workability please provide which architecture
(i386 versus x86_64) you are using. I have been looking at the kernel source
and there seem to be some differences here.

7 Posts

December 12th, 2006 20:00

Hi guys,
I bought an e521 too, and had some hard time with it.
I tried several linux distributions and finally I succeded with suse 10.1
The solution for the freezing mouse is to use a self powered usb hub, like the one that comes on the screen (and I was wondering what was the purpose for that ).
The next problem was the sound. This was solved installing the last alsa distribution (1.0.13) together with the last kernel 2.6.19.1.
I am using the following kernel booting parameters: acpi=noirq vga=0x31a
It sees both cores. The system works excelent, although it was hard to make it work!

I hope this will be usefull for somebody,
Dragos

#######################################################################

The content of the /proc/cpuinfo and /proc/interrupts:
Info
My .config file:
.config

Message Edited by dmoroian on 12-12-200604:48 PM

Message Edited by dmoroian on 12-13-200602:08 AM

Message Edited by dmoroian on 12-13-200604:13 PM

16 Posts

December 12th, 2006 21:00

NRIOS: for the last time are you going to keep pulling magic rabbits out of your hat or are you going to post the .config files for your 2.6.18.x kernels which you say work. Post the one from opensuse 10.2 and help us out. Substituting a non-working CPU for a working mouse/keyboard is not an option!

Here are some places where you can paste:

http://rafb.net/paste
http://pastebin.com

this goes for others too with long messages, paste your cpuinfo/interrupts elsewhere or cut out only the relevant portions.

December 13th, 2006 07:00



@dmoroian wrote:
Hi guys,
I bought an e521 too, and had some hard time with it.
I tried several linux distributions and finally I succeded with suse 10.1
The solution for the freezing mouse is to use a self powered usb hub, like the one that comes on the screen (and I was wondering what was the purpose for that ).
The next problem was the sound. This was solved installing the last alsa distribution (1.0.13) together with the last kernel 2.6.19.1.
I am using the following kernel booting parameters: acpi=noirq vga=0x31a
It sees both cores. The system works excelent, although it was hard to make it work!

I hope this will be usefull for somebody,
Dragos

#######################################################################

The content of the /proc/cpuinfo and /proc/interrupts:
Info


This evening I will also post the .config file



Message Edited by dmoroian on 12-12-200604:48 PM

Message Edited by dmoroian on 12-13-200602:08 AM






Hi dmoroian,

Your /proc/cpuinfo seems strange. For my Athlon X2 4200+, I get the following :
cpu MHz : 2200.00
bogomips : 4409.59

and you should obtain
cpu MHz : 2600.00
bogomips : 5200.00


T

7 Posts

December 13th, 2006 20:00

Well Hephaistos, you can check my .config file, maybe you can figure it out, why is showing those low numbers.
Though, I think it has something to do with powernow-k8 (which I don't know what it is). This is what dmesg prints at the end:

powernow-k8: Found 2 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ processors (version 2.00.00)
powernow-k8: 0 : fid 0x12 (2600 MHz), vid 0x8
powernow-k8: 1 : fid 0x10 (2400 MHz), vid 0xa
powernow-k8: 2 : fid 0xe (2200 MHz), vid 0xc
powernow-k8: 3 : fid 0xc (2000 MHz), vid 0xe
powernow-k8: 4 : fid 0xa (1800 MHz), vid 0x10
powernow-k8: 5 : fid 0x2 (1000 MHz), vid 0x12


Dragos

Message Edited by dmoroian on 12-13-200604:58 PM

Message Edited by dmoroian on 12-14-200602:58 AM

December 14th, 2006 04:00

Here are my .config , dmesg , /proc/cpuinfo, /proc/interrupts

http://rafb.net/paste/results/oYXuxy39.html
http://rafb.net/paste/results/MzHHDC87.html
http://rafb.net/paste/results/UZezTz58.html

31 Posts

December 19th, 2006 23:00

Hello,

Interesing info about this issue here.

It seems a BIOS problem.

I think DELL should fix it quickly!

Cheers,
Duli

Message Edited by Duli on 12-20-200605:42 AM

No Events found!

Top