Add stuff about power things
Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
parent
c84cdad376
commit
57b63a1e0e
3 changed files with 34 additions and 0 deletions
12
enter-powersave.sh
Normal file
12
enter-powersave.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
sed -i "s/TLP_ENABLE=0/TLP_ENABLE=1/" /etc/tlp.conf
|
||||
tlp start
|
||||
|
||||
systemctl unmask thermald.service
|
||||
systemctl enable thermald.service
|
||||
systemctl start thermald.service
|
||||
|
||||
systemctl stop lenovo_fix.service
|
||||
systemctl disable lenovo_fix.service
|
||||
|
11
leave-powersave.sh
Normal file
11
leave-powersave.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
sed -i "s/TLP_ENABLE=1/TLP_ENABLE=0/" /etc/tlp.conf
|
||||
echo "TLP disabled, restart required to take effect"
|
||||
|
||||
systemctl stop thermald.service
|
||||
systemctl disable thermald.service
|
||||
systemctl mask thermald.service
|
||||
|
||||
systemctl enable lenovo_fix.service
|
||||
systemctl start lenovo_fix.service
|
11
throttled.md
Normal file
11
throttled.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# [Throttled](https://github.com/erpalma/throttled)
|
||||
|
||||
2021-05-03
|
||||
|
||||
1. `sudo apt install git build-essential python3-dev libdbus-glib-1-dev libgirepository1.0-dev libcairo2-dev python3-venv python3-wheel`
|
||||
2. `git clone https://github.com/erpalma/throttled.git`
|
||||
4. `sudo ./throttled/install.sh`
|
||||
|
||||
Also installed: tlp (`sudo apt install tlp`)
|
||||
|
||||
See `enter-powersave.sh` and `leave-powersave.sh`
|
Loading…
Add table
Add a link
Reference in a new issue