Merge pull request #15 from StollD/bugfix/disabled-bluetooth
sleep-script: Prevent bluetoothctl from timing out
This commit is contained in:
commit
0984748ad5
|
@ -3,7 +3,7 @@ case $1 in
|
||||||
pre) # unload the modules before going to sleep
|
pre) # unload the modules before going to sleep
|
||||||
|
|
||||||
# Disable bluetooth if no device is connected
|
# Disable bluetooth if no device is connected
|
||||||
if ! bluetoothctl info; then
|
if ps cax | grep bluetoothd && ! bluetoothctl info; then
|
||||||
bluetoothctl power off
|
bluetoothctl power off
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -32,7 +32,9 @@ case $1 in
|
||||||
#modprobe intel_ipts
|
#modprobe intel_ipts
|
||||||
|
|
||||||
# Restart bluetooth
|
# Restart bluetooth
|
||||||
|
if ps cax | grep bluetoothd; then
|
||||||
bluetoothctl power on
|
bluetoothctl power on
|
||||||
|
fi
|
||||||
|
|
||||||
# handle wifi issues: complete cycle
|
# handle wifi issues: complete cycle
|
||||||
modprobe cfg80211;
|
modprobe cfg80211;
|
||||||
|
|
Loading…
Reference in a new issue