LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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

Reply
 
Search this Thread
Old 09-13-2009, 06:00 PM   #1
newmanium2001
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Rep: Reputation: 0
Rescan for USB Devices


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?
 
Old 09-13-2009, 06:56 PM   #2
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Rep: Reputation: 196Reputation: 196
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 07:01 PM.
 
Old 09-13-2009, 09:20 PM   #3
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 101Reputation: 101
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.
 
Old 08-06-2011, 02:40 PM   #4
Reeb xoxo
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
Exclamation doesn't work

the command doesn't work, just shows:
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

no auto-mounting
 
Old 06-05-2013, 09:26 PM   #5
OneTinSolider
LQ Newbie
 
Registered: Jun 2013
Posts: 1

Rep: Reputation: Disabled
A simple "udevadm trigger" should work
 
Old 06-06-2013, 01:20 AM   #6
eklavya
Member
 
Registered: Mar 2013
Posts: 525

Rep: Reputation: 109Reputation: 109
your mouse, keyboard and screen are controlled by Xorg. I have found in the past that things could break for no reason, such as a single key becoming non-responsive, requiring me to map it explicitly with xmodmap.
 
  


Reply

Tags
bus, detection, hardware, mouse, usb


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 On
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 05:07 PM
move grub to usb + mount encrypted devices from usb question Lancelot1 Linux - Security 1 02-26-2009 09:51 AM
USB 2.0 drive hangs when put on the same controller with USB 1.1 devices lpwevers Linux - Hardware 0 01-25-2009 01:41 PM
alternative way to get USB file handle: hotplug? sys/bus/usb/devices/ ? knockout_artist Linux - Kernel 0 12-02-2008 04:08 PM
Rescan devices consty Linux - General 1 11-02-2005 05:13 PM


All times are GMT -5. The time now is 07:22 PM.

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