[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2011-05-06 Thread Launchpad Bug Tracker
This bug was fixed in the package upower - 0.9.10-1

---
upower (0.9.10-1) unstable; urgency=low

  * New upstream release:
- Fix unknown battery status guessing to not be recursive. (LP: #384304)
  * debian/control: Drop obsolete devicekit-power-* Conflicts/Replaces.
 -- Ubuntu Archive Auto-Sync arch...@ubuntu.com   Fri,  06 May 2011 09:25:21 
+

** Changed in: upower (Ubuntu)
   Status: Fix Committed = 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/384304

Title:
  devicekit-power fails to realize I'm on battery after AC disconnect

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2011-04-26 Thread Bug Watch Updater
** Changed in: devicekit-power
   Status: In Progress = 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/384304

Title:
  devicekit-power fails to realize I'm on battery after AC disconnect

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2011-04-26 Thread Martin Pitt
I just pushed the fix for this to upstream master.

** Package changed: devicekit-power (Ubuntu) = upower (Ubuntu)

** Changed in: upower (Ubuntu)
   Status: Triaged = Fix Committed

** Changed in: upower (Ubuntu)
 Assignee: (unassigned) = Martin Pitt (pitti)

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

Title:
  devicekit-power fails to realize I'm on battery after AC disconnect

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2011-03-28 Thread Bug Watch Updater
** Changed in: devicekit-power
   Status: Confirmed = In Progress

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

Title:
  devicekit-power fails to realize I'm on battery after AC disconnect

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2011-02-05 Thread Bug Watch Updater
** Changed in: devicekit-power
   Importance: Unknown = Medium

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

Title:
  devicekit-power fails to realize I'm on battery after AC disconnect

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2011-01-25 Thread Bug Watch Updater
** Changed in: devicekit-power
   Importance: Medium = Unknown

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

Title:
  devicekit-power fails to realize I'm on battery after AC disconnect

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2011-01-25 Thread mzc
@ Martin afik this bug is closed. I cannot reproduce it anymore
On Mar 10, 2010 10:01 AM, Martin Pitt martin.p...@ubuntu.com wrote:

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

Title:
  devicekit-power fails to realize I'm on battery after AC disconnect

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2010-06-10 Thread David Futcher
** Tags added: patch-forwarded-upstream

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2010-03-10 Thread tekstr1der
Should we still be following this old bug for lucid now that upower is
being used? Is there a new bug filed against upower for this issue? I
can't seem to find one.

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2010-03-10 Thread mzc
I think it would be better if we a new bug report since upower is
different from devkit


On Mar 10, 2010, at 8:35 AM, tekstr1der m.meledan...@gmail.com wrote:

 Should we still be following this old bug for lucid now that upower is
 being used? Is there a new bug filed against upower for this issue? I
 can't seem to find one.

 --
 devicekit-power fails to realize I'm on battery after AC disconnect
 https://bugs.launchpad.net/bugs/384304
 You received this bug notification because you are a direct subscriber
 of the bug.

 Status in DeviceKit based power management D-Bus backend: Confirmed
 Status in “devicekit-power” package in Ubuntu: Triaged

 Bug description:
 Binary package hint: devicekit-power

 Since upgrading to gnome-power-manager 2.27.1-0ubuntu2, which IIUC
 switched backends from hal to devkit-power, g-p-m thinks I'm always
 on AC, and doesn't even acknowledge the fact I have a battery.
 Rolling back to g-p-m 2.26.1-0ubuntu4 results in correct behaviour.

 I'll post some attachments with various debugging info...

 ProblemType: Bug
 Architecture: i386
 Date: Sat Jun  6 16:50:59 2009
 DistroRelease: Ubuntu 9.10
 Package: devicekit-power 008-1
 ProcEnviron:
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
 ProcVersionSignature: Ubuntu 2.6.30-8.9-generic
 SourcePackage: devicekit-power
 Uname: Linux 2.6.30-8-generic i686

 To unsubscribe from this bug, go to:
 https://bugs.launchpad.net/devicekit-power/+bug/384304/+subscribe

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2010-03-10 Thread Martin Pitt
tekstr1der [2010-03-10 16:35 -]:
 Should we still be following this old bug for lucid now that upower is
 being used? Is there a new bug filed against upower for this issue? I
 can't seem to find one.

This bug is supposed to be fixed in Karmic and Lucid. So if you still
get the effect, please open a new one, since it has a different root
cause then.

Thanks, Martin
-- 
Martin Pitt| http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2010-01-28 Thread Josh Hill
With the version of libdevkit-power-gobject1 in the karmic repository
now, I can get it to recognize it's on battery after unplugging and
replugging the AC several times. However, when I use the package in
Javier Martín's PPA or the version in karmic-proposed, it completely
breaks and no matter what I do I can't get it to recognize that it's on
battery.

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-12-19 Thread Ronaldo Pagani Yamashita
I am having the same problem with a Sony VAIO SZ-680. The patch makes
sense, but when will it be included in the main distribution? The
problem is really annoying for notebook users (as the machine will
shutdown suddenly when you forget to connect your power cord).

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-12-09 Thread Ian Hutchinson
This bug is present with Lenovo T400, with fully updated Karmic AMD64 release. 
I downloaded the 11/23 builds and installed them with dpkg -i. It did not 
appear to make any difference.
Unplugging and replugging the power cord a time or two when the battery is 
nearly fully charged, leads
to a locked up state where devkit-power -d reports on-battery: no, even when 
the cord is unplugged.
If you kill the devkit-power-daemon and then restart it, you can sometimes get 
it to start recognizing power
states properly. 

In short this is not fixed as of 9 Dec 09. Ian

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-30 Thread Trev
I have the same problem with my Fujitsu Siemens Esprimo Mobile V5535.
Being on battery is not detected, it always thinks that I am on AC.

Trev

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-25 Thread foggydude
working for me! as soon as i forced the downgrade in synaptic, my
backlight dimmed and before re-upgrading it it said 'sure, cause you are
on battery'.

i switched to the kde guidance manager (hoped that one would work), but
now theyre next to each other: gnome works and the guidance is still
believing we are on ac.


a lot of owrds to say: it works!!!

@mcz: thanks a lot, you brought me one step further from throwing my
laptop uit a window (if the stupid alsa/pulse/oss 'one moment you have
sounds but the next you dont and you really cant work wiothout music so
you hate your life in the office'  problems get soilved). keep the good
work!

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-25 Thread Wolfgang Kufner
Just tested the packages from pitti ppa in installed karmic on extensa 5635Z. 
They neither help nor hurt, as was expected.
Status in lucid is unchanged, which means its fine :-)

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-24 Thread Martin Pitt
mzc, your devkit-power outputs look just fine. What are you actually
seeing now which is wrong?

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-24 Thread Javier Martín
His lid-is-closed is reported as yes, I think he's experiencing a whole
different bug...

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-24 Thread mzc
I'll file it on a separate report.  thanks everyone :)

On Tue, 2009-11-24 at 22:24 +, Javier Martín wrote:
 His lid-is-closed is reported as yes, I think he's experiencing a whole
 different bug...


-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-24 Thread mzc
I have filed it as bug# 487958.  Thank you very much for the help.

On Tue, 2009-11-24 at 22:24 +, Javier Martín wrote:
 His lid-is-closed is reported as yes, I think he's experiencing a whole
 different bug...


-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-23 Thread Martin Pitt
Upstream committed a simpler patch which should also fix this and avoid
problems with the originally proposed one. I applied this in a test
package for karmic and uploaded it into my PPA:

  https://launchpad.net/~pitti/+archive/ppa/+packages

Any chance that people affected by this problem can try this and report
back here? Thank you!

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-23 Thread Javier Martín
Doesn't seem to work for me (see `devkit-power -d` while on batteries
attached). AC device section says online: no but the daemon section thinks
on-battery: no.


2009/11/23 Martin Pitt martin.p...@ubuntu.com

 Upstream committed a simpler patch which should also fix this and avoid
 problems with the originally proposed one. I applied this in a test
 package for karmic and uploaded it into my PPA:

  
 https://launchpad.net/~pitti/+archive/ppa/+packageshttps://launchpad.net/%7Epitti/+archive/ppa/+packages

 Any chance that people affected by this problem can try this and report
 back here? Thank you!

 --
 devicekit-power fails to realize I'm on battery after AC disconnect
 https://bugs.launchpad.net/bugs/384304
 You received this bug notification because you are a direct subscriber
 of the bug.

 Status in DeviceKit based power management D-Bus backend: Confirmed
 Status in “devicekit-power” package in Ubuntu: Triaged

 Bug description:
 Binary package hint: devicekit-power

 Since upgrading to gnome-power-manager 2.27.1-0ubuntu2, which IIUC switched
 backends from hal to devkit-power, g-p-m thinks I'm always on AC, and
 doesn't even acknowledge the fact I have a battery. Rolling back to g-p-m
 2.26.1-0ubuntu4 results in correct behaviour.

 I'll post some attachments with various debugging info...

 ProblemType: Bug
 Architecture: i386
 Date: Sat Jun  6 16:50:59 2009
 DistroRelease: Ubuntu 9.10
 Package: devicekit-power 008-1
 ProcEnviron:
  LC_COLLATE=C
  PATH=(custom, user)
  LANG=en_GB.UTF-8
  SHELL=/bin/bash
 ProcVersionSignature: Ubuntu 2.6.30-8.9-generic
 SourcePackage: devicekit-power
 Uname: Linux 2.6.30-8-generic i686



** Attachment added: devkit-power-output.txt
   http://launchpadlibrarian.net/35974938/devkit-power-output.txt

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-23 Thread mzc
hi Martin,

I was only successful to installing one of the 4 packages. How do I
force-install them, i get an error that a later version was already
installed. 

On Mon, 2009-11-23 at 13:20 +, Martin Pitt wrote:
 Upstream committed a simpler patch which should also fix this and avoid
 problems with the originally proposed one. I applied this in a test
 package for karmic and uploaded it into my PPA:
 
   https://launchpad.net/~pitti/+archive/ppa/+packages
 
 Any chance that people affected by this problem can try this and report
 back here? Thank you!


-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-23 Thread mzc
see devkit-power attachments

** Attachment added: devkit-power on AC
   http://launchpadlibrarian.net/36003745/devkit-power%20on%20AC

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-23 Thread mzc

** Attachment added: devkit-power on batt
   http://launchpadlibrarian.net/36003840/devkit-power%20on%20batt

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-23 Thread mzc
please disregard #40.  i managed to force-install the package via
synaptic.  There's no change happened, problem still exist please see
attachments

** Attachment added: gpm.log
   http://launchpadlibrarian.net/36003724/gpm.log

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs



[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-22 Thread mzc
@Javier Martin

The patch does not work on Acer Aspire one D250.  I also experience this
same bug when unplugging AC.  this also probably similar to bug #425411

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-22 Thread mzc
see gpm.og

** Attachment added: gpm.log
   http://launchpadlibrarian.net/35940558/gpm.log

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-19 Thread Martin Pitt
Thanks Javier! I forwarded your patch upstream for review and
commenting.

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-18 Thread Wolfgang Kufner
Just checked again for this bug with ubuntu lucid-desktop-amd64 20091117 
(booting the iso from hd via grub2 loopback):
looks even better than yesterday. even the small issue of the superfluous 
second battery icon (see twoBatteryIcons.png) is gone.

What remains is that the whole thing is not instantaneous, but I can't
think of any practical problems that might cause.

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-17 Thread Wolfgang Kufner
Fixed for me in lucid.

Just tested for this bug with ubuntu lucid-desktop-amd64 20091116
(booting the iso from hd via grub2 loopback):

fixed the major problem:
booting on AC; after unplugging devkit-power --dump changes to on-battery: 
yes (takes about 15 secs iirc)

fixed also:
when plugging in with non-full battery extensa 5635z says (devkit-power --dump) 
it is charging with about 35W. I used to say something like 700W.

still when plugging in devkit-power --dump  states wrongly fully
charged for about 40 seconds. then it correctly changes to charging.

new (small) symptoms:
After boot I had two battery icons in the tray. see attached 
twoBatteryIcons.png. I did testing (successfull) of suspend/resume 
functionality and noticed after the 3rd resume (did not look before) that there 
additional icon was gone.

@Javier Martín
thanks for your patch. I looked at it, but decided that it did not apply to my 
situation. for me devkit-power --dump always showed that both the battery 
device and the AC device always told the truth (after a bit of battery full 
nonsense). somehow the daemon part never listened to either of them. (see 
attached notOnBat.dk-dump.afterPlugin.txt)

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-17 Thread Wolfgang Kufner

** Attachment added: twoBatteryIcons.png
   http://launchpadlibrarian.net/35779356/twoBatteryIcons.png

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-17 Thread Javier Martín
@Wolfang:

Just to clarify, the patch above fixes the scenario in which devkit-power -d
reports on-battery: no after unplugging the AC, but apparently only when
the battery is fully charged. Under those circumstances, the battery
(through the /sys/devices filesystem) happens to report an Unknown status
(who knows why). That confuses the devkit-power daemon, since the
on-battery yes/no decision depends on the battery reporting a charging
or discharging status, and not on the AC device itself (which seems more
sensible to me).

The end result is that gnome-power-manager will never realize when AC goes
off-line and it will never switch to the on battery policy. The biggest
issue I had with this was that my laptop never went to sleep after closing
the lid (since I only instruct g-p-m to suspend when closing the lid on
batteries) and I've already found my laptop cooking in its bag three times.

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-17 Thread foggydude
affected: packard bell dot m/ acer one 751

@javier Martin
its always a miracle what will happen when i open/close lid. its some sort of 
tombola. sometimes as hopes, sometimes coockes. and sometimes nice suspend and 
black sreen on resume (other bug).

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-16 Thread Javier Martín
Attached is a patch to fix this bug. The problem is in function
dkp_daemon_get_on_battery_local of dkp-daemon.c. The logic is we're on
battery as soon as _any_ battery goes discharging, but often batteries
have troubles reporting their charging/discharging status and just say
unknown (at least in my two laptops, an IBM T42 and an Asus Eee 901),
so relying on the batteries' status to figure out wether we are plugged
in or not is not acceptable. Rather, we should ask the AC power device
directly and change the above logic to: we're on battery as soon as
_any_ AC supply goes online.

A patch is attached. It applies on 011-1ubuntu1. I would report it
upstream if I knew how.

I also uploaded the binaries to a PPA. To test this fix:

sudo add-apt-repository ppa:jmartinj/dkp
sudo apt-get update
sudo apt-get upgrade


** Attachment added: fix_on_battery_detection.diff
   http://launchpadlibrarian.net/35769054/fix_on_battery_detection.diff

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-15 Thread Max Bowsher
Retagged regression-release as this is reproducing for me again. And I
have verbal confirmation from another AAO user that they're seeing the
same on a karmic clean install.

I've just noticed pitti's comment of ~ 1 month ago and shall bear it in
mind when I'm next in front of the appropriate machine.

** Tags added: regression-actual
** Tags removed: regression-potential

** Tags added: regression-release
** Tags removed: regression-actual

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-11-12 Thread tekstr1der
I've run into this on a fully updated karmic install.

1) Start with a fully charged battery
2) Disconnect AC
3) devkit-power --dump reports state:fully-charged, on-battery=no

