#nosleep #caffeine #powersave

nosleep-windows

Block power save mode cross platform

5 releases

0.2.1 Nov 20, 2022
0.2.0 May 8, 2022
0.2.0-rc.2 May 7, 2022
0.2.0-rc.1 May 4, 2022

#3 in #nosleep

Download history 22/week @ 2024-03-12 11/week @ 2024-03-19 12/week @ 2024-03-26 32/week @ 2024-04-02 18/week @ 2024-04-09 6/week @ 2024-04-16 14/week @ 2024-04-23 4/week @ 2024-04-30 1/week @ 2024-05-07 7/week @ 2024-05-14 11/week @ 2024-05-21 14/week @ 2024-05-28 15/week @ 2024-06-04 28/week @ 2024-06-11 16/week @ 2024-06-18 10/week @ 2024-06-25

72 downloads per month
Used in 2 crates (via nosleep)

MIT license

10KB
147 lines

nosleep-window

Windows library to block the power save function and preventing the OS to sleep.


lib.rs:

Thin wrapper utility that provides utility methods to block and unblock the Windows power save mode

Inspired on the Chromium source code https://chromium.googlesource.com/chromium/src/+/87cd0848a0d1453e7553a72b0686d42fabf8ff3a/device/power_save_blocker/power_save_blocker_win.cc

Dependencies

~131MB
~2M SLoC