LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-22-2009, 02:22 PM   #1
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Angry A rabbit chewed through a USB cable, overloading USB port. How to reset?


'USB 1-0:1.0 Over-current change on Port 1'
'USB 1-0:1.0 Over-current change on Port 2'

Yes, I realize there are a few similar threads around here, however many are rather old, and most of them reach one of two conclusions: "blacklist the usb/uhci module" or "your hardware/power supply is defective".

While (1) might get get if the 'over-current' messages in dmesg, they aren't exactly my problem. Since the rabbit DID eat through the cable, likely shorting the port, I KNOW there *was* an over-current condition at one point.

And (2) *may* be the case now with the USB port (defective) but I doubt it; and the power supply is good.

The machine is my (older) QDI Intel 440-LX 333MHz firewall machine, with only one USB port. The controller has always reported 2 ports, and maybe there is a pin header in the box for a second port, but the box only has one obvious USB port.

The port had been in use for my GE wireless keyboard & mouse when the rabbit ate through the wire for the base-station. I have since repaired the base-station USB wire, and the device works fine when connected to another computer, but nothing works now in the single USB port on the firewall machine, and I get those 'over-current' messages, once per port, in dmesg when I boot it up.

I have also since bought a new PS/2 mouse for the machine.

Google took me to the LQ threads on the subject, as well as to various similar/related threads from the Linux USB mailing list(s), but I have yet to see directly addressed anywhere, how exactly (if possible) to reset the over-current status of the port or hub in question.

The way I figure it, if the Linux USB driver is able to determine that there *has been* a change in the over-current bit set by the hub or port, then by extension, it ought to have a mechanism for *resetting* that status, or otherwise shutting off/on or resetting the entire hub or port.

Until I have exhausted all ideas of how to reset the port, I am assuming that it is not DEAD, but needs to be reset. Up above, when I wrote 'I doubt that the port is defective', I wrote that because I remember a few years ago when I still used "that other OS" before switching to Linux, I had had occasion to need to reset an over-current status on a USB port. "That other OS" would pop up a little balloon which read "Overload on USB port. Click here to reset" and after clicking, the port would work again.

So, is there a way of doing this from Penguin-Land?

