Well, if it's any help:

The status of powermgmt-base is:
    oracular has 1.37+nmu1ubuntu1
    plucky has 1.38 

The /usr/sbin/on_ac_power script is identical in each of these.
And, although the debug trace is slightly different to that in #35, it still 
produces the WRONG RESULT on a system with no battery.
==========
[nuc]: sh -x /usr/sbin/on_ac_power
+ set -e
+ OFF_LINE_P=no
+ USB_IS_SINK=no
+ USB_IS_SOURCE=no
+ power_type=Mains
+ [ -d /sys/class/typec/ ]
+ test -d /sys/class/typec/port0
+ test -r /sys/class/typec/port0/power_role
+ cat /sys/class/typec/port0/power_role
+ power_role=source [sink]
+ echo source [sink]
+ grep -q \[source\]
+ echo source [sink]
+ grep -q \[sink\]
+ USB_IS_SINK=yes
+ [ yes = yes ]
+ power_type=USB*
+ [ -d /sys/class/power_supply/ ]
+ test -d /sys/class/power_supply/tps6598x-source-psy-i2c-INT3515:02-tps6598x.0
+ test -r 
/sys/class/power_supply/tps6598x-source-psy-i2c-INT3515:02-tps6598x.0/type
+ cat /sys/class/power_supply/tps6598x-source-psy-i2c-INT3515:02-tps6598x.0/type
+ type=USB
+ [ -r 
/sys/class/power_supply/tps6598x-source-psy-i2c-INT3515:02-tps6598x.0/online ]
+ cat 
/sys/class/power_supply/tps6598x-source-psy-i2c-INT3515:02-tps6598x.0/online
+ online=0
+ [ 0 = 1 ]
+ [ 0 = 0 ]
+ OFF_LINE_P=yes
+ [ yes = yes ]
+ exit 1
==========

So it is NOT fixed in 1.38. Nor anywhere else that I can see.

-- 
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