Lubuntu: How do I autostart xfce4 power manager?
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:
- Open Preferences → Default applications for LXSession.
- Go to the autostart tab.
- Change the option "Disable autostarted applications" from
config-only
tono
.
Or similarly:
- Edit
~/.config/lxsession/Lubuntu/desktop.conf
- Change the following line under
[Session]
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
Related videos on Youtube
user203766
Updated on September 18, 2022Comments
-
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 over 10 yearsI 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 over 10 yearsVery nice! Is there any documentation? I didn't come across any for "Default applications for LXSession".
-
Admin over 10 years
-
bkm over 10 yearsJust wanted to say that this worked for me in 13.10.
-
Augustin Riedinger about 10 yearsYes, 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 about 3 years6 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.