scripts/save.battery.sh

12 lines
341 B
Bash
Raw Normal View History

#!/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
2019-12-23 09:45:37 +01:00
sudo sh -c "echo 400 > /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight/brightness"