Added hibernate.sh that is needed for wifi working after booting from hibernation
This commit is contained in:
parent
17f1f2c32f
commit
fd97d2cd27
|
@ -49,7 +49,9 @@ For the ipts_firmware files, please select the version for your device.
|
|||
* v137 for the Surface Book 2 13"
|
||||
|
||||
1. Copy the files under root to where they belong:
|
||||
* $ sudo cp -R root/* /
|
||||
* $ sudo cp -R root/* /
|
||||
2. Make /lib/systemd/system-sleep/hibernate.sh as executable:
|
||||
* $ sudo chmod a+x /lib/systemd/system-sleep/hibernate.sh
|
||||
2. Extract ipts_firmware_[VERSION].zip to /lib/firmware/intel/ipts/
|
||||
* $ sudo mkdir -p /lib/firmware/intel/ipts
|
||||
* $ sudo unzip ipts_firmware_[VERSION].zip -d /lib/firmware/intel/ipts/
|
||||
|
|
21
root/lib/systemd/system-sleep/hibernate.sh
Normal file
21
root/lib/systemd/system-sleep/hibernate.sh
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
case $1/$2 in
|
||||
pre/*)
|
||||
systemctl stop NetworkManager.service
|
||||
rmmod intel_ipts
|
||||
rmmod mei_me
|
||||
rmmod mei
|
||||
rmmod mwifiex_pcie
|
||||
rmmod mwifiex
|
||||
echo 1 > /sys/bus/pci/devices/0000\:02\:00.0/reset
|
||||
;;
|
||||
post/*)
|
||||
modprobe mei
|
||||
modprobe mei_me
|
||||
echo 1 > /sys/bus/pci/devices/0000\:02\:00.0/reset
|
||||
modprobe mwifiex
|
||||
modprobe mwifiex_pcie
|
||||
systemctl start NetworkManager.service
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in a new issue