raspiblitz icon indicating copy to clipboard operation
raspiblitz copied to clipboard

[Laptop] Use Battery als UPS

Open rootzoll opened this issue 11 months ago • 1 comments

When running on an old laptop with a battery ... add monitoring of power situation.

If power goes out either shutdown gracefully (on battery power) or if run-way time is available power down when <30min available. Check if it makes sense to combine this with existing UPS script.

rootzoll avatar Jan 20 '25 10:01 rootzoll

You can use tools like upssched if you are using NUT (Network UPS Tools) to schedule shutdowns based on battery status. For example, you can configure it to trigger a shutdown after a certain duration of being on battery.

Example configuration in upssched.conf:

AT ONBATT * START-TIMER shutdown_onbatt 240
AT ONLINE * CANCEL-TIMER shutdown_onbatt

When comparing NUT (Network UPS Tools) and APCUPSD for managing UPS (Uninterruptible Power Supply) systems, there are several key differences to consider, including compatibility, functionality, configuration complexity, and network capabilities.

Compatibility

  • NUT: Supports a wide variety of UPS brands and models, making it a versatile choice for environments with mixed hardware. It can manage multiple UPS devices simultaneously and is designed to work in both standalone and networked configurations.

  • APCUPSD: Primarily designed for APC-branded UPS devices. While it can handle various APC models effectively, it lacks the broad compatibility of NUT with other brands.

Functionality

  • NUT: Offers advanced features such as network monitoring, allowing multiple machines to connect to a single UPS. It can manage shutdowns across a network of devices, which is beneficial for server environments. NUT operates with a client-server architecture where one machine (the master) manages the UPS and communicates with other machines (slaves) to coordinate shutdowns.

  • APCUPSD: Focuses on providing essential UPS management features specifically for APC devices. It includes functionalities like notifying users during power failures and performing shutdowns based on battery status. However, it does not support the same level of networked functionality as NUT.

Configuration Complexity

  • NUT: Requires multiple configuration files (such as nut.conf, ups.conf, upsmon.conf, etc.), which can be complex for new users. However, this complexity allows for greater customization and control over how the UPS is monitored and managed.

  • APCUPSD: Generally simpler to configure since it uses a single configuration file (apcupsd.conf). This can make it easier for users who only need basic functionality without extensive customization.

Network Capabilities

  • NUT: Excels in network environments. It allows for detailed monitoring and management of multiple UPS systems from various locations. This is particularly useful in data centers or setups with several servers needing coordinated shutdowns.

  • APCUPSD: Offers limited networking capabilities primarily focused on APC devices. It can serve status information over a network but does not provide the same level of multi-device management as NUT.

User Experience and Community Support

  • Both tools have active communities and documentation, but NUT's broader compatibility means it often has more diverse user experiences shared across different setups. APCUPSD users might find more focused support related specifically to APC hardware.

In summary, if you are managing a mixed environment with various UPS brands or require advanced networking features, NUT is likely the better choice. Conversely, if you are using APC hardware exclusively and prefer a simpler setup process, APCUPSD may suffice.

geco91 avatar Jan 22 '25 22:01 geco91