onestopgerma.blogg.se

Powerchute business edition relies on systemd
Powerchute business edition relies on systemd












#Powerchute business edition relies on systemd full

Once the PC has hibernated successfully, it is common practice to switch off the UPS in order to conserve battery charge and prevent full battery drain. Make apcupsd kill UPS power once the hibernate is done # ln -s /usr/local/bin/hibernate /etc/apcupsd/remotedown If you are running apcupsd as a client to another machine running apcupsd as a server and want your machine to hibernate if the sever is shutdown or if communication to the server is lost then you may also wish to add: # ln -s /usr/local/bin/hibernate /etc/apcupsd/doshutdown The result is the apcupd's apccontrol script, in this directory, will call the hibernate script instead of doing the default shutdown action for these operations. Link the hibernate script for apcupsd to use itĬreate a symbolic link from the /etc/apcupsd directory to the script. # On resume, tell controlling script (/etc/apcupsd/apccontrol) NOT to continue with default action (i.e. # At this point system should be hibernated - when it comes back, we resume this script here

powerchute business edition relies on systemd

# interactively or from any script to cause a hibernate. # directory in case of apcupsd initiating a shutdown/reboot. # Hibernate the system - designed to be called via symlink from /etc/apcupsd To set up hibernation, see Power management/Suspend and hibernate.Ĭreate this in /usr/local/bin/hibernate as root:

powerchute business edition relies on systemd

First, make sure the system hibernates cleanly. You can make your system hibernate instead of shutting down. When everything is ok, all that is left to do is enable the apcupsd service.

  • Change TIMEOUT from 1 back to 0 in the /etc/apcupsd/nf file.
  • Observe that your Linux box powers down, in short order.
  • Change TIMEOUT from 0 to 1 in the /etc/apcupsd/nf file.
  • powerchute business edition relies on systemd

    Next, wait about a minute and confirm the daemon is running and properly monitoring the battery: The default configuration is for devices connected over a USB cable. The main configuration file for the APC UPS daemon can be found in /etc/apcupsd/nf. 5.1 The desktop environment will also sense the UPS if connected by USB cable.4.3 Make apcupsd kill UPS power once the hibernate is done.4.2 Link the hibernate script for apcupsd to use it.












    Powerchute business edition relies on systemd