[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SOLVED] Re: bug? laptop-mode-tools - mouse turns off after 3s of inactivity after last update



>Sounds like usb-autosuspend, at a glance.

>I noticed that the commented line listing usb-autosuspend as a valid
>option for one of the settings in /etc/laptop-mode/laptop-mode.conf
>disappeared with the most recent update to that package, but I didn't
>notice anything in the changelogs that would seem to explain that. (I'm
>not on that laptop now, so I can't check easily.)

>I really hope the option to disable USB auto-suspending hasn't
>disappeared; last I checked, allowing USB autosuspend would deactivate
>my mouse in exactly this way.

>-- 
>  The Wanderer
I found a solution myself.
Edit /etc/laptop-mode/conf.d/runtime-pm.conf
Search this:
# The list of Device IDs that should not use autosuspend. Use system commands or

# look into sysfs to find out the IDs of your devices.

# Example: AUTOSUSPEND_DEVID_BLACKLIST="046d:c025 0123:abcd"

AUTOSUSPEND_RUNTIME_DEVID_BLACKLIST=""

 

Then do lsusb and find the mouse:
lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 003: ID 5986:0102 Acer, Inc Crystal Eye Webcam

Bus 003 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

 

You find the mouse -> 093a:2510

 

Now edit AUTOSUSPEND_RUNTIME_DEVID_BLACKLIST="093a:2510"

 

After next boot, your mouse will not suspended any more.

 

However, if you wish the mouse to be suspended, but want increase the delay (which is 2s by default and rather short), edit the last line:

 

# Auto-Suspend timeout in seconds

# Number of seconds after which the USB devices should suspend

AUTOSUSPEND_TIMEOUT=2

 

Good luck and thanks for the answers.

 

Best

 

Hans

 

 

 



Reply to: