Created
September 4, 2013 08:49
-
-
Save fcwu/6434427 to your computer and use it in GitHub Desktop.
Put in /etc/pm/power.d to route BT to ehci
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/sh | |
# Allow the driver to put the audio hardware to sleep | |
# once the driver has been inactive for a second. | |
# This hook should work with at least the ac97 and hda codecs. | |
help() { | |
cat <<EOF | |
-------- | |
$0: Intel Audio powersave parameters. | |
This hook has 1 tuneable parameter. | |
INTEL_AUDIO_POWERSAVE = controls whether we will try to save power on battery. | |
Defaults to true. | |
EOF | |
} | |
audio_powersave() { | |
setpci -s 0000:00:14.0 d0.w=0fdf | |
} | |
case $1 in | |
true) audio_powersave;; | |
false) audio_powersave;; | |
help) help;; | |
*) exit $NA | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment