Fixed bluetooth suspend problem with fix
This commit is contained in:
parent
1cd4074416
commit
bed0a7ee15
15
systemd/bluetooth-fix.sh
Executable file
15
systemd/bluetooth-fix.sh
Executable file
|
@ -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
|
Loading…
Reference in New Issue
Block a user