Add scripts for all sleep mode

This commit is contained in:
gardouille 2021-04-07 15:28:08 +02:00
parent bc78b9be1b
commit 51bf2d6e82
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
3 changed files with 10 additions and 0 deletions

3
sleep.to.disk.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
sleep 2
echo disk | sudo tee /sys/power/state

3
sleep.to.freeze.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
sleep 2
echo freeze | sudo tee /sys/power/state

4
sleep.to.mem.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
sleep 2
echo deep | sudo tee /sys/power/mem_sleep
echo mem | sudo tee /sys/power/state