Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions root/lib/systemd/system-sleep/sleep
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down