This commit is contained in:
2022-11-03 19:39:01 -05:00
parent 521e57c6e3
commit a43c0ef1aa
3 changed files with 17 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
#!/bin/bash
if [[ $1 = pre ]]; then
btmgmt power off
elif [[ $1 = post ]]; then
btmgmt power on
fi

View File

@@ -115,4 +115,13 @@
with_items: "{{ groups_to_add }}"
- name: Update sleep mode
shell: 'grubby --args="mem_sleep_default=shallow" --update-kernel=ALL'
shell: 'grubby --args="mem_sleep_default=shallow" --update-kernel=ALL'
- name: Set bluetooth script
become_user: user
copy:
src: "files/bluetooth"
dest: "/lib/systemd/system-sleep/bluetooth-suspend"
owner: "root"
force: yes
mode: 'a+x'