After wakeup from sleep, gnome-power-manager does not detect it is running on battery

Bug #472347 reported by Aniruddh
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Medium
gnome-power-manager (Ubuntu)
Invalid
Undecided
Unassigned
Declined for Jaunty by Jeremy Foshee
Nominated for Karmic by Aniruddh
Nominated for Lucid by Aniruddh
linux (Ubuntu)
Fix Released
Medium
Andy Whitcroft
Declined for Jaunty by Jeremy Foshee
Nominated for Karmic by Aniruddh
Nominated for Lucid by Aniruddh

Bug Description

Binary package hint: gnome-power-manager

I am running gnome-power-manager 2.28.1 on ubuntu 9.10.

What I expected:
After wakeup from sleep gnome-power-manager should show the remaining battery power.

What happened:
When suspended on battery power and later when the laptop wakes up (still in battery power), gnome-power-manager applet shows the AC adapter icon in the notification tray and it shows no tool tip.

I have attached the output of gnome-power-manager --verbose output.

ProblemType: Bug
Architecture: amd64
CheckboxSubmission: 407b254b7cbb0f727ab9e7e106afc549
CheckboxSystem: e0c58216b4112bad72fb7927fd8669d4
Date: Tue Nov 3 00:27:17 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: wl
Package: gnome-power-manager 2.28.1-0ubuntu1
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: gnome-power-manager
Uname: Linux 2.6.31-14-generic x86_64

Revision history for this message
Aniruddh (aniruddhasrao) wrote :
Revision history for this message
Aniruddh (aniruddhasrao) wrote :

I just observed that whenever laptop wakes up from a suspend, gnome-power-manager applet simply shows the ac adapter icon irrespective what the current state is. Looks like it is not able to detect the presence of the battery on wakeup.

nameiner (nameiner)
summary: - After wakeup from sleep, gnome-power-manager does not detect it is
- running on battery
+ After wakeup from sleep, gnome-power-manager does not detect battery
nameiner (nameiner)
summary: - After wakeup from sleep, gnome-power-manager does not detect battery
+ After wakeup from sleep, gnome-power-manager does not detect it is
+ running on battery
Revision history for this message
nameiner (nameiner) wrote :

Sorry for the name change, I was in the wrong report.

But I can confirm this behavior. I had filed a report on my own. See here: https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/471888

I marked it as duplicate.

Revision history for this message
nameiner (nameiner) wrote : apport-collect data

Architecture: amd64
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: wl
Package: gnome-power-manager 2.28.1-0ubuntu1
PackageArchitecture: amd64
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
Uname: Linux 2.6.31-14-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
XsessionErrors:
 (gnome-settings-daemon:2024): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (polkit-gnome-authentication-agent-1:2079): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:2060): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (synaptic:3404): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper: assertion `node != NULL' failed
 (synaptic:3404): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper: assertion `node != NULL' failed

Revision history for this message
nameiner (nameiner) wrote : Dependencies.txt
Revision history for this message
nameiner (nameiner) wrote : DevkitPower.txt
Revision history for this message
nameiner (nameiner) wrote : GConfNonDefault.txt
Revision history for this message
nameiner (nameiner) wrote : gnome-power-bugreport.txt
tags: added: apport-collected
Revision history for this message
Aniruddh (aniruddhasrao) wrote : Re: [Bug 472347] Re: After wakeup from sleep, gnome-power-manager does not detect it is running on battery

Thanks for pointing me to your bug. Are you aware of any way we can request
for this bug to be fixed sooner? I am not able to use suspend because of
this.

Thanks,
Aniruddh

On Wed, Nov 4, 2009 at 12:01 PM, nameiner <email address hidden> wrote:

> Sorry for the name change, I was in the wrong report.
>
> But I can confirm this behavior. I had filed a report on my own. See
> here: https://bugs.launchpad.net/ubuntu/+source/gnome-power-
> manager/+bug/471888
>
> I marked it as duplicate.
>
> --
> After wakeup from sleep, gnome-power-manager does not detect it is running
> on battery
> https://bugs.launchpad.net/bugs/472347
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “gnome-power-manager” package in Ubuntu: New
>
> Bug description:
> Binary package hint: gnome-power-manager
>
> I am running gnome-power-manager 2.28.1 on ubuntu 9.10.
>
> What I expected:
> After wakeup from sleep gnome-power-manager should show the remaining
> battery power.
>
> What happened:
> When suspended on battery power and later when the laptop wakes up (still
> in battery power), gnome-power-manager applet shows the AC adapter icon in
> the notification tray and it shows no tool tip.
>
> I have attached the output of gnome-power-manager --verbose output.
>
> ProblemType: Bug
> Architecture: amd64
> CheckboxSubmission: 407b254b7cbb0f727ab9e7e106afc549
> CheckboxSystem: e0c58216b4112bad72fb7927fd8669d4
> Date: Tue Nov 3 00:27:17 2009
> DistroRelease: Ubuntu 9.10
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
> NonfreeKernelModules: wl
> Package: gnome-power-manager 2.28.1-0ubuntu1
> ProcEnviron:
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
> SourcePackage: gnome-power-manager
> Uname: Linux 2.6.31-14-generic x86_64
>

