LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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: 1
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 (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
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: 102Reputation: 102
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: 6

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
 
1 members found this post helpful.
Old 06-06-2013, 01:20 AM   #6
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
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.
 
1 members found this post helpful.
Old 08-19-2015, 04:23 AM   #7
speedytux
LQ Newbie
 
Registered: Jul 2015
Location: Italy
Distribution: Arch, Fedora
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by OneTinSolider View Post
A simple "udevadm trigger" should work
Really useful! Thanks
 
Old 08-19-2015, 04:44 AM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
It is possible to reset a usb controller (equivalent to disconnecting and connecting a USB device) via a terminal using the approach described here

http://www.zedt.eu/tech/linux/restar...system-centos/

There are a number of scripts around using similar methods.

http://billauer.co.il/blog/2013/02/u...ci-uhci-linux/
http://marc.info/?l=linux-usb&m=121459435621262&w=2
http://www.clearchain.com/blog/posts...us-under-linux
 
2 members found this post helpful.
  


Reply

Tags
bus, detection, hardware, mouse, usb



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration