Launchpad has imported 7 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=45321.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2012-01-27T10:27:06+00:00 Jking+freedesktop wrote:

On my new Sony VAIO laptop UPower is not sending line_power_AC events.
When the AC power is disconnected, I get events (monitored using upower
-m) for the battery, but not for line_power_ac. This results in the
system thinking it is still plugged in.

I tested on my other Linux system, and disconnecting/reconnecting the
AC power supply results in line_power_ac events.

Interestingly, on_ac_power (from pm-utils) correctly reports the AC
power status for both connected and disconnected states.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/994745/comments/0

------------------------------------------------------------------------
On 2012-01-27T11:51:06+00:00 Jking+freedesktop wrote:

It would appear as though upowerd isn't updating the line AC power's
online status, ever. Here's the (edited) output of upower -d:


Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          
/sys/devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/AC
  power supply:         yes
  updated:              Fri Jan 27 12:31:41 2012 (4590 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             yes

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0
  vendor:               Sony Corp.
  model:                VGP-BPS26
  serial:               59
  power supply:         yes
  updated:              Fri Jan 27 13:42:36 2012 (335 seconds ago)

The "updated" value for line_power_AC is equal to my system's uptime; it
hasn't been updated since it was first checked. The 335 seconds since
the battery update roughly corresponds to the last time I unplugged the
AC power supply.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/994745/comments/1

------------------------------------------------------------------------
On 2012-01-27T12:33:01+00:00 Jking+freedesktop wrote:

Upon further investigation, it would appear that the kernel is not
producing uevents for the AC power device, though the kernel is
producing events for the battery. This is a kernel bug, it would appear.

However, I wonder if it would be possible to have upowerd explicitly
check the line_power devices when a battery state change occurs, since
the sysfs interface does correctly report the connected status of the AC
adapter.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/994745/comments/2

------------------------------------------------------------------------
On 2012-01-28T09:25:57+00:00 Jking+freedesktop wrote:

The end result of all this is that upowerd gets confused and never sets
the "on battery" state.

However, if the system is booted from battery and AC is plugged in after
upower is running, the system gets the state right. What's also
interesting is that, if the system is booted from battery, the kernel
sends backlight events, and it doesn't if the system is booted with AC
connected. In either case (plugged or unplugged boot) the kernel doesn't
appear to be sending AC supply events.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/994745/comments/3

------------------------------------------------------------------------
On 2012-04-03T04:49:24+00:00 Alexander Mezin wrote:

I have HP Pavilion dv6-6179er and it seems that I'm affected by this bug too.
However, I found a workaround:
I rebuilt kernel with ACPI_PROCFS_POWER=y ("Deprecated power /proc/acpi 
directories") and noticed that if I do "cat /proc/acpi/ac_adapter/AC/state" 
then state of the adapter becomes correct in kde, upower's output, etc.

I added a file to /etc/acpi/events/ with following contents:
event=battery
action=cat /proc/acpi/ac_adapter/AC/state > /dev/null

After restarting acpid everything works. The only problem is that 
ACPI_PROCFS_POWER is deprecated. I hope this bug will be fixed before
the option will be removed.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/994745/comments/4

------------------------------------------------------------------------
On 2013-02-07T09:07:24+00:00 Bugzilla-b wrote:

On my Sony Vaio VPCS11V9E, i'm affected of this bug too. As mentioned before i 
can get the status of the ac-adapter correctly from sysfs by reading
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/AC/online or 
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/AC/uevent.

The uevent-file looks good, so i don't think the kernel is missing to
export this events. Although upower -d shows me the following:

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/AC
  power supply:         yes
  updated:              Thu Feb  7 09:45:39 2013 (723 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             yes

The status isn't updated ever so the state of the ac-adapter is always the 
state it had on boot.
upower -m shows events for the Battery (charging/discharging) but not for the 
ac-adapter.
The workaround mentioned by Alexander Mezin doesn't work for me. 
/proc/acpi/ac_adapter/AC/state contains the correct state, but reading the file 
does not affect upower in any way.

I'm on ArchLinux using upower 0.9.19 with Kernel 3.7.6. If you need more
information, just tell me.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/994745/comments/11

------------------------------------------------------------------------
On 2013-02-08T17:14:29+00:00 Stefan Nagy wrote:

Multiple users of the HP Folio 13 ultrabook are affected by this bug on
Ubuntu, I'm seeing it on Debian Wheezy. I'm adding the URLs to the
downstream bug reports.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/994745/comments/13


** Changed in: upower
       Status: Unknown => Confirmed

** Changed in: upower
   Importance: Unknown => High

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to upower in Ubuntu.
https://bugs.launchpad.net/bugs/994745

Title:
  Power indicator fails to recognise unplug

Status in Upower:
  Confirmed
Status in “upower” package in Ubuntu:
  Confirmed
Status in “upower” package in Debian:
  Unknown

Bug description:
  Upon unplugging the power on HP Folio 13 running Precise the power indicator 
fails to recognise the unplug. 
  The charging laptop symbol remains. Power-statistics also becomes 
unresponsive/empty of data.

  Powertop recognises the unplug, but Jupiter which I have installed
  does not.

  If I suspend and resume or restart, the fact that I am on battery
  power is once again recognised.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: indicator-power 2.0-0ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-24.38-generic 3.2.16
  Uname: Linux 3.2.0-24-generic x86_64
  ApportVersion: 2.0.1-0ubuntu7
  Architecture: amd64
  Date: Fri May  4 11:00:11 2012
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
  ProcEnviron:
   LANGUAGE=en_CA:en
   TERM=xterm
   PATH=(custom, user)
   LANG=en_CA.UTF-8
   SHELL=/bin/bash
  SourcePackage: indicator-power
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/upower/+bug/994745/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to