From bed0a7ee15305c104259479cd0718b50352c03b8 Mon Sep 17 00:00:00 2001 From: lanxu Date: Thu, 27 Jun 2019 16:41:45 +0300 Subject: [PATCH] Fixed bluetooth suspend problem with fix --- systemd/bluetooth-fix.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 systemd/bluetooth-fix.sh diff --git a/systemd/bluetooth-fix.sh b/systemd/bluetooth-fix.sh new file mode 100755 index 0000000..bf12390 --- /dev/null +++ b/systemd/bluetooth-fix.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# This script goes to /usr/lib/systemd/system-sleep/ +# Remember chmod a+x bluetooth-fix.sh +# It will soft block bluetooth and restore it while waking up +# This fixes the problem where the bluetooth blocks suspend +case $1/$2 in + pre/*) + echo "Bluetooth fix: Going to $2..." + rfkill block bluetooth + ;; + post/*) + echo "Bluetooth fix: Waking up from $2..." + rfkill unblock bluetooth + ;; +esac