Ubuntu – Battery indicator missing, ubuntu 12.04


There is a closed , question at Battery Indicator Missing.
But I have the problem and have not found any solution yet.
Also asked a question about it on Launchpad but no replies again. https://answers.launchpad.net/ubuntu/+question/197436

I updated the kernel from 3.2 to 3.4 precise. I have ubuntu 12.04, on 64 bit machine, dell E6400.
I tried

chawla@chawla-laptop:~$ sudo apt-get install indicator-power
Reading package lists... Done
Building dependency tree       
Reading state information... Done
indicator-power is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 71 not upgraded.

but nothing works, anyone have the idea about it?

Best Answer

  • I had accidentally hit "Show Time in Menu Bar" when clicking on the battery on the menu bar in Gnome. This apparently hid the battery quite well. Here's what I needed:

    Run dconf-editor. (Press Alt+F2, and type in dconf-editor, and hit "Run".) Browse to com > canonical > indicator > power and check the "show-time" setting. Your battery icon should re-appear immediately. "show-time" was the one I needed to change, but note that if "icon-policy" is "never", you will need to select one of the other options for the icon to appear.

    (Note: This thing is buggy as hell. There's System Settings > Power, which has "Show battery status in the menu bar", and this settings is blank for me, so you would think selecting "when battery is present" would correct the problem. Unfortunately, it not only does it not "Show the battery status in the menu bar when the battery is present", but it also doesn't stick: leaving the dialog and coming back returns me to a blank as my selected option.)