Skip to content

Commit

Permalink
sleep script no longer needs to unload and reload modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeday committed Jan 31, 2019
1 parent a3a3ed3 commit 787756b
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions root/lib/systemd/system-sleep/sleep
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@
case $1 in
pre)
# unload the modules before going to sleep
systemctl stop NetworkManager.service
modprobe -r intel_ipts
modprobe -r mei_me
modprobe -r mei
modprobe -r mwifiex_pcie;
modprobe -r mwifiex;
modprobe -r cfg80211;
#systemctl stop NetworkManager.service
#modprobe -r intel_ipts
#modprobe -r mei_me
#modprobe -r mei
#modprobe -r mwifiex_pcie;
#modprobe -r mwifiex;
#modprobe -r cfg80211;
;;
post)
# need to cycle the modules on a resume and after the reset is called, so unload...
modprobe -r intel_ipts
modprobe -r mei_me
modprobe -r mei
modprobe -r mwifiex_pcie;
modprobe -r mwifiex;
modprobe -r cfg80211;
#modprobe -r intel_ipts
#modprobe -r mei_me
#modprobe -r mei
#modprobe -r mwifiex_pcie;
#modprobe -r mwifiex;
#modprobe -r cfg80211;
# and reload
modprobe -i intel_ipts
modprobe -i mei_me
modprobe -i mei
modprobe -i cfg80211;
modprobe -i mwifiex;
modprobe -i mwifiex_pcie;
echo 1 > /sys/bus/pci/rescan
systemctl restart NetworkManager.service
#modprobe -i intel_ipts
#modprobe -i mei_me
#modprobe -i mei
#modprobe -i cfg80211;
#modprobe -i mwifiex;
#modprobe -i mwifiex_pcie;
#echo 1 > /sys/bus/pci/rescan
#systemctl restart NetworkManager.service
;;
esac

0 comments on commit 787756b

Please sign in to comment.