Skip to content

Instantly share code, notes, and snippets.

@M66B
Last active August 29, 2015 14:03
Show Gist options
  • Save M66B/e88f4d0a2bb75c1a2683 to your computer and use it in GitHub Desktop.
Save M66B/e88f4d0a2bb75c1a2683 to your computer and use it in GitHub Desktop.
Acer C720 bluetooth audio
sudo apt-get install firmware-atheros blueman bluez-alsa
sudo apt-get purge pulseaudio
sudo apt-get autoremove --purge
sudo nano /etc/pm/sleep.d/05_Sound
#!/bin/bash
mods=( btusb bnep ath3k rfcomm bluetooth )
case "${1}" in
hibernate|suspend)
service bluetooth stop
for m in "${mods[@]}"
do
/sbin/rmmod $m
done
;;
resume|thaw)
for m in "${mods[@]}"
do
/sbin/modprobe $m
done
service bluetooth start
;;
esac
nano ~/.asoundrc
@hooks [{
func load
files ["/usr/share/alsa/bluetooth.conf"]
errors false
}]
pcm.bt {
type plug
slave { pcm bt_softvol }
}
pcm.bt_softvol {
type softvol
slave { pcm bluetooth }
control { name "Master" card 0 }
}
sudo nano /etc/bluetooth/audio.conf
Enable=Socket
AutoConnect=true
sudo service bluetooth restart
sudo alsa force-reload
aplay -D default /usr/share/sounds/alsa/Front_Center.wav
aplay -D sysdefault /usr/share/sounds/alsa/Front_Center.wav
chromium --alsa-output-device=bt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment