LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB mouse keeps resetting... (https://www.linuxquestions.org/questions/linux-hardware-18/usb-mouse-keeps-resetting-4175550173/)

ardvark71 08-07-2015 02:37 PM

USB mouse keeps resetting...
 
Hi all...

I have a Logitech M115 mouse (according to lsusb) that I'm using with my desktop....

Code:

Bus 002 Device 006: ID 046d:c058 Logitech, Inc. M115 Mouse
Lately, depending on the OS I'm using, it will either "reset" or stop working entirely and I have to reinsert the plug back into the USB port before it will work again.

In Windows Vista, it will reset, meaning it will stop momentarily (less than one second) and resume working without any action on my part.

In Lubuntu, it will stop working entirely and I have to go to the back of the computer and reinsert the USB plug before it will work again.

Is there a setting in Lubuntu where I can make the OS reset it the same way Vista does?

Thanks! :)

ferrari 08-07-2015 10:05 PM

That reads like a power management issue a me (assuming not faulty hardware). It is actually possible to reset the USB device in situ. There are a number of blogs that discuss how to do this, some using commands rolled into a script. For example:

http://askubuntu.com/questions/645/h...e-command-line
http://davidjb.com/blog/2012/06/rest...out-rebooting/
http://billauer.co.il/blog/2013/02/u...ci-uhci-linux/

Anyway, back to the possible power management issue. There are ways to inhibit a device from being auto-suspended if necessary. The following wiki page is a useful resource:

https://wiki.archlinux.org/index.php...SB_autosuspend

Kernel reference for power management:

https://www.kernel.org/doc/Documenta...management.txt

So, a custom udev rule (eg /etc/udev/rules.d/50-suspend.rules) might help

Code:

ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{idVendor}=="046d", ATTR{idProduct}=="c058", ATTR{power/control}="on"

ardvark71 08-07-2015 10:53 PM

Hi ferrari...

Awesome post, thank you! :)

I'm not sure this is a power management issue for two reasons...

1. This is only a recent development. It used to work fine with no problems whatsoever on either OS.

2. It will do this even when I'm using the mouse and the arrow is in motion! It never seems to happen when I'm away from my system or the mouse is inactive for a period of time.

Do you think your solution work even with these symptoms? I suspect it's an issue with the mouse but other than this, it works fine. :confused:

Regards...

ferrari 08-08-2015 12:04 AM

Inhibiting the kernel power management will only be applicable when that is the cause of a USB device suspending. The pages I linked to describing how to reset a given usb device (or the entire usb subsystem if desired!) can be used to re-initialise USB devices without needed to unplug and plug them, but even having to invoke a command or script is inconvenient. I'd be investing in a new mouse if it was me. :)

ardvark71 08-08-2015 12:17 AM

Quote:

Originally Posted by ferrari (Post 5402770)
I'd be investing in a new mouse if it was me. :)

Yeah, I know that's what it's coming to eventually. I just haven't found one yet that has the same feel as this one. ;)

Thanks!


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