From 51bf2d6e821c4aac74f33a9936b9dac0b2fdfb34 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 7 Apr 2021 15:28:08 +0200 Subject: [PATCH] Add scripts for all sleep mode --- sleep.to.disk.sh | 3 +++ sleep.to.freeze.sh | 3 +++ sleep.to.mem.sh | 4 ++++ 3 files changed, 10 insertions(+) create mode 100755 sleep.to.disk.sh create mode 100755 sleep.to.freeze.sh create mode 100755 sleep.to.mem.sh diff --git a/sleep.to.disk.sh b/sleep.to.disk.sh new file mode 100755 index 0000000..3ec06b8 --- /dev/null +++ b/sleep.to.disk.sh @@ -0,0 +1,3 @@ +#!/bin/sh +sleep 2 +echo disk | sudo tee /sys/power/state diff --git a/sleep.to.freeze.sh b/sleep.to.freeze.sh new file mode 100755 index 0000000..7735eab --- /dev/null +++ b/sleep.to.freeze.sh @@ -0,0 +1,3 @@ +#!/bin/sh +sleep 2 +echo freeze | sudo tee /sys/power/state diff --git a/sleep.to.mem.sh b/sleep.to.mem.sh new file mode 100755 index 0000000..c1fd2ab --- /dev/null +++ b/sleep.to.mem.sh @@ -0,0 +1,4 @@ +#!/bin/sh +sleep 2 +echo deep | sudo tee /sys/power/mem_sleep +echo mem | sudo tee /sys/power/state