Script to keep the minimum services to save power

This commit is contained in:
Jeremy Gardais 2019-12-03 18:04:12 +01:00
parent 75855a169d
commit 868b4f2f13
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 11 additions and 0 deletions

11
save.battery.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
# Stop some services
sudo systemctl stop cups.service
sudo systemctl stop lxcfs.service
sudo systemctl stop netdata.service
sudo systemctl stop smartd.service
sudo systemctl stop ssh.service
# Set a correct brightness
sudo sh -c "echo 1000 > /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight/brightness"