[SOLVED]How to fix the auto-update problem on RockPro64?

Problem Description
On my RockPro64 auto-update fails.
Steps to Reproduce

  1. Log in to FreedomBox.
  2. Go to System/Software Update
  3. Click to enable auto-updates

Expected Results
System updates automatically.

Actual results
System does not update automatically.

The logs show this error three times daily:
2023-12-13 12:04:06,392 WARNING System is on battery power, stopping


  • FreedomBox version 23.21
  • Hardware: RockPro64

According to:

the problem is due to this file
cat /sys/class/power_supply/tcpm-source-psy-4-0022/online
containing a zero (mine does) rather than a one.

So I naively tried to correct this by editing the file and replacing 0 with 1, but even with sudo, I can’t save the file. I’m sure there’s a very good reason for this.

Is there any way to fix this?


A work-around is to remove the powermgmt-base package:

$ sudo apt remove powermgmt-base

By removing this package, it will no longer try to check if the system is on battery power.

Thank you very much, jvalleroy!

The package is now removed. I will watch the log file for a few days and report the results.

Is it off-topic to ask where the file comes from, and if there is some place I can politely pester folks to correct the error?

Update. It appears to have worked. The log is different anyhow. Please see below. (In case it helps: The system was already up-to-date.)

Thank you again!

2023-12-14 06:00:49,279 WARNING System is on battery power, stopping
2023-12-14 17:17:37,080 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2023-12-14 17:17:37,101 INFO Starting unattended upgrades script
2023-12-14 17:17:37,103 INFO Allowed origins are: origin=Debian,codename=bookworm,label=Debian, origin=Debian,codename=bookworm,label=Debian-Security, origin=Debian,codename=bookworm-security,label=Debian-Security, o=Debian Backports,n=bookworm-backports,l=Debian Backports
2023-12-14 17:17:37,105 INFO Initial blacklist:
2023-12-14 17:17:37,105 INFO Initial whitelist (not strict):