sleepd

puts an inactive or low battery laptop to sleep

Install

All systems
curl cmd.cat/sleepd.sh
Debian Debian
apt-get install sleepd
image/svg+xml Kali Linux
apt-get install sleepd
Raspbian
apt-get install sleepd

sleepd

puts an inactive or low battery laptop to sleep

This is a daemon to put a laptop to sleep if it is not being used or if the battery is low. It supports UPower, APM, and ACPI, although external programs must be used to actually put the system to sleep.