Last active
February 21, 2021 21:22
-
-
Save crabdancing/fc260868aefe5e06106da785d482065b to your computer and use it in GitHub Desktop.
Disable suspending USB core. I use this service to fix a bug with my bluetooth on one of my laptops.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Disable automatically suspending USB stuff to fix errors with e.g. bluetooth | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/bash -c "echo -1 > /sys/module/usbcore/parameters/autosuspend" | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment