New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'laptop_mode auto force' ignores ENABLE_LAPTOP_MODE_TOOLS=0 aswell as CONTROL_USB_AUTOSUSPEND="0" #37
Comments
Here is, how I found the issue on my gentoo system:
StepsWhen running the following command in a shell:
and then suspending, then resuming my computer, it produced the following (severly shortened) output:
after that, all my devices had turned to 'Good' in powertop and my mouse had stopped working. After turning my mouse back, deinstalling laptop-mode-tools and standby-cycling with the same stap invokation again, produced no pm_allow and very few system resume tasks:
|
Okay!!. Thanks for your additional information. I still checked the code BTW, in 1.65 there is no usb-autosuspend module. It was dropped in favor On Tuesday 16 September 2014 06:42 AM, bendlas wrote:
Ritesh Raj Sarraf |
Have you tried running |
I'll check it today s3nt fr0m a $martph0ne, excuse typ0s
|
Thanks for the report. I've fixed LMT to honor user settings. Will be part of the 1.66 release. |
With the help of systemtap I finally found the culprit for my mouse switching off after resume from standby: laptop-mode-tools
I had ruled it out, because with it being disabled in systemd, aswell any and all of its config options switched off, it couldn't possibly be the cause for for my mouse's auto-suspend turning on after resume, making it unusable. Right? Wrong!
Due to 99-laptop-mode.rules, it auto-starts itself from udev as
lmt-udev auto force
. This then merrily turns on auto-suspend for all usb devices (despiteENABLE_LAPTOP_MODE_TOOLS=0
in/etc/laptop-mode/laptop-mode.conf
andCONTROL_USB_AUTOSUSPEND="0"
in/etc/laptop-mode/conf.d/usb-autosuspend.conf
).It does so, even while it logs
++ log VERBOSE 'USB autosuspend is disabled.'
. Still, I cross-checked: I can turn off my mouse by callinglaptop_mode auto force
. OTOH when I remove 99-laptop-mode.rules, my mouse suddenly survives a suspend-resume.Observed with
app-laptop/laptop-mode-tools-1.65-r1
from gentoo.Thanks to the fantastic
fche
andjistone
from#systemtap
on freenode. With their help, I managed to use systemtap to trace writes to/sys/bus/usb/devices/*/power/control
, which allowed me to find the needle in this hay stack.The text was updated successfully, but these errors were encountered: