Author Topic: gnome-power-manager not working on LXDE  (Read 1793 times)

Offline mmutoo

  • Full Member
  • ***
  • Posts: 96
gnome-power-manager not working on LXDE
« on: April 26, 2012, 01:10:52 PM »
Hi all,
I got a problem with gnome-power-manager. I am using LXDE, and installed the gnome-power-manager, and made it autostart in /etc/xdg/lxsession/LXDE/autostart. The power manager runs (I see the notification icon) but it does not do the job. Actually it does not do anything. I set it to turn the display off after 10 min and suspend the whole computer in 20 min but it does nothing at all. Does anybody have an idea why?!

P.S. When I put the command "gnome-power-manager &" in the ~/.config/openbox/sutostart.sh the power manager even does not start let alone work! By the way, what is the difference between "/etc/xdg/lxsession/LXDE/autostart" and "~/.config/openbox/sutostart.sh"?

Many thanks guys.

Offline mmutoo

  • Full Member
  • ***
  • Posts: 96
Re: gnome-power-manager not working on LXDE
« Reply #1 on: April 28, 2012, 09:13:00 AM »
OK, guys, I have a follow up here. I am trying to replace gnome-power-manager with xfce4-power-manager. When I want to install it, it fetches 380MB of dependencies! Is there any way for installing it with minimal dependencies?

Thanks everybody.

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: gnome-power-manager not working on LXDE
« Reply #2 on: April 28, 2012, 09:33:12 AM »
I don't know how i can help you, sorry...

If gnome-power manager now working, yes or no?

Use lxautostart to get gnome-power-manager working at lxde session start up.

http://www.pclinuxos.com/forum/index.php/topic,103483.msg883135.html#msg883135

if you set lxautostart to start, then try this from terminal

Code: [Select]
echo "gnome-power-manager &" >> ~/.config/lxautostart/lxautostart.sh
but lxautostart must create by first start.

Logout/in...
« Last Edit: April 28, 2012, 09:42:04 AM by Leiche »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: gnome-power-manager not working on LXDE
« Reply #3 on: April 28, 2012, 02:43:27 PM »
Maybe try batti as an alternative.     

Offline BJF

  • Hero Member
  • *****
  • Posts: 591
Re: gnome-power-manager not working on LXDE
« Reply #4 on: April 28, 2012, 03:31:07 PM »
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 mmutoo

  • Full Member
  • ***
  • Posts: 96
Re: gnome-power-manager not working on LXDE
« Reply #5 on: April 28, 2012, 10:03:54 PM »
@Leiche: I could manage to autostart gnome-power-manager (will be referred to as GPM!). I put it in /etc/xdg/lxsession/LXDE/autostart and it starts at login. But it does not do what it is supposed to do. I mean it does nothing. not even turning of the monitor. The icon is in the notification area, but it does nothing.

@Neal: Batti just shows the battery info. I need something to make the system go to sleep, or hibernate after a specified amount of idle time.

@BJF: Which part you mean? That thread is about how to run GPM which I did not have any problem with. Am I missing something?!

So:
1) Yes, GPM is running but it does not work. Do you by any chance know why?
2) Still I would like to know the difference between "/etc/xdg/lxsession/LXDE/autostart" and "~/.config/openbox/sutostart.sh", I will appreciate it if you could tell me.
3) Since GPM is not working for the moment, I decided to give xfce4-power-manager a try. And when I tried to install it, it asked to fetch 380MB of dependencies. Is there anyway to install it with reasonable number of dependencies?

Thanks guys.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: gnome-power-manager not working on LXDE
« Reply #6 on: April 28, 2012, 11:46:10 PM »
If you're using LXDE, the default autostart directory is ~/.config/autostart. The .desktop file(s) for the app(s) you want to autostart are put here. You should not try to use ~/.config/openbox/autostart.sh with LXDE. It is used with openbox.     

/etc/xdg/autostart is a system (i.e. root) directory, not a user directory. It is in this folder that you will find the .desktop files for services and apps that are autostarted for the system. LXPolKit and SSH Key Agent .desktop files for example can be found there.     

Offline mmutoo

  • Full Member
  • ***
  • Posts: 96
Re: gnome-power-manager not working on LXDE
« Reply #7 on: April 29, 2012, 07:57:49 AM »
OH! Thanks Neal. Now I get it.

OK forum people, any one has kindly any suggestion regarding the power managers?