LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 09-13-2009, 07:00 PM   #1
newmanium2001
LQ Newbie
 
Registered: Apr 2009
Posts: 6
Thanked: 0
Rescan for USB Devices


[Log in to get rid of this advertisement]
Hi all,

I've been searching pretty furiously for the answer to this question, but to no avail. (distro is Fedora 11 btw)

When I log onto my Gnome session, about 30% of the time my mouse doesn't work. If I unplug it and plug it back in, it works again, but needless to say, reaching all the way behind my desktop and doing this is not very convenient.

All I think I would need to do is rescan the USB bus to "redetect" the mouse so to speak, but I can't figure out how this is done. Obviously the OS does some sort of command like this when Linux boots, right? Or is USB just all magic?
linuxfedora newmanium2001 is offline  
Tag This Post , , , ,
Reply With Quote
Old 09-13-2009, 07:56 PM   #2
w1k0
Member
 
Registered: May 2008
Posts: 588
Thanked: 57
Sorry! I copied from the editor and pasted here by mistake the reply to the another question from the another thread. Now I removed it.

Last edited by w1k0; 09-13-2009 at 08:01 PM..
linuxslackware w1k0 is offline     Reply With Quote
Old 09-13-2009, 10:20 PM   #3
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835
Thanked: 136
Quote:
Originally Posted by newmanium2001 View Post
Hi all,

I've been searching pretty furiously for the answer to this question, but to no avail. (distro is Fedora 11 btw)

When I log onto my Gnome session, about 30% of the time my mouse doesn't work. If I unplug it and plug it back in, it works again, but needless to say, reaching all the way behind my desktop and doing this is not very convenient.

All I think I would need to do is rescan the USB bus to "redetect" the mouse so to speak, but I can't figure out how this is done. Obviously the OS does some sort of command like this when Linux boots, right? Or is USB just all magic?
I just Googled this issue, and it appears that issuing the "lsusb" command will rescan for USB devices. You could create a new desktop icon that, when clicked ... oh, crap. I guess that won't work.

I guess you will have to press Ctrl+Alt+F2, log in as root, and issue the "lsusb" command from there. Then press Ctrl+Alt+F7 (on an up-to-date distribution) to go back to X Windows.

And this might not work, depending on what "lsusb" actually does. A better solution might be to connect your mouse to a better USB port. Test your USB ports -- connect the mouse to different USB ports, see if there's one that doesn't disable your mouse when you log off. And don't attach either your keyboard or your mouse to a peripheral USB extension box.
linuxfedora lutusp is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
system reports USB errors at boot, and fails to recognize some USB devices bezdomny Linux - Hardware 1 06-12-2009 06:07 PM
move grub to usb + mount encrypted devices from usb question Lancelot1 Linux - Security 1 02-26-2009 10:51 AM
USB 2.0 drive hangs when put on the same controller with USB 1.1 devices lpwevers Linux - Hardware 0 01-26-2009 10:44 PM
alternative way to get USB file handle: hotplug? sys/bus/usb/devices/ ? knockout_artist Linux - Kernel 0 12-04-2008 01:44 AM
Rescan devices consty Linux - General 1 11-02-2005 06:13 PM


All times are GMT -5. The time now is 05:50 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration