Skip to content

Commit a16cce1

Browse files
committed
rtw88: Add suspend/resume file for rtw8822be.
Signed-off-by: Larry Finger <[email protected]>
1 parent 6f8589e commit a16cce1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ conflicting drivers. The correct ones are:
8888

8989
If you have other modules installed, see if you blacklisted them correctly.
9090

91+
##### Problem with recovery after sleep or hibernation
92+
Some BIOSs have trouble changing power state from D3hot to D0. If you have this problem, then
93+
94+
sudo cp suspend_rtw8822be /usr/lib/systemd/system-sleep/.
95+
96+
That script will unload the driver before sleep or hibernation, and reload it following resumption.
97+
f you have some device other than the 8822be, edit the script before copying it.
98+
9199
##### How to disable/enable a Kernel module
92100
```bash
93101
sudo modprobe -r rtw_8723de #This unloads the module

suspend_rtw8822be

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
if [ "${1}" == "pre" ]; then
3+
modprobe -rv rtw_8822be
4+
elif [ "${1}" == "post" ]; then
5+
modprobe -v rtw_8822be
6+
fi

0 commit comments

Comments
 (0)