--
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/ubun
I have posted a new MR with the requested changes.
Let me know how it looks like!
** Changed in: powermgmt-base (Ubuntu Oracular)
Status: Fix Released => In Progress
** Changed in: powermgmt-base (Ubuntu Noble)
Status: Incomplete => In Progress
** Changed in: powermgmt-base (Ubunt
** Merge proposal linked:
https://code.launchpad.net/~ghadi-rahme/ubuntu/+source/powermgmt-base/+git/powermgmt-base/+merge/482635
--
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:
/us
> @ahasenack I can modify unattended upgrades to utilize systemd-ac-power, but
> this will also require me to
> backport any missing systemd-ac-power patches to it to make sure the script
> covers as many scenarios as
> possible.
I rather have to SRU powermgmt-base for a on-power-detection is
** Changed in: powermgmt-base (Debian)
Status: New => Fix Released
--
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
Interesting, on newer releases it's located in /bin and /usr/bin which
explains why I missed it.
@ahasenack I can modify unattended upgrades to utilize systemd-ac-power,
but this will also require me to backport any missing systemd-ac-power
patches to it to make sure the script covers as many scen
Focal and Jammy (and Bionic) have /lib/systemd/systemd-ac-power:
# echo "$(grep VERSION= /etc/os-release) $(dpkg -S systemd-ac-power)"
VERSION="20.04.6 LTS (Focal Fossa)" systemd: /lib/systemd/systemd-ac-power
# echo "$(grep VERSION= /etc/os-release) $(dpkg -S systemd-ac-power)"
VERSION="22.04.3
Not necessarily because not all systems might expose their battery
through their ACPI table.
The reason there are so many checks is because not all systems have
their firmware expose their components to the kernel.
--
You received this bug notification because you are a member of Ubuntu
Bugs, wh
Would it not be simpler to assume that on_ac_power is True unless you
can find a working battery?
--
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 repor
Hello @ahasenack,
Using systemd-ac-power is only an option on noble and later releases
since it is not available in earlier releases of systemd. So jammy and
focal would not be able to make use of it.
This is the main reason I put time on getting the current script to
work.
Another solution for
>>> Question to the reporter: does systemd-ac-power work correctly in
the system you have where unpatched on_ac_power is incorrect?
Yes. See #7, where I suggested this (once the systemd version was
fixed).
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is su
This is all very confusing. And making a mistake here can have
drastic consequences, as was mentioned: unattended-upgrades can stop
applying security updates.
I wonder if we wouldn't be in a better shape if we switched unattended-
upgrades to use systemd-ac-power. That seems to be at least mai
[ganuc]: SYSTEMD_LOG_LEVEL=debug systemd-ac-power
port0: The USB type-C port is in power sink mode.
port1: The USB type-C port is in power sink mode.
ucsi-source-psy-USBC000:001: The USB type-C device has at least one port in
power sink mode.
ucsi-source-psy-USBC000:001: The power supply is curren
I will make sure to update the on_ac_power script to fulfill such
scenarios similar to systemd ;)
I am just waiting for feedback from @racb first before working on it.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launc
From the definition of the TI documentation page 3:
- A sink is a port that when attached consumes power from VBUS and a
sink is most often a device. A sink could include USB peripherals such
as a USB powered light or fan.
- A source is a port that when attached provides power over VBUS. Common
s
All of my Intel NUcs report the type-C port being in sink mode.
None of them can be powered by a USB-C port.
Even plugging in an external drive leaves the system reporting them all
in sink mode.
According to https://www.ti.com/lit/wp/slyy109b/slyy109b.pdf that is correct.
A sink is a port that wi
Interesting, when fixing the script I relied on the mode the USB ports
are in (which they should always be in source mode for a desktop machine
but apparently each vendor does things differently).
The USB port being in sink mode means that it is configured to power the
system and not power periphe
Invert the logic?
Perhaps just look for any /sys/class/power_supply/BAT?/current_now that is
non-zero?
If any found, it's running on battery.
Else it must be on a mains-supply.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://
Thank you for the report @gordon-lack.
Could you run the systemd-ac-power command with SYSTEMD_LOG_LEVEL=debug?
$ SYSTEMD_LOG_LEVEL=debug systemd-ac-power
And share the logs printed on screen.
Thanks!
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subs
This is noted as Fix Released in Oracular.
This is INCORRECT. This command is STILL BROKEN in Oracular.
This is the result of running it on one of my Intel NUCs (which, I can
assure you, is *always* on AC power, as it has no battery).
[ganuc]: sh -x /usr/sbin/on_ac_power
+ set -e
+ OFF_LINE_P=
> 1. > There are spurious development artifacts being added
> I have looked through the debdiffs and couldn't find such, are you
referring to the "Maintainer" and "XSBC-Original-Maintainer" section
maybe?
Not the debdiffs, the actual upload. For example, from the Rejected
queue, http://launchpadl
** Description changed:
Thank you @kevintate for the original bug report.
[Impact]
Currently there is an issue with the ac_on_power script where it thinks that
USB-c ports with devices plugged in to them are plugged in to power. This is
because the script does not check first if thes
Hello Robie,
Thank you for reviewing this!
I will update the test plan methodology to cover unattended upgrades
and/or any other application that makes use of the script.
1. > There are spurious development artifacts being added
I have looked through the debdiffs and couldn't find such, are you
Thank you for working on this!
SRU review
> Currently there is an issue with the ac_on_power script where it
thinks that USB-c ports with devices plugged in to them are plugged in
to power.
This isn't a statement of user impact, making it difficult to understand
how changing the stable releases
** Merge proposal linked:
https://code.launchpad.net/~dgadomski/ubuntu/+source/powermgmt-base/+git/powermgmt-base/+merge/471623
--
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/
** Description changed:
+ Thank you @kevintate for the original bug report.
+
+ [Impact]
+
+ Currently there is an issue with the ac_on_power script where it thinks that
USB-c ports with devices plugged in to them are plugged in to power. This is
because the script does not check first if thes
** Patch added: "jammy-powermgmt.debdiff"
https://bugs.launchpad.net/debian/+source/powermgmt-base/+bug/1980991/+attachment/5805233/+files/jammy-powermgmt.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchp
** Patch added: "focal-powermgmt.debdiff"
https://bugs.launchpad.net/debian/+source/powermgmt-base/+bug/1980991/+attachment/5805232/+files/focal-powermgmt.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchp
Hello,
Uploaded are the focal, jammy and noble patch respectively.
Regards,
Ghadi
--
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
** Patch added: "noble-powermgmt.debdiff"
https://bugs.launchpad.net/debian/+source/powermgmt-base/+bug/1980991/+attachment/5805234/+files/noble-powermgmt.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchp
This bug was fixed in the package powermgmt-base - 1.37+nmu1ubuntu1
---
powermgmt-base (1.37+nmu1ubuntu1) oracular; urgency=medium
* Fix on_ac_power incorrectly reporting AC state on some
machines with USB type-C ports (LP: #1980991).
-- Ghadi Elie Rahme Tue, 30 Jul 2024
16:
** Changed in: powermgmt-base (Debian)
Status: Unknown => New
--
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 mana
** Bug watch added: Debian Bug tracker #1025141
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025141
** Also affects: powermgmt-base (Debian) via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025141
Importance: Unknown
Status: Unknown
--
You received this bug notificati
Ubuntu 23.10 (Mantic Minotaur) has reached end of life, so this bug will
not be fixed for that specific release.
** Changed in: powermgmt-base (Ubuntu Mantic)
Status: Confirmed => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed
Unsubscribung ubuntu-sponsors since sponsorship is already handled in
the attached MP https://code.launchpad.net/~ghadi-
rahme/ubuntu/+source/powermgmt-base/+git/powermgmt-base/+merge/466231
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubun
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: powermgmt-base (Ubuntu Noble)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1980991
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: powermgmt-base (Ubuntu Mantic)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/198099
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: powermgmt-base (Ubuntu Jammy)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1980991
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: powermgmt-base (Ubuntu Focal)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1980991
** Also affects: powermgmt-base (Ubuntu Focal)
Importance: Undecided
Status: New
** Also affects: powermgmt-base (Ubuntu Oracular)
Importance: High
Status: Triaged
** Also affects: powermgmt-base (Ubuntu Mantic)
Importance: Undecided
Status: New
** Also affects: pow
I have the same problem in 22.04. Is it so difficult to fix it?
--
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 no
41 matches
Mail list logo