On 06/25/2014 08:47 PM, Didier Raboud wrote: > The 1.65-1 release hit me hard as I was having my wireless mouse and the > two keyboards (one wired TypeMatrix, one wireless Logitech) hanging. I > was experiencing this only in my "laptop plugged to the docking station" > use case (as that's the only setup where I use these external devices); > the 1.65 version broke this by apparently suspending "more" USB devices. > > I therefore suspect the apparition of runtime-pm triggered this, > especially as it has > > LM_AC_SUSPEND_RUNTIME=1 > NOLM_AC_SUSPEND_RUNTIME=1 > > … where usb-autosuspend had: > > LM_AC_SUSPEND_USB=0 > NOLM_AC_SUSPEND_USB=0 > > What justifies this difference?
I need to check my commit logs but afair, runtime pm is not just about during power state changes. I've tried delegating, whatever makes sense, to the kernel's runtime framework. And only try to take care of binary switches in LMT. > > As you can see from my configuration files below, I have now disabled > usb-autosuspend and added my three faulty devices to the runtime > blacklist. > > Arguably, as explained in the configuration file comments, the devices > are the culprit, but the problem is tricky to detect, understand, and > workaround. > > Would it be imaginable to have a global blacklist, maintained in the > package? That would be most helpful for everyone instead of reinventing > the wheel for each use-case. I am open to the idea. The challenge is that not one size fits all. One way to overcome this was using the board-specific/ folder. Google had that requirement and they followed this approach. The manpage has a mention of it: /etc/laptop-mode/conf.d/board-specific/ The board-specific settings framework is for users and distributors who would like to ship their local custom‐ ized settings on top of the default settings shipped upstream. Add local customized settings under this folder to override the system defaults. If you have other thoughts, please share. -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention."
signature.asc
Description: OpenPGP digital signature