(P.S. - for those wondering: my workstation is a corner unit, all open areas of which are protected by 1/2" hardware cloth attached from the workstation to the wall & from the floor to the tabletop, but despite all that, the &&$(@^# rabbit in question managed to climb some furniture on the other side of the room, in the middle of the night, then traverse a wall by way of a window ledge, and literally 'fall' its way into behind my workstation where it constantly endeavors to get, and where I found it in the morning having a hearty breakfast of Ethernet cables, USB wires, two NULL-modem cables, and the adapter for a wireless router :/ so needless to say I was *very* displeased, but please, no more discussion of the rabbit..)

Sasha
 
Old 03-22-2009, 02:38 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,030
Blog Entries: 52

Rep: Reputation: Disabled
Don't know how to solve your problem, Sasha, but I had a good laugh at it. Sorry.
Get a muzzle for the pesky wabbit.
 
Old 03-22-2009, 03:26 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I once had a rabbit that would chew thru electric cords---how he survived that I will never know.

My hunch is that--if a reboot doesn't fix it, that port is probably history. My hunch is that a PCI USB card is cheaper than a new MB. If you were looking for an excuse to buy a new MB (I am) then don't read the previous sentence....
 
Old 03-22-2009, 05:07 PM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Hmm, some say to turn on 'CONFIG_USB_SUSPEND'.

Possibly offtopic, I did find a java API and class that can reset the USB port:
http://jusb.sourceforge.net/apidoc/usb/core/Hub.html

If you know enough C, take a look at usb.h, you may be able to write a program to reset it.

Somehow I think it's fried.
 
Old 03-22-2009, 10:10 PM   #5
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by pixellany View Post
I once had a rabbit that would chew thru electric cords---how he survived that I will never know.

My hunch is that--if a reboot doesn't fix it, that port is probably history. My hunch is that a PCI USB card is cheaper than a new MB. If you were looking for an excuse to buy a new MB (I am) then don't read the previous sentence....
Hi Pixellany -- Funny you should mention that; this rabbit has eaten more wires than one could imagine, and it still searches them out! 120VAC doesn't seem to faze them. I have used up probably (in all seriousness) about 10 feet of heat shrink tubing and 1/4LB of solder, replacing or repairing lamp cords, extension cords, laptop PSU cord, LAN cables, USB, etc etc.. It's ridiculous. We have furniture against the walls, hardware cloth everywhere, but it still seeks out whatever wires it can find :/
Since that last episode which cooked my USB port (the rabbit is VERY LUCKY it was my old machine and not my nice machine, or I'd have been hunting it with a stew pot in hand) we confine the rabbit to the hallway at night.

A new MB for that machine is not practical, especially as I did get a shiny new MB for my 'nice machine' a year or so ago; if anything, my roomie may one day get a new machine or new laptop, in which case I will get her old machine and make something of that if necessary.

@ H-Tex-MeX -- thank you very much for those two suggestions; I will be looking into both of them (the CONFIG_USB_SUSPEND and the Java class) and will post updates either way once I try them.
As for the usb.h and writing a C tool to do this, I'm afraid my C is not up to the task, but I will ask the roomie about it; she is the C person here.

Thanks you two

Sasha
 
Old 03-22-2009, 10:56 PM   #6
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,047

Rep: Reputation: 170Reputation: 170
I was once told by a woman I purchased a pet rabbit from (so it must be true...)that rabbits couldn't eat apples, because the seeds were toxic to them.

So, if you were to venture to the iDark Side (shudder), would that be the end of the rabbit?

Yet another reason that Linux is just so much better (as the choir rejoices in yet another resounding crescendo.)

cheers,
 
Old 03-22-2009, 11:07 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
I do not know about rabbits but you can prevent squirrels from chewing on stuff by hitting it with pepper spray. 1Tbls Dave's insanity sauce to 3 Tbls olive oil sprayed on with a mister usually works. A very light coat goes a long ways and do NOT get this stuff in your eyes or lungs.
 
Old 03-23-2009, 12:42 AM   #8
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Well.. CONFIG_USB_SUSPEND did not help. With it enabled, I get some occasional dmesg lines about like:

"USB 1: Remote Wakeup is needed for autosuspend"

and

"usb 1-0:1.0: uevent:"

but no change in the initial 'over-current change..' message, and `lsusb -v` shows full info from the hub, but also still shows the over-current status.
I tried plugging a USB stick into it, but nothing happened.

I am still considering about the Java class mentioned above-- I am prolly further ahead trying something in C vs. Java though.

Here's a thought: what I need is something like 'setpci' but for USB, though the USB hub *is* on the PCI bus.. Thing is, one of the methods thay setpci uses is via the /proc filesystem, and since reading in a USb mailing-list thread of the idea to do like "echo '1' > power/state" to (re)enable/suspend the USB port or hub, I went looking for some of the indicated /proc files.. None were there.

I'm not a stranger to echoing stuff into /proc or using sysfs, but in this case, there's simply no meaningful files in the USB areas of these filesystems, and the ones that *are* there, aren't getting me anywhere.

Still thinking on it..

PS-- RE: pet store employees.. much of the time, they don't know their butts from a hole in the ground, let alone the needs of many of the animals they sell. No offense to those few who actually do, but most don't, and it isn't entirely their fault either-- it's generally a low paying job for high school and college kids, and they can't be expected to be experts.
FWIW, our rabbit likes apples very much, and has been known to eat some of the seeds with no ill effects. She LOVES oatmeal-peanut-butter 'Pirate Cookies' too.. Weird bunny.. And oddly enough, we have other rabbits here who don't like carrots!
Finally: here at out place, the 'iDarkside' would involve the rabbit meeting the boa constrictor :O


Sasha

Last edited by GrapefruiTgirl; 03-23-2009 at 12:53 AM. Reason: Added animal addendum
 
Old 03-23-2009, 09:43 AM   #9
rcbpage
LQ Newbie
 
Registered: Aug 2008
Posts: 27

Rep: Reputation: 0
The short probably fried your USB controller for those ports, if its built into the MB you might try turning them off in the BIOS, otherwise you are hosed, if you can turn them off and your OS quits giving you fits, get an add on card, and install it.

Good Luck
:-D
 
Old 04-02-2009, 09:43 PM   #10
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Red face Settling for no USB for now..

Quote:
Originally Posted by rcbpage View Post
The short probably fried your USB controller for those ports, if its built into the MB you might try turning them off in the BIOS, otherwise you are hosed, if you can turn them off and your OS quits giving you fits, get an add on card, and install it.

Good Luck
:-D
Just an update:

Nothing has changed with the USB ports. Maybe they ARE fried, or maybe I just have no means of resetting them.

The OS isn't giving me fits, merely a single line in dmesg for each port being 'over-current status', so that isn't a big deal.

I'll be darned if I'm going to temporarily install that 'other' OS just to try to reset the USB port-- I'd rather have no USB so meanwhile, I have focused on other things, and am happily using my PS/2 mouse.

The only drag may be if in the future I decide to purchase a USB dongle modem I have been eyeing; I would have to take up that suggestion of a PCI->USB card, but I don't know if it would be worth the $$ just for a new modem. I WOULD like to get the new modem one day, because with my current PCI Intel 536EP, I am stuck at kernel 2.6.24.4 because the (un-maintained) Intel 536 modem driver will not build on any newer kernel, and I have already jury-rigged the driver as it is to get it to build on 2.6.24.4.

I'd like to upgrade the kernel on that machine.

And by the looks of things, hell will freeze before we ever get high-speed out here.

Thanks to those who commented and provided suggestions here; if the USB ports ever come back to life, I'll let you'se know how/why they did!

Sasha
 
Old 04-03-2009, 03:40 AM   #11
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
One other thing you could try, if you have a voltage tester, test the port to see if it's getting power, see here for the layout of the pins:
http://en.wikipedia.org/wiki/USB
http://pinouts.ru/Slots/USB_pinout.shtml

You could also try to install Window$ to see if you can actually reset anything, but somehow I think if there is no voltage going to the USB port, it's dead.
 
Old 04-03-2009, 01:48 PM   #12
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware 14.1 (multilib) with kernel 3.15.5
Posts: 1,534
Blog Entries: 12

Rep: Reputation: 171Reputation: 171
Here's an odd thing; I recently have gotten a USB overcharge warning in dmesg as well, but all ports seem to be functioning normally. No warnings in Win XP, though, and no animal involvement.... It is a circa 2002 MB, so perhaps just showing its age.

So, I haven't worried, much, about it. Should I?

(I'll try the above voltage test when I get a chance, thanks)
 
Old 04-03-2009, 03:09 PM   #13
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Some have suggested cleaning out the port with compressed air in case something is shorting the pins.
 
Old 04-03-2009, 04:17 PM   #14
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,245

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Next time, instead of a rabbit, get yourself a Tasmanian Devil.

Obviously they are not able to chew cables. At least that's true for Tuz, included in kernel 2.6.29

Image by Andrew McGown and Josh Bush. Image is licensed CC BY-SA.
Attached Images
File Type: jpg tuz_final.jpg (86.9 KB, 9 views)

Last edited by Didier Spaier; 04-04-2009 at 02:50 AM. Reason: Add licence notice
 
Old 04-03-2009, 07:19 PM   #15
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by Didier Spaier View Post
Next time, instead of a rabbit, get yourself a Tasmanian Devil.

Obviously they are not able to chew cables. At least that's true for Tuz, included in kernel 2.6.29.
Indeed, c'est vrai en cas de Tuz but the rabbit in question is pure evil :/

I did a double-take when I first booted up 2.6.29 (in fact I rebooted to get a second look!) and I like the Tuz character. Because of the name I guessed he was a tasmanian devil, but had to check out the /documentation to be sure. Unfortunately, 2.6.29 is giving me a problem with my NIC, so I am awaiting a few patches to see if they fix the issue, before switching from 2.6.28.7
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
usb external HD issue: reset high speed USB device using ehci_hcd gstath Slackware 4 08-18-2010 01:35 AM
cable plugged into USB port produces errors wadesmart Linux - Hardware 2 01-28-2009 02:32 PM
Configuring a USB to Serial Cable to connect to a console port on a HP Procurve jamtech Linux - Networking 3 01-22-2008 07:30 AM
Get usb.c: ignoring set_interface when pluging in a Belkin USB Direct Connect Cable qwerty102 Linux - Networking 0 02-15-2005 08:49 AM
Rca DCM245 Cable Modem through the USB port at_nikolov Linux - General 0 09-29-2002 03:19 PM


All times are GMT -5. The time now is 05:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration