auto-switch between hsp/hsf and a2dp bluetooth policies

This commit is contained in:
Pig Monkey 2019-03-28 20:19:23 -07:00
parent cc758014cc
commit 7f561eb9a0

View file

@ -21,6 +21,15 @@
notify:
- restart pulse as user
- name: Auto-switch between HSP/HSF and A2DP
lineinfile:
dest: /etc/pulse/default.pa
regex: "^load-module module-bluetooth-policy"
state: present
line: "load-module module-bluetooth-policy auto_switch=2"
notify:
- restart pulse as user
- name: Do not auto power on the bluetooth device
command: gsettings set org.blueman.plugins.powermanager auto-power-on false
become: yes