Created
July 18, 2017 20:29
-
-
Save stripedpurple/c3a93852ec5cc4bc25e4e4bbe6e8d604 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
# Creating a backup of /etc/default/grub | |
cp /etc/default/grub /opt/bht/etc/grub.original | |
# reconfiguring grub to disable usb power mangement | |
sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT=".*"/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"/g' /etc/default/grub | |
sudo update-grub | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To test run
cat /sys/module/usbcore/parameters/autosuspend