Revision history for this message
Adam Lofts (adam-lofts) wrote :

For my HP DV-4 this bug looks like: http://bugzilla.kernel.org/show_bug.cgi?id=13449#c12

Revision history for this message
Adam Lofts (adam-lofts) wrote :

Compiling a kernel with the patch suggested in the above bug fixes the issue for me.

Revision history for this message
Aniruddh (aniruddhasrao) wrote :

Can we get this kernel patch as a kernel update for ubuntu? That would be very much useful for everybody.

Revision history for this message
nameiner (nameiner) wrote :

Adam,
Can you please help me to apply this patch. I downloaded the kernel sources and unpacked them. Now I'm stuck cause all the tutorials I found assume that I have a archive as source for the patch. But I don't know how to get this.
Thanks, your help is appreciated.

Revision history for this message
Adam Lofts (adam-lofts) wrote :

Just to reiterate: This is only going to help you if you have an HP DV-4 laptop. To build a patched kernel do:

[Install some packages (look at a tutorial)]

tar -xjf /usr/src/linux-source-2.6.31.tar.bz2
cd linux-source-2.6.31/
cp -vi /boot/config-`uname -r` .config
patch -p1 < /home/adam/Desktop/0001-ACPI-add-DMI-entry-for-SCI_EN-resume-quirk-on-HP-dv.patch
make menuconfig
fakeroot make-kpkg --initrd --append-to-version=-adam-hpdv4 kernel-image kernel-headers
sudo dpkg --install ../*.deb

Revision history for this message
nameiner (nameiner) wrote :

Thanks Adam.

After patching the kernel and installing it I can confirm that this patch works.
Now it only needs to make its way into the ubuntu kernel.

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

marked the g-p-m task as invalid. Added a kernel task. I have put this on my list.

~JFo

Changed in gnome-power-manager (Ubuntu):
status: New → Invalid
Changed in linux (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

added upstream bug watch

-JFo

Changed in linux:
status: Unknown → Fix Released
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Aniruddh,
      Please test against the latest daily build of lucid. You can use the daily live ISO. Let me know if this is resolved as the patch should have made it into the kernel via stable branch updates.

Thanks!

-JFo

Revision history for this message
nameiner (nameiner) wrote :

I tested it with the alpha3 live CD and it seams to be fixed.

Revision history for this message
Aniruddh (aniruddhasrao) wrote :

It worked for me too. Is it possible to get this fix into 9.10 kernel?

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

nameiner,
     Thanks for your testing. :)

Aniruddh,
     This doesn't necessarily meet the requirement for an SRU, but I will inquire with the Kernel Engineers to see what their thoughts are on the subject.

Thanks!

~JFo

Revision history for this message
Andy Whitcroft (apw) wrote :

The patch cited is already committed in that release as the commit is in v2.6.32 the baseline for lucid:

  commit 8a1cbf64977f89e9e9bc1d80dd01503337424f96
  Author: Gustavo Maciel Dias Vieira <email address hidden>
  Date: Mon Oct 19 09:41:53 2009 -0200

    ACPI: add DMI entry for SCI_EN resume quirk on HP dv4

    Fixes the missing battery on sleep problem for yet another HP laptop
    ("HP Pavilion dv4").

    Fixes:
        http://bugzilla.kernel.org/show_bug.cgi?id=13449

    Signed-off-by: Gustavo Maciel Dias Vieira <email address hidden>
    Signed-off-by: Len Brown <email address hidden>

Closing off the Lucid task for this bug.

Changed in linux (Ubuntu):
assignee: nobody → Andy Whitcroft (apw)
status: Triaged → Fix Released
Revision history for this message
giuliano69 (giuliano-lotta) wrote :

Just to notify that the same problem is happening with an acer travelmate 7730G.
I hope the fix will not be realized only for HP notebook.

The diff patch seems to check specifically for HP notebook.
+ .ident = "Hewlett-Packard Pavilion dv4",

How is the final fix: general purpose or HP specific ?

Changed in linux:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.