18

It used to be gnome-power-manager or something of that sort, but now I can't seem to find it. When I run gnome-session from within awesome, it loads all the applets, i.e. nm-applet and the keyboard layout switcher, yet it doesn't load the battery applet, and so I'd like to launch it with a command.

5
  • Try gnome-settings-daemon
    – devav2
    Nov 16, 2012 at 10:45
  • @devav2 Gnome-session launches gnome-settings-daemon, so I'm already running it. It doesn't add a battery indicator to my system tray, which is why I need to find the command.
    – Jonathan
    Nov 16, 2012 at 18:20
  • possible duplicate: check out the 2nd comment. askubuntu.com/questions/148971/…
    – Suhaib
    Nov 24, 2012 at 20:51
  • @Suhaib No, the issue is not that the battery indicator doesn't show up under certain conditions (e.g. when charging), but rather that it doesn't exist at all. This problem would be solved if I knew the command to run the applet.
    – Jonathan
    Nov 25, 2012 at 21:51
  • My problem is that I don't want the integrated indicator since it has components I never use, but I can't find a stand-alone applet for newer Ubuntus...
    – lukstafi
    Apr 12, 2014 at 8:00

3 Answers 3

1

You should be able to restore the menu-bar icon by using the Dconf editor. This is probably already installed, but if not, it's in the Sofware Center as Dconf Editor. Note that's a title not the package name. In Synaptic it's dconf-tools. The command line is sudo apt-get install dconf-tools.

This is a low-level editor for system settings, so be careful.

To get to the power icon setting:

com --> canonical --> indicator --> power. After clicking power, look for "icon-policy" in the right pane. Presumably it will say "never." Change it to "present"

1
  • "icon-policy" already says "present."
    – Jonathan
    Feb 2, 2013 at 20:49
1

the default battery indicator in ubuntu is part of the 'unity-panel-service' it's called 'indicator-power' and can't – as far as I know – be called on its own.

However you can try to install 'indicator-applet' and then 'indicator-power' if it's not already installed. And then try launching 'indicator-applet' and see what you end up with.

Sorry for bad formatting my cell phone somehow doens't get the spacing for the code right

1
  • I suggest you fix the formatting instead of putting a bold-font banner at the bottom of the post.
    – aioobe
    Jul 4, 2015 at 22:27
1

Edit: The mentioned ppa seems no longer available as of April 2014. Please check before following this solution. For more information see the comments below this answer.


First Install Battery-Status by Running following command in terminal.

sudo add-apt-repository ppa:iaz/battery-status && sudo apt-get update
sudo apt-get install battery-status

To run ‘Battery Status’ as an Indicator-applet in Ubuntu you’ll need to run the following command in a terminal:

/usr/lib/battery-status/battery-status --indicator

To launch the indicator mode on log-in add it to your ‘Start-up applications’ in System > Preferences > Startup Applications, entering the command above in the command field.

4
  • The PPA maintainer hasn't built battery-status for 12.10, so I get E: Unable to locate package battery-status. Isn't there a default battery indicator command that doesn't require adding a PPA?
    – Jonathan
    Nov 16, 2012 at 18:19
  • Yes, You are right, I checked out. You have to wait for that.
    – KK Patel
    Nov 17, 2012 at 3:54
  • If by accident you followed these instruction and find the ppa repository is no longer there, here is how to fix your apt sources: askubuntu.com/a/609048/1467
    – mit
    Aug 27, 2015 at 8:02
  • @mit, you are right, it is no longer available.
    – KK Patel
    Aug 28, 2015 at 16:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .