-
Notifications
You must be signed in to change notification settings - Fork 0
/
~null.md~
35 lines (23 loc) · 837 Bytes
/
~null.md~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
**Warning: step 4 is risky (if anything goes wrong, you'll have a dead motherboard in worst cases). Do not do these steps unless hibernation feature is vital for you**
> Assuming you already have set up a swap partition >=RAM while setting up Fedora
1. `/etc/UPower/UPower.conf`
```
CriticalPowerAction=Hibernate
```
2. replace the contents of `/usr/lib/systemd/system-sleep/nvidia` with
```
#!/bin/bash
case $1/$2 in
pre/*)
# echo "Going to $2..."
/usr/bin/echo "0" > /sys/class/vtconsole/vtcon0/bind
/usr/sbin/rmmod nouveau
;;
post/*)
# echo "Waking up from $2..."
/usr/sbin/modprobe nouveau
/usr/bin/echo "1" > /sys/class/vtconsole/vtcon0/bind
;;
esac
```
3. [RISKY STEP] Use https://github.com/DavidS95/Smokeless_UMAF and set Modern Standby Type to `<Modern Standby + s0i2+ s0i3>`