LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-07-2015, 02:37 PM   #1
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
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!
 
Old 08-07-2015, 10:05 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
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"
 
Old 08-07-2015, 10:53 PM   #3
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282

Original Poster
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
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.

Regards...
 
Old 08-08-2015, 12:04 AM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
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.
 
Old 08-08-2015, 12:17 AM   #5
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282

Original Poster
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by ferrari View Post
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!
 
  


Reply



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
resetting the USB system adrianmariano Linux - Hardware 2 11-29-2014 01:00 PM
USB constantly resetting and UPS not always gets redetected. Lucid 10.4 cavarks Ubuntu 2 05-20-2012 09:51 PM
k3b keeps resetting USB bus when using an external burner lpwevers Linux - Software 0 04-11-2009 12:46 PM
BASH script for resetting USB ylikone Programming 1 05-31-2006 06:28 PM
Resetting USB Port iomari Linux - Hardware 0 01-27-2005 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:49 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