After last update (udev or new kernel 3.15) I have a problem with my wireless USB mouse. After about 5 seconds, the mouse switch off, so I have to click two buttons together (like when I start) or even plug off and plug on USB stick . Firstly, I thought maybe batteries are old, but with a new batteries it was the same. So I tough the mouse is broken, so I bought a new one, but it still the same. Its very difficult to use a muse now, few seconds, and it is switched off. What to do? Help.

Last edited by Xywa on Thu Oct 16, 2014 6:21 am; edited 1 time in total

If i get it right, /etc/udev/rules.d is for your own rules. If you didn't add one that do it, it doesn't mean udev itself doesn't have a rule that do the same.

You should look at /lib/udev/rules.d and seek a default rules add by udev that might do the same.
(you will see you have way more rules than you think there)

With luck ssuominen will comes, and you will get a real answer faster than light.
If you can, boot your previous kernel and you will more define if your new kernel is the problem or udev.
While you're at it, you can also tell your udev version, as last update of udev is not helping (last update of udev in arch or ~arch may not result in the same version)

Tip: USB autosuspend functionality has been moved from the usb-autosuspend module to the runtime-pm module. Make sure to replace usb-autosuspend with pm-runtime on /lib/udev/rules.d/99-laptop-mode.rules.

therefore usbcore.autosuspend=-1 does not work anymore - I'm still searching for the command to append to the kernel at bootup to disable runtime selectively for usb devices ...

but still the same... I have bought a brand new mouse with usb cable, when the red light in mouse is gone, mouse is gone (usually after 3 seconds)...

Sorry. This works (I said before it did not work for me)

Quote:

echo -1 >/sys/module/usbcore/parameters/autosuspend

but only for any new USB devices. So I had plug off and plug in my USB mouse (as it was connected before that command), and after that everything works perfectly. And you have to do this manually every time you restart the system.

I have to check what kernelOfTruth said and will try this. So what paramets should be in /etc/laptop-mode/conf.d/runtime-pm.conf file to have the same like echo -1 >/sys/module/usbcore/parameters/autosuspend?

###############################################################################
# Runtime Power Management Settings
# ---------------------------------
#
#__COMMENT If you enable this setting, laptop mode tools will automatically enable
#__COMMENT the Runtime Power Management feature for all devices.
#__COMMENT
#__COMMENT NOTE: Some devices claim they support autosuspend, but implement it in a
#__COMMENT broken way. This can mean keyboards losing keypresses, or optical mice
#__COMMENT turning their LED completely off. If you have a device that misbehaves,
#__COMMENT add its DEVICE ID to the blacklist section below and complain to your
#__COMMENT hardware / device driver contact
#
################################################################################

# Enable debug mode for this module
# Set to 1 if you want to debug this module
DEBUG=0

# Set this to use opt-in/whitelist instead of opt-out/blacklist for deciding
# which devices should be autosuspended.
# AUTOSUSPEND_USE_WHITELIST=0 means AUTOSUSPEND_*_BLACKLIST will be used.
# AUTOSUSPEND_USE_WHITELIST=1 means AUTOSUSPEND_*_WHITELIST will be used.
AUTOSUSPEND_USE_WHITELIST=0

# 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=""

# The list of device driver types that should not use autosuspend. The driver
# type is given by "DRIVER=..." in a device's uevent file.
# Example: AUTOSUSPEND_DEVID_BLACKLIST="usbhid usb-storage"
AUTOSUSPEND_RUNTIME_DEVTYPE_BLACKLIST=""

# The list of Device IDs that should use autosuspend. Use system commands or
# look into sysfs to find out the IDs of your devices.
# Example: AUTOSUSPEND_DEVID_WHITELIST="046d:c025 0123:abcd"
AUTOSUSPEND_RUNTIME_DEVID_WHITELIST=""

# The list of device driver types that should use autosuspend. The driver
# type is given by "DRIVER=..." in a device's uevent file.
# Example: AUTOSUSPEND_DEVTYPE_WHITELIST="usbhid usb-storage"
AUTOSUSPEND_RUNTIME_DEVTYPE_WHITELIST=""

# Trigger auto-suspension of the deivce under conditional circumstances
# Warning: DO NOT CHANGE THESE DEFAUTLS UNLESS YOU KNOW
BATT_SUSPEND_RUNTIME=1
LM_AC_SUSPEND_RUNTIME=1
NOLM_AC_SUSPEND_RUNTIME=1

# Auto-Suspend timeout in seconds
# Number of seconds after which the USB devices should suspend
AUTOSUSPEND_TIMEOUT=2