5

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?

9
  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 ubuntuforums.org.

In a terminal type:

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

Replace this line:

OnlyShowIn=XFCE;

With (add a # before the line):

#OnlyShowIn=XFCE;

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

1
  • You may also need to install the power manager, sudo apt-get install xfce4-power-manager
    – Pace
    Mar 8 '14 at 15:28
3

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/lid.sh.pre will force suspend (via pm-suspend) always when lid is closed:

#!/bin/bash
# TODO:  Change the above to /bin/sh

grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
   pm-suspend
   exit  
fi
2
  • Per @Sean - "qwertypoke's script is a good work around, just remember to make the script executable." Aug 16 '13 at 4:25
  • To make the script executable, run sudo chmod +x /etc/acpi/local/lid.sh.pre. (@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.) Aug 16 '13 at 6:59
0

I'm running Lubuntu 18.04 and the configuration is under Preferences -> Power Management. The window that pops up has the name Xfce Power Manager. The setting is on the General Tab.

I'm ashamed to say I wish I had looked there sooner instead of spending a couple hours on this.

2
  • Isn't this what the accepted answers says? Jul 4 '18 at 18:31
  • More or less but for a later version. The window title has changed since this question was originally answered. Jan 28 '20 at 6:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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