Article 6J0ZH Disabling Critical Action in upower.conf?

Disabling Critical Action in upower.conf?

by
jakfish
from LinuxQuestions.org on (#6J0ZH)
Background: Manjaro/xfce/One Netbook A1. Battery life is fine, but buggy construction means it can't be calibrated. So when battery percentage reaches 0%, machine automatically shuts down despite an hour of remaining charge.

upower, despite many user pleas, does not have an option in /etc/upower/upower.conf to choose "Null" or "Do Nothing" or "Take No Action" when "CriticalPowerAction" is reached. The only options are:

Code:PowerOff
Hibernate
HybridSleepStopping and masking upower in terminal does not prevent a shutdown at 0%

Some users have suggested changing the default Code:PercentageAction=10 to Code:PercentageAction=0 which has a limited effect--the machine will stay up at 0% for several minutes, then shut down.

In a bug report https://gitlab.freedesktop.org/upowe...er/-/issues/41 a user's workaround was to play with the UP_DAEMON_ACTION_DELAY

I can't find UP_DAEMON_ACTION_DELAY and was wondering if a veteran here could walk me through its discovery and its handle-jiggling. EDIT: I believe this command is in the kernel config.

If so, and other than recompiling the kernel, is there another option (xfce will not allow the removal of upower).

It's very strange that an automatic shutdown is so beyond user control.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments