#shutdown #automatic #power-management #platform #suspend #cross-platform #manual

insomnia

A library for inhibiting automatic power management on multiple platforms

3 releases

0.1.0 Dec 9, 2021
0.1.0-alpha2 Jan 13, 2021
0.1.0-alpha1 May 9, 2020

#6 in #suspend

MIT/Apache

12KB
222 lines

insomnia

Documentation Crates.io License

This library provides a cross-platform interface for inhibiting power management operations.

Features

Platform Automatic suspend Manual suspend Manual shutdown Screen Sleep
Linux (via systemd-logind)
Windows

Dependencies

~0.6–2MB
~43K SLoC