Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 1.66 KB

README.md

File metadata and controls

50 lines (39 loc) · 1.66 KB

Auto shutdown and wake up daemon for desktop usage

What it does

It install and configure, shutdown & wakeup services, to automatically boot and halt your PC.

The config file /etc/default/pc-power-scheduler let your choice between different options

  • Enable / Disable actions
  • The method you want to use for the halt process => [ shutdown, suspend, hibernate ]
  • Which day you want to enable the automatic shutdown
  • Specify the time you want to shutdown up your computer
  • Specify the time you want to wake up your computer

pc-power-scheduler.service => manage shutdown & wakeup services
pc-power-scheduler.path => monitoring change on /etc/default/pc-power-scheduler and exec nedded actions
shutdown.service => notify and exec shutdown process
shutdown.timer => trigg shutdown service define in the config file
wakeup.service => set the wakeup time define in the config file

How to install it

Download the latest release

sudo apt install ./pc-power-s#cheduler.deb

Dev / test

Build manually the package

dpkg-deb --build pc-power-scheduler

Trigg the shutdown manually

shutdown-popup

Get the wakeup time set

$ date --date "@$(cat /sys/class/rtc/rtc0/wakealarm)"
Friday 3 March 2023, 07:00:00 (UTC+0100)

Get the shutdown time set

$ systemctl list-timers shutdown.timer
NEXT                        LEFT    LAST PASSED UNIT           ACTIVATES       
Thu 2023-03-02 19:30:00 CET 9h left n/a  n/a    shutdown.timer shutdown.service

1 timers listed.