New answers tagged battery
The currently accepted answer is great, but a little bit outdated for Ubuntu 16.04: The commands to get battery status have changed. The environment variables required for notify-send to work have changed. The script given there no longer works from user cron as hibernate requires root. systemctl hibernate is preferred over pm-hibernate. So, here is ...
Top 50 recent answers are included