Plucky verification:

Installed package from proposed:
root@build-plucky:~# apt list powermgmt-base
powermgmt-base/plucky-proposed,now 1.38ubuntu1~25.04.1 all [installed,automatic]

Running on_ac_power and unattended upgrades while connected to power:

root@build-plucky:~# cat /sys/class/power_supply/AC/online 
1

root@build-plucky:~# on_ac_power

root@build-plucky:~# echo $?
0

root@build-plucky:~# unattended-upgrade --dry-run -v
Starting unattended upgrades script
Allowed origins are: o=Ubuntu,a=plucky, o=Ubuntu,a=plucky-security, 
o=UbuntuESMApps,a=plucky-apps-security, o=UbuntuESM,a=plucky-infra-security
Initial blacklist: 
Initial whitelist (not strict): 
No packages found that can be upgraded unattended and no pending auto-removals
The list of kept packages can't be calculated in dry-run mode.

We can see that the power state is correctly detected and that
unattended upgrades does run.

Test on battery:


root@build-plucky:~# cat /sys/class/power_supply/AC/online 
0

root@build-plucky:~# on_ac_power

root@build-plucky:~# echo $?
1

root@build-plucky:~# unattended-upgrade --dry-run -v
System is on battery power, stopping


The system correctly detects that it is running on battery and avoids running 
unattended-upgrades

** Tags removed: verification-needed-jammy verification-needed-noble 
verification-needed-plucky
** Tags added: verification-done-jammy verification-done-noble 
verification-done-plucky

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1980991

Title:
  /usr/sbin/on_ac_power incorrectly reporting ac power status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/powermgmt-base/+bug/1980991/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to