I like powertop --auto-tune
because the speakers of my laptop are soughing when not being used and powertop
disables the speakers completely when they're not used, stopping the noise.
However, my USB mouse gets disabled within seconds after not using it and after a few more seconds, my touchpad has a delayed response (works fine after the first delay of a fraction of a second, though).
How do I make this stop but still disable my speakers completely when no audio is put out?
cat
here would not produce the expected result, because it will substitute the values of HID devices that are currently in use, hardcoding them. To preserve the dynamic device selection, just copy-paste the contents of the heredoc (the part betweenEOF
) into a file manually. – Ivan Aksamentov - Drop Apr 30 '18 at 17:34cat EOF
. I think it's best to simplify the answer in that sense. The logic is solid though, finally no more issues with powertop! :) – WhyNotHugo Apr 13 '20 at 12:23