diff options
author | shinji | 2023-04-12 20:02:24 +0800 |
---|---|---|
committer | shinji | 2023-04-12 20:02:24 +0800 |
commit | 09322142e406bae461852a93221884dd570c3bdf (patch) | |
tree | 6a15456b42c9d51790b629bc330172fa99fd2965 /conservation_mode.sh | |
parent | 9b4fbe1f89dbb94099cd1646db5c990aa3755073 (diff) | |
download | aur-09322142e406bae461852a93221884dd570c3bdf.tar.gz |
add a script to temporarily disable conservation_mode
Diffstat (limited to 'conservation_mode.sh')
-rw-r--r-- | conservation_mode.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/conservation_mode.sh b/conservation_mode.sh new file mode 100644 index 000000000000..cd7d0456acf1 --- /dev/null +++ b/conservation_mode.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ $EUID -ne 0 ]; then echo pls run with root user && exit 127; fi + +if [ $# -eq 0 ]; then /usr/bin/tee /sys/bus/platform/drivers/ideapad_acpi/VPC2004\:00/conservation_mode <<< 1 && exit 0; fi + +/usr/bin/tee /sys/bus/platform/drivers/ideapad_acpi/VPC2004\:00/conservation_mode <<< 0
\ No newline at end of file |