diff --git a/save.battery.sh b/save.battery.sh new file mode 100755 index 0000000..4933f38 --- /dev/null +++ b/save.battery.sh @@ -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"