Another observation:

Following a suspend/resume cycle, things operate correctly for the most
part, but sometimes there is a very long delay (1-8 minutes) between
unplugging AC power and GPM picking up on that fact.

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-10-20 Thread Martin Pitt
Max,

so can you cofirm that devkit-disks --dump is correct in all
situations for you then? Then it's indeed a different bug. Can you open
one against gnome-power-manager, and do

  killall gnome-power-manager
  gnome-power-manager --verbose 21 | tee /tmp/gpm.log

then reproduce the bug, press Control-C, and attach /tmp/gpm.log to that
bug? Please subscribe me (pitti) to it.

Thanks!

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-10-16 Thread Max Bowsher
Contrary to my earlier comment about having problems reproducing it,
I've now noticed that I'm sitting here with no power cord in sight, yet
g-p-m claims my battery is *charging*!

And wtf? 'devkit-power --dump' actually says discharging !?

And whilst I've been writing this bug report, g-p-m seems to have
finally caught up with the fact that power was unplugged minutes ago.

Do you think this is all part of the same problem, or do I need to file
a new bug about devkit-power-gnome-power-manager communication having
an unacceptably high delay, whereas hal-gnome-power-manager
communication never seemed to have this problem?

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-10-16 Thread Steve Langasek
** Changed in: devicekit-power (Ubuntu)
   Importance: Undecided = Medium

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-10-07 Thread Martin Pitt
** Summary changed:

