Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my netbook closing the lid only leads to lock screen and not to standby in Lubuntu. That happened after the update on 11. 0.

In 11.04 that worked without problem. Also, in 11. 10 Ubuntu (Unity) closing the lid leads to standby.

So how can I achieve the same in Lubuntu 11.10?

share|improve this question
up vote 7 down vote accepted
  1. Right click on the battery icon on the taskbar.

  2. Select 'Preferences' from the resulting menu (which should bring up the XFCE4 Power Manager Preferences).

  3. Set the desired action to perform when the laptop lid is closed ('suspend' = 'standby' I think). Make sure you set the desired action for both 'On AC' and 'On Battery'.

NOTE: If you don't have a battery icon on the taskbar you can access the 'XFCE4 Power Manager Preferences' from Menu --> Preferences --> Power Manager

If you do not have a 'Power Manager' entry under the 'Preferences' menu, follow amjjawad's excellent advice from this thread over on

In a terminal type:

sudo leafpad /usr/share/applications/xfce4-power-manager-settings.desktop

Replace this line:


With (add a # before the line):


Save the file and 'Power Manager' should now be in Menu --> Preferences.

share|improve this answer
Confirmed and thanks, croque! – lqlarry Nov 4 '11 at 4:53
You may also need to install the power manager, sudo apt-get install xfce4-power-manager – Pace Mar 8 '14 at 15:28

I am using gdm and xfce (ubuntu 11.04). Gdm greeter cannot perform suspend without gnome-power-manager present. I prefer xfce power manager. Having both power managers present resulted in problems.

Adding file: /etc/acpi/local/ will force suspend (via pm-suspend) always when lid is closed:

# TODO:  Change the above to /bin/sh

grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
share|improve this answer
Per @Sean - "qwertypoke's script is a good work around, just remember to make the script executable." – Kevin Bowen Aug 16 '13 at 4:25
To make the script executable, run sudo chmod +x /etc/acpi/local/ (@qwertypoke You might want to add this or similar information to your answer ...unless for some reason it's not necessary to make the script executable ...I think it is necessary.) – Eliah Kagan Aug 16 '13 at 6:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.