Lubuntu: How do I autostart xfce4 power manager?

23,667

Solution 1

Check ~/.config/lxsession/Lubuntu/desktop.conf.

Look for laptop_mode and see that it's set to 'yes':

[State]
laptop_mode=yes

This worked for me at least. Mine was set to 'no' so I would have to start xfce4-power-manager manually. By changing the value to 'yes' it now starts at login automatically without any further configuration.

Solution 2

Either:

  1. Open Preferences → Default applications for LXSession.
  2. Go to the autostart tab.
  3. Change the option "Disable autostarted applications" from config-only to no.

Or similarly:

  1. Edit ~/.config/lxsession/Lubuntu/desktop.conf
  2. Change the following line under [Session]
  3. Change

    disable_autostart=config-only
    

    to this instead:

    disable_autostart=no
    

Solution 3

there's sth. wrong in the autostart-entry of the power-manager. That makes it only work in XFCE (e.g. Xubuntu), but not LXDE/Lubuntu

in a Terminal type

sudo nano /etc/xdg/autostart/xfce4-power-manager.desktop

Go to the line saying:

OnlyShowIn=XFCE;

and comment it out

#OnlyShowIn=XFCE;

exit the editor with Ctrl-O (save) and Ctrl-X (exit)

In your next session power manager should start automatically

Share:
23,667

Related videos on Youtube

user203766
Author by

user203766

Updated on September 18, 2022

Comments

  • user203766
    user203766 over 1 year

    I just upgraded my 64 bit Lubuntu to 13.10 on my netbook today. After the upgrade, I simply can't autostart the xfce4 power manager. I tried to add from the desktop session settings, I tried to copy the power manager.desktop file to ~/.config/autostart folder.

    Everything looks fine. Then I logout, log back in and the darn power manager just won't start automatically. It only starts when I double click the icon, or if I start it from the terminal.

  • user203766
    user203766 over 10 years
    I tried it, I made that script, I executed it, it works. After that I realized, that I can't add a script like that to desktop session settings in an LXDE environment, like in gnome. So I made a .desktop file /,that launches the script/, in the ~/.config/autostart folder. Than I double clicked the .desktop file, an it brought up the xfce4 power manager. But after I logged out, and logged back in, it still does NOT work automatically :(
  • Admin
    Admin over 10 years
    Very nice! Is there any documentation? I didn't come across any for "Default applications for LXSession".
  • Admin
    Admin over 10 years
  • bkm
    bkm over 10 years
    Just wanted to say that this worked for me in 13.10.
  • Augustin Riedinger
    Augustin Riedinger about 10 years
    Yes, it's more safe to use UX instead of editing files manually! And to understand what's happening behind the scene in parallel!
  • Cris Luengo
    Cris Luengo about 3 years
    6 years later (Lubuntu 20), there's a line instead that reads NotShowIn=GNOME;KDE;Unity;MATE;LXQt;. LXQt is the Lubuntu desktop. Simply remove it from the list.