How to Fix Failed to Start Daemon for Power Management in Ubuntu

Powering on an Ubuntu laptop or workstation only to observe a startup warning stating Failed to start Daemon for Power Management (or checking systemd status and finding upower.service: Failed with result 'exit-code') disables battery percentage monitoring, lid sleep events, and power-profile switching. The upowerd daemon is a fundamental middleware service that enumerates power supply hardware, monitors ACPI battery levels, calculates remaining charge times, and coordinates idle power-saving states with desktop display managers. When this daemon crashes, GNOME and KDE desktop panels fail to display battery status indicators, laptops fail to suspend when closing the lid, and power statistics utilities fail. This failure typically stems from corrupted device history logs in /var/lib/upower, missing D-Bus IPC policies, or outdated kernel ACPI drivers. Resetting UPower databases and reinstalling package files restores power management.

Query Detailed Service Error Logs Using Systemctl and Journalctl

Reading systemd journal messages reveals whether UPower failed due to a D-Bus connection error or an invalid ACPI sysfs battery attribute.

  1. Open a terminal shell or log in via SSH.
  2. Query the current unit status and recent exit codes:
    systemctl status upower.service
  3. Read the detailed systemd journal diagnostics:
    journalctl -xeu upower.service
  4. Look for specific error messages such as Could not acquire bus name ‘org.freedesktop.UPower’ or Error opening history directory.
  5. Verify that the primary D-Bus system broker is actively running:
    systemctl is-active dbus

Purge Corrupted UPower Battery History and Database Files

Accumulated battery telemetry records stored in SQLite files inside /var/lib/upower can become corrupted, causing the daemon parser to crash upon boot.

  1. Stop any partially active UPower processes:
    sudo systemctl stop upower
  2. Navigate to the UPower database directory and remove corrupted history logs:
    sudo rm -rf /var/lib/upower/history*
  3. Verify and fix filesystem permissions on the directory:
    sudo chown -R root:root /var/lib/upower && sudo chmod 755 /var/lib/upower
  4. Start the UPower service:
    sudo systemctl start upower
  5. Confirm that the unit transitions to active (running):
    systemctl status upower

Reinstall the UPower Package and Test Battery Enumeration

Restoring default configuration files and D-Bus policies repairs damaged systemd unit files.

  1. Reinstall the upower daemon and its associated shared libraries:
    sudo apt update && sudo apt install --reinstall upower libupower-glib3
  2. Reload the systemd daemon manager configuration:
    sudo systemctl daemon-reload
  3. Enable and restart the service:
    sudo systemctl enable --now upower
  4. Verify hardware battery detection by running the command-line utility:
    upower -e
  5. Display detailed power supply statistics to confirm normal operation:
    upower -i $(upower -e | grep 'BAT')

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.