Skip to content

Instantly share code, notes, and snippets.

@fcwu
Created September 4, 2013 08:49
Show Gist options
  • Save fcwu/6434427 to your computer and use it in GitHub Desktop.
Save fcwu/6434427 to your computer and use it in GitHub Desktop.
Put in /etc/pm/power.d to route BT to ehci
#!/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