- devicekit-power fails to realize I'm on battery
+ devicekit-power fails to realize I'm on battery after AC disconnect

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-10-07 Thread Martin Pitt
** Bug watch added: freedesktop.org Bugzilla #24371
   https://bugs.freedesktop.org/show_bug.cgi?id=24371

** Also affects: devicekit-power via
   https://bugs.freedesktop.org/show_bug.cgi?id=24371
   Importance: Unknown
   Status: Unknown

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-10-07 Thread Bug Watch Updater
** Changed in: devicekit-power
   Status: Unknown = Confirmed

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-10-07 Thread Wolfgang Kufner
Hi Martin

I did as you suggested and the packages are at the new versions, but
since the system was shut down twice after above testing I think what we
really are after is in the logs:

synaptic package history shows that those two packages came in at 7:10
messages log shows 5 shutdown - boot cylces after that and before all of the 
above testing began

Thanks! Wolfgang

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 384304] Re: devicekit-power fails to realize I'm on battery after AC disconnect

2009-10-07 Thread Martin Pitt
Wolfgang Kufner [2009-10-07 11:23 -]:
 I did as you suggested and the packages are at the new versions, but
 since the system was shut down twice after above testing I think what we
 really are after is in the logs.

Thanks for confirming!

-- 
Martin Pitt| http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

-- 
devicekit-power fails to realize I'm on battery after AC disconnect
https://bugs.launchpad.net/bugs/384304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs