Disabling UPower: System Shuts Down When Power is Enabled
If you've noticed that your hardware modifications, such as a battery always indicating 0%, are causing your system to shut down at critical battery levels despite having UPower enabled, you're not alone. This article will provide a detailed explanation of the UPower system, how it works, and how to disable it to prevent your system from shutting down at critical battery levels.
What is UPower?
UPower, also known as upowerd, is a system service that provides information about power sources and power usage in your system. It is used by various applications, such as the GNOME power manager, to display power information and perform power management tasks. UPower can also be used to suspend or hibernate your system when the battery level is low.
How Does UPower Work?
UPower works by querying power sources, such as batteries, and collecting information about their current state, such as the current charge level, the voltage, and the capacity. This information is then used to calculate the estimated time remaining until the battery is empty and to perform power management tasks, such as suspending or hibernating the system when the battery level is low.
Disabling UPower
If you've noticed that your system is shutting down at critical battery levels despite having UPower enabled, you may want to disable UPower to prevent this from happening. To disable UPower, you can use the following steps:
- Open a terminal window.
- Type the following command to stop the UPower service:
sudo systemctl stop upower.service - Type the following command to disable the UPower service:
sudo systemctl disable upower.service
After disabling UPower, your system will no longer shut down at critical battery levels. However, you will also lose the ability to view power information and perform power management tasks using UPower-based applications.
References
Type: Online Resource
Title: UPower - ArchWiki
Type: Online Resource
Title: upowerd - Ubuntu Manpage
URL: https://manpages.ubuntu.com/manpages/focal/en/man8/upowerd.8.html
--endarticle--