diff --git a/root/lib/systemd/system-sleep/sleep b/root/lib/systemd/system-sleep/sleep index 7c76e6cdf4..0076f08104 100644 --- a/root/lib/systemd/system-sleep/sleep +++ b/root/lib/systemd/system-sleep/sleep @@ -1,6 +1,12 @@ #!/bin/bash case $1 in pre) # unload the modules before going to sleep + + # Disable bluetooth if no device is connected + if ! bluetoothctl info; then + bluetoothctl power off + fi + # handle wifi issues modprobe -r mwifiex_pcie; modprobe -r mwifiex; @@ -25,6 +31,9 @@ case $1 in #modprobe mei_hdcp #modprobe intel_ipts + # Restart bluetooth + bluetoothctl power on + # handle wifi issues: complete cycle modprobe cfg80211; modprobe mwifiex;