SparkyLinux Forums

Installation & Upgrade => System upgrading => Topic started by: way12go on July 22, 2014, 10:25:35 AM

Title: [Solved] Linux USB Mouse auto suspend. The mouse power is going off.
Post by: way12go on July 22, 2014, 10:25:35 AM
Well I installed Sparkylinux LxDE and updated it, everything went well except few glitches happen here and there such as mouse freezing and for once the sparky center didn't work and once shutdown didn't occur.

The main problem is mouse is freezing. My previous linux distro is linux mint and I had a 500 Rupees Logitech mouse it would work and it freezed and this happened time to time... what do I mean by freezing? The mouse pointer didn't freeze... the touch pad was always working. I had to remove the usb mouse and reinsert it to get it to work. I opened the mouse and it broke. I bought a new 250 rupee mouse and same thing is happening in Sparkylinux. Is this linux problem? I set BIOS to optimum - default settings. The mouse power is going off.

Hope I get a working solution.
Title: Re: linux mouse power off linux usb mouse auto suspend
Post by: way12go on July 23, 2014, 02:15:21 PM
http://superuser.com/questions/408683/why-my-usb-mouse-gets-suspended-after-3-seconds-of-inactivity
   

I have the perfect solution!

If

Quotefor i in /sys/bus/usb/devices/*/power/control; do echo on > $i; done

works for you, but only once,
Quotesudo gedit /etc/laptop-mode/conf.d/usb-autosuspend.conf
to replace :

QuoteCONTROL_USB_AUTOSUSPEND="auto"

by

QuoteCONTROL_USB_AUTOSUSPEND=0

It works for me.
Title: Re: [Solved] Linux USB Mouse auto suspend. The mouse power is going off.
Post by: pavroo on July 23, 2014, 09:06:27 PM
That's great!
Thank's for sharing the solution.
Title: Re: [Solved] Linux USB Mouse auto suspend. The mouse power is going off.
Post by: way12go on July 31, 2014, 06:11:01 AM

Quotesudo gedit /etc/laptop-mode/laptop-mode.conf
This  is  the  main  configuration  file.  It contains the settings for
       enabling and disabling, plus the core features: the Linux kernel laptop
       mode feature and related settings.

       ENABLE_LAPTOP_MODE_TOOLS
                 This  module determines if laptop-mode-tools should be run or
                 not. Default is 1 Set it to 0 if you would like to completely
                 disable laptop-mode-tools
Quote
Set

ENABLE_LAPTOP_MODE_TOOLS=0
Title: Solution.
Post by: way12go on August 13, 2014, 05:43:40 AM
The above solutions didn't work for me.

QuoteI simply went to Synaptic package manager and
Quoteuninstalled
Quote"laptop-mode-tools
"

QuoteProblem solved
Title: Re: linux mouse power off linux usb mouse auto suspend
Post by: MoroS on August 18, 2014, 11:02:23 AM
Quote from: way12go on July 23, 2014, 02:15:21 PM
QuoteCONTROL_USB_AUTOSUSPEND=0
Be careful with that one. It's a battery-sucker. Disabling USB autosuspend increases battery drain, as all USB-plugged devices (the ones outside aswell as the ones on the inside of a laptop: webcams, keyboard, touchpad, etc. - they're all usually connected via the USB interface) remain active even when unused.
Title: Re: [Solved] Linux USB Mouse auto suspend. The mouse power is going off.
Post by: way12go on August 18, 2014, 01:02:30 PM
I simply uninstalled laptop mode tools and problem solved. Thanks for your suggestions.