gnome battery indicator missing in 12.04/12.10

Bug #997758 reported by Steve White
168
This bug affects 32 people
Affects Status Importance Assigned to Milestone
indicator-power (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

This is 12.04 Precise, with Unity turned off, using Gnome.

Multiple users are reporting the panel battery indicator is missing.
http://ubuntuforums.org/showthread.php?p=11924048#post11924048

indicator-power is installed

Perhaps realated:
     System Settings -> Power
     Show battery status in the menu bar

is blank when the window opens, but non-blank values don't take.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: indicator-power 2.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic i686
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
Date: Thu May 10 20:56:22 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
SourcePackage: indicator-power
UpgradeStatus: Upgraded to precise on 2012-05-09 (1 days ago)

Revision history for this message
Steve White (stevan-white) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-power (Ubuntu):
status: New → Confirmed
Revision history for this message
Ben Hearsum (bhearsum) wrote :

This happens with Awesome as the window manager, too.

Revision history for this message
Matthew Gleed (mgleed) wrote :

In my instance it appears that the battery indicator is there in that I can click on it to get to the power settings drop down menu, I just can't see the icon. However, if I change the theme I can see the icon except in Radiance. ie:

Adwaita: works
Ambiance: broken
Radiance: broken
High Contrast: works
High Contrast Inverse: works

Revision history for this message
Gelefisk (gelefisk) wrote :

Same here with Unity in 2D mode. Upgraded to 12.04 from 11.10.

Revision history for this message
Alexandru Băluț (a13b) wrote :

The "System Settings -> Power -> Show battery status in the menu bar" setting is working only when XDG_CURRENT_DESKTOP is Unity. Changing that combobox sets icon-policy in com.canonical.indicator.power to one of these values: present, charge, never.

With these settings and relogin, the power indicator shows up in Unity just fine, but still not in Gnome Classic:
gsettings set com.canonical.indicator.power icon-policy present
gsettings set org.gnome.settings-daemon.plugins.power active true

Any idea where to look for error messages?

I did "ps aux | grep indicator" while in Unity, with the power indicator visible, but there is no relevant process. Any idea what process is using the indicator-power library?

Thanks

Revision history for this message
Janek37 (j-sz) wrote :

I've made my own indicator, it turned out not to be so hard.
You can get it from https://github.com/janek37/battery-status

Revision history for this message
GrzesiekC (grzesiekc) wrote :

Hi,

Odd thing, Your scripts are using /proc/acpi/.... In my case there is no such a folder.
Mine Ubuntu 12.04 has information about battery in different files at /sys/class/power_supply/BAT0/.

I've found this topic. They are using the ACPI output.
https://bbs.archlinux.org/viewtopic.php?id=127387

I'm not a programer but here is mine script.
Beware sometimes it has a problem after resuming from the standby. I do not know why :-(.

Revision history for this message
Janek37 (j-sz) wrote :

That script is in Python, not sh, so it shuld have extension .py, not .sh

I have /sys/class/power_supply/BAT0/ too, I wasn't aware of that. I have Ubuntu 12.04, too.

I updated the battery module in my github repo to use the acpi command.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Is that still an issue? Could somebody having the issue get a "upower --dump" log and take a screenshot showing the issue?

Changed in indicator-power (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Adrian (adrian-ariley) wrote :

Yes, still a problem, in 12.04 and now in 12.10. Here's the output of "upower --dump":
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: Fri Oct 25 19:15:01 2013 (3487 seconds ago)
  has history: no
  has statistics: no
  line-power
    online: no

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0
  vendor: SMP
  model: DELL MM1568
  serial: 24
  power supply: yes
  updated: Fri Oct 25 20:13:06 2013 (2 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 46.5645 Wh
    energy-empty: 0 Wh
    energy-full: 67.1994 Wh
    energy-full-design: 86.58 Wh
    energy-rate: 20.3241 W
    voltage: 11.549 V
    time to empty: 2.3 hours
    percentage: 69.293%
    capacity: 77.6154%
    technology: lithium-ion
  History (charge):
    1382728386 69.293 discharging
    1382728356 69.590 discharging
    1382728326 69.888 discharging
    1382728296 70.168 discharging
  History (rate):
    1382728386 20.324 discharging
    1382728356 19.969 discharging
    1382728326 21.034 discharging
    1382728296 21.778 discharging

Daemon:
  daemon-version: 0.9.17
  can-suspend: yes
  can-hibernate yes
  on-battery: yes
  on-low-battery: no
  lid-is-closed: no
  lid-is-present: yes
  is-docked: no

And a screenshot of the panel

Changed in indicator-power (Ubuntu):
status: Incomplete → Confirmed
summary: - gnome battery indicator missing in 12.04
+ gnome battery indicator missing in 12.04/12.10
Revision history for this message
Adrian (adrian-ariley) wrote :

Incidentally, I no longer have the "Show battery status in the menu bar" option in power settings at all.

Revision history for this message
Charlie Jonshon (charlie164) wrote :

Can anyone tell me that the daemon version 0.9.17 is compatible with windows 10 because I am getting windows update error 80070103 continuously for that I also checked https://errorcode0x.com/windows-update-error-80070103/ but did not get the valid solution to fix this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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