Author Topic: A LXDE battery monitor that WORKS.  (Read 7307 times)

Offline BJF

  • Hero Member
  • *****
  • Posts: 591
A LXDE battery monitor that WORKS.
« on: November 26, 2010, 12:31:17 AM »
With acknowledgment to Parnote for this:

The November magazine contains reference to Gnome Power Manager as a replacement for the buggy onboard battery monitor in the LXDE: Hints and Tips section, and references the September issue for ways to get it into your startup list. A little later in the November H & T's there is a little nugget on an alternate way to get applications to autostart. By combining the two ideas....

Get gnome power manager from the repo's.

Open /etc/xdg/lxsession/LXDE/autostart as root, and add the line:

@gnome-power-manager (Make sure the file has a blank line as its last entry, and save.)

Close out and reboot. There should now be an accurate working battery monitor in your LXDE taskbar, with the added benefits of settings for stand-by and hibernation from Preferences.

Thank you Parnote.
J.G. Gone but never forgotten.


Monsters are real. Ghosts are real too. They live inside us, and sometimes they win.  -Stephen King.

To activate container, saturate contents with cider or single malt.

Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
Re: A LXDE battery monitor that WORKS.
« Reply #1 on: November 26, 2010, 12:38:35 AM »
Thank you. I will keep this one in mind for my next remaster.

 :)
$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.

Offline bcat23

  • Jr. Member
  • **
  • Posts: 36
Re: A LXDE battery monitor that WORKS.
« Reply #2 on: November 26, 2010, 03:30:49 PM »
Thanks for posting this. I just tried it and it worked like a charm.  :)

Offline kizito

  • Full Member
  • ***
  • Posts: 202
Re: A LXDE battery monitor that WORKS.
« Reply #3 on: November 26, 2010, 03:52:46 PM »
Excellent  ;D

Thanks to you I now have a battery monitor that looks like it was meant and that also works.
PCLinuxOS... Tough on Windows, tough on the causes of Windows

Offline collins601

  • Jr. Member
  • **
  • Posts: 29
Re: A LXDE battery monitor that WORKS.
« Reply #4 on: December 01, 2010, 08:42:31 AM »

Get gnome power manager from the repo's.

Open /etc/xdg/lxsession/LXDE/autostart as root, and add the line:

@gnome-power-manager (Make sure the file has a blank line as its last entry, and save.)

Close out and reboot. There should now be an accurate working battery monitor in your LXDE taskbar, with the added benefits of settings for stand-by and hibernation from Preferences.


FYI,

Do make the permanent changes as above, but there is no need to reboot. Just run 'gnome-power-manager &' in a root terminal.

--
Collins

Offline megalodonnl

  • Jr. Member
  • **
  • Posts: 38
Re: A LXDE battery monitor that WORKS.
« Reply #5 on: September 18, 2011, 05:46:47 AM »
Hi,

I know it's an old topic, but as new user, I followed the rule to first do a search before asking. So I followed the advice in this topic but in the terminal I get this:



Perhaps this is the default Power Manager and therefore the gnome power manager can't run? Or is it the gnome that is already running?

BTW: nice little utility, 'screenie' :)


Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3748
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: A LXDE battery monitor that WORKS.
« Reply #6 on: September 18, 2011, 05:55:45 AM »
Is gnome-power-manager running for you, or not?

I don't need to run this in a root terminal...
Click on startmenu > run dialog and type gnome-power-manager, it will list. Then activate automatic start by systemstart, that should work...

Good luck, and welcome in our forums  :)

Offline kizito

  • Full Member
  • ***
  • Posts: 202
Re: A LXDE battery monitor that WORKS.
« Reply #7 on: September 18, 2011, 06:00:09 AM »
Yes, gnome-power-manager was already running when you issued that command in the terminal. Is there a little battery-and-plug icon on the panel?
PCLinuxOS... Tough on Windows, tough on the causes of Windows

Offline megalodonnl

  • Jr. Member
  • **
  • Posts: 38
Re: A LXDE battery monitor that WORKS.
« Reply #8 on: September 18, 2011, 06:05:31 AM »
Thanks guys.

I had no icon in the panel which is why I wasn't sure whether gnome power manager was running or that the default lxde power manager was still used.

With 'start - run' I could access the gnome power manager preferences and choose to have the icon displayed.

I feel dumb for having not tried the 'run' option first, but I was just so busy reading documents and topics... and they didn't mention the simple 'start - run' :)

I can do this with Nautilus too, that I just installed, but the only thing I don't know yet is how to pin that to the menu... either taskbar or Start Menu @ File Managers... I guess I have some further reading to do :)
« Last Edit: September 18, 2011, 06:09:24 AM by megalodonnl »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: A LXDE battery monitor that WORKS.
« Reply #9 on: September 18, 2011, 06:57:18 AM »
megalodonnl,
As root, open /usr/share/applications/ (use File Manager Superuser in menu) > look for Nautilus' .desktop file(s) and open with leafpad. Look for the line OnlyShowIn=GNOME; and change it to OnlyShowIn=GNOME;LXDE; - save and exit. Nautilus will now show in your menu.     

Offline megalodonnl

  • Jr. Member
  • **
  • Posts: 38
Re: A LXDE battery monitor that WORKS.
« Reply #10 on: September 18, 2011, 08:16:22 AM »
megalodonnl,
As root, open /usr/share/applications/ (use File Manager Superuser in menu) > look for Nautilus' .desktop file(s) and open with leafpad. Look for the line OnlyShowIn=GNOME; and change it to OnlyShowIn=GNOME;LXDE; - save and exit. Nautilus will now show in your menu.     

Hi Neal, thanks :)

I already found that but now it doesn't display Nautilus icon. I'll open another topic for that so people who search for that information have an easier time finding it when doing a search.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: A LXDE battery monitor that WORKS.
« Reply #11 on: September 18, 2011, 08:27:23 AM »
Nautilus uses the system-file-manager icon here. If you want to use something else, you need to edit the Icon= line in its .desktop file.    
« Last Edit: September 18, 2011, 08:28:55 AM by Neal »