From 2d0a272494f000296c4a007e536780bd57696574 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 26 Jun 2024 17:48:52 -0700 Subject: [PATCH] disable bluetooth on boot via bluez Apparently Blueman dropped power management in v2.4. https://github.com/blueman-project/blueman/blob/main/CHANGELOG.md#changes-2 Closes #121 --- roles/bluetooth/tasks/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/bluetooth/tasks/main.yml b/roles/bluetooth/tasks/main.yml index 34b2231..0f7eff3 100644 --- a/roles/bluetooth/tasks/main.yml +++ b/roles/bluetooth/tasks/main.yml @@ -11,9 +11,10 @@ - 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 - become_user: "{{ user.name }}" + lineinfile: + dest: /etc/bluetooth/main.conf + state: present + line: "AutoEnable=false" - name: Unblock the bluetooth service service: