You are not logged in.

#1 2009-08-29 23:06:32

tntcoda
Member
Registered: 2007-07-24
Posts: 115

USB Keyboard module reset issues [SOLVED]

Hi,

Im on a fresh install of Arch, and had none of these problems on the exact same setup one day ago.

Basically my USB keyboard outputs a message to the console/dmesg every second saying: "usb 1-1.4: reset full speed USB device using ehci_hcd and address 5"

If i "rmmod ehci_hcd" then the problem stops, but this reverts my devices to USB 1.1 mode, as soon as I "modprobe ehci_hcd" again the problem persists.

Anyone got any ideas of the causes/fixes for this issue?

Ive tried moving it to a different usb port, makes no difference.

This is the latest kernel on x86_64, and I get the same problem on the Arch live/install CD. My USB keyboard has a usb2.0 hub in it as well, but on a fully up to date system yesterday I didnt have this problem. This is just a clean reinstall (with LUKS encryption added). sad

Thanks
Jack

Last edited by tntcoda (2009-08-30 02:19:20)

Offline

#2 2009-08-30 01:42:53

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: USB Keyboard module reset issues [SOLVED]

Hello tntcoda!

Is the PC/hardware the same under 'yesterday' and 'today' install ? What's the problem with 1.1. in case of keyboard ?

Offline

#3 2009-08-30 02:10:30

tntcoda
Member
Registered: 2007-07-24
Posts: 115

Re: USB Keyboard module reset issues [SOLVED]

Hi, thanks for replying.

The hardware is identical yes. The problem is, it's constantly resetting the usb device every second, which is a resource hog and theres no end of spam messages.

Also I run usb 2.0 flash drives out the keyboard hub, so I would rather not run at 1.1.

I just cant understand how it was working perfectly on an old but updated 09.02 arch install, and now has this issue on the latest release.

Very strange sad

Offline

#4 2009-08-30 02:18:53

tntcoda
Member
Registered: 2007-07-24
Posts: 115

Re: USB Keyboard module reset issues [SOLVED]

smile Seem to have cracked it.

For anyone else that comes across this issue, it seems to be a rare and hard to reproduce kernel bug. There's patches for it in the 2.6.31 kernel (i think), and Ive just compiled the current snapshot for 2.6.31 and its completely fixed the USB bus issues.

http://aur.archlinux.org/packages.php?ID=29484 for latest snapshot.

I can only assume the latest arch release has some 'new install only' stuff related to the 2.6.30 kernel that causes this issue. Hopefully wont be long till 2.6.31 goes final.

Last edited by tntcoda (2009-08-30 02:19:07)

Offline

#5 2009-09-02 02:48:05

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: USB Keyboard module reset issues [SOLVED]

tntcoda, thanks for pointing that out.

Offline

#6 2009-10-10 18:10:57

a152166
Member
Registered: 2009-10-10
Posts: 1

Re: USB Keyboard module reset issues [SOLVED]

Hi, I am really disapointed over the lack of technical knowledge that you find these days in the internet. Linux was created first with maximum tuning capabilities. Then going mainstream they cut out all options leaving you basically helpless.

There are two problems to slow USB-performence.
1) Wrong configuration -> I assume that is not the case
2) Dumb Linux settings you can't change, because nobody tells you were to change them.

So the usual problem is, that the USB-Stick is mounted as "write-through" and not "write-back". So reading from the USB-Stick is cached, while the writing is not!!! Cache is a technique to speed things up, by not doing them in the order they appear. Especially with small files, there is no alternative. That is why modern harddisk have 8 or 16 MB cache on board. This way preformence of read/write files of size 0,005 or 0010 MB stays acceptable. USB-Sticks don't have an extra cache. The computer is supposed to take care of that.

Linux mounts USB-Sticks as "write-through", so with no caching in the writepart. So if you write many very small files, you can make a coffee break. Advantage is you can take out the stick after writing finishes without having to fear lose of data. With "write-back" you only know if the copy operation finished, that the data made it into the cache. To be sure, that the data also makes it onto the USB-Stick you need to unmount the USB-Stick.

Now everybody understands the problem. The big distributions prefer less speed rather than to have complains of Newbies that Linux corrupted their data - while the truth was, that those Newbies took out the USB-Stick without unmounting it.

So far so good, if those LINUX Expert would have left an easy accessable swith to change the "cache write policy", as windows does.

SO TO ALL THOSE LINUX EXPERT, PLEASE TELL ME WHAT I NEED TO DO TO CHANGE THE CACHE POLICY FROM WRITE-THROUGH TO WRITE-BACK. PLEEEEEEEEASE.

THX

Offline

Board footer

Powered by FluxBB