LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to restart USB? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-restart-usb-606921/)

Jayla 12-15-2007 04:47 AM

How to restart USB?
 
Hi

Occasionally my mouse will stop working, its not the hardware as it does it with other mice, I still have keyboard access and can make it to a terminal

Is there a command that will restart the mouse service? so far the only way I can get the mouse to start working again is to restart the system, and that isnt always conveniant :P

Regards

masterclassic 12-15-2007 05:19 AM

Did you try to unplug it and plug it back again?

Jayla 12-15-2007 04:40 PM

Nope that didnt seem to work (first thing I tried)

A friend of mine talked me through some commands containing "rmmod usbhid" (cant remember the exact commands) but that didnt seem to do anything either

A restart is the only thing that can fix it, but has also lead to other issues, whereby if I scroll up/down frm the mouse wheel it intereprets that as a right/left click

Please help me fix this!

ps the mouse I am using is a logitech MX series, USB although its connected via a PS/2 converter into a KVM switch

lin_myworld 12-16-2007 06:28 AM

may be problem is in ur mouse...
first check it by using in some of ur frnd's pc and use some other mouse in ur pc........

seelenbild28 12-17-2007 04:18 AM

he just said that the problem also occurs with other mice...

did you only "rmmod usbhid" or did you first "rmmod usbhid" (which unloads the usb kernel module) and then "modprobe usbhid" (which loads it again)?

@linuxusers: could it be that ial or hald is the problem?

you could try to restart the hal daemon with something like "/etc/init.d/hald restart"

Jayla 12-17-2007 07:18 AM

Hi Seelen

Yes I had to rmmod usbhid and hid before I was able to modprobe usbhid

It will correct itself if I restart the machine, but that is not always conveniant. So I assume there must be a service that has its cache flushed at restart, but I wouldnt know the first place to look :S

Regards

michaelk 12-17-2007 07:47 AM

Quote:

ps the mouse I am using is a logitech MX series, USB although its connected via a PS/2 converter into a KVM switch
If you are using PS/2 KVM switch then your problem has nothing to do with USB. Does this just happen when you switch between PCs or just anytime? I have a PS/2 KVM switch and my mouse is erratic for a few seconds on a Dell PC running CentOS after it is switched back.


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