I'm running Linux Mint 19 Tara. When I'm running cinnamon with connected external monitor and I close the lid, notebook goes to suspend mode. This is my expected behavior.

But running xfce, closing the lid just makes external monitor the primary monitor. Moving all xfce panels and windows from notebook's display there.

I've set up xfce power manager to put the computer to suspend.
I found, that there suppose to be some advanced settings button.
This button is not avaliable.

Xfce Power Manager 1.6.1 Version

:~# xfce4-power-manager -V
Xfce Power Manager 1.6.1

Xfce Power Manager Settings Version

:~# xfce4-power-manager-settings -V
This is xfce4-power-manager version 1.6.1, running on Xfce 4.12.
Built with GTK+ 3.22.30, linked with GTK+ 3.22.30.

EDIT - As @xenoid correctly commented, for most people, expected behaviour is to move all windows to external monitor when the lid is closed. I do not want this behaviour, I'd like to put my computer to sleep. It works under cinnamon.

  • Where I work, people have a laptop but the desks all have a pair of displays, a keyboard and a mouse. People work with the closed laptop in a corner of their desks. When a display is connected, not having the laptop go to sleep when you close the lid is the expected behavior.
    – xenoid
    Oct 30, 2018 at 13:01
  • @xenoid Your are right. Nevertheless my expected behaviour is as stated in the question. I've edited the question to reflect this. Oct 30, 2018 at 20:40

1 Answer 1


So I asked on xfce forums. This is their answer to my question.

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -n -t bool -s false

xfconf-query is a comannd line utility for xconf system
xfce4-power-manager is a power manager
-p means modifying a property
-n means to create a new property
-t of type, here bool
-s set value (here false)

Also alternatively in /etc/systemd/logind.conf, there is a setting HandleLidSwitch=suspend

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .