"switch off display" when lid closed doesn't work in XFCE

Hello,

I’d like to close the laptop and use an external display with HDMI.
I choose the option “Switch off display” at “When laptop lid is closed” in the “Xfce Power Manager”.
The laptop is then in suspend/hibernate mode.
It’s not a hardware problem, because it works fine with KDE.

Try this:

Power Settings for laptop with external monitor:

etc/systemd/logind.conf

Uncomment the following:

LidSwitchIgnoreInhibited=yes
HandleLidSwitch=ignore

Then restart computer

1 Like

Thanks for the quick help. But it didn’t work.

I use XFCE.

At the time I was using Arch Linux and in this post I found the solution: Laptop lid close "do nothing" / Laptop Issues / Arch Linux Forums

Now my Lenovo has it in the BIOS of the lid closing behavior.

1 Like

Have you checked the solutions in similar threads?
https://forum.manjaro.org/search?q=xfce%20lid%20monitor

1 Like

Strange:
I followed this:


And changed ‘IgnoreLid’ from ‘false’ to ‘true’. After a restart: HDMI didn’t work at all!
I unchanged it then (made it ‘false’ again) but still: HDMI doesn’t work at all.
I also tested another HDMI cable.
I don’t know what happen.

Did you restart the service?
“Note that you have to then restart this service: sudo systemctl restart upower.service”

1 Like

No I didn’t I just restarted the laptop. .
But now I’ve installed Manjaro KDE because I had also some other issues.
So maybe closing this thread is appropriate.

Thanks for all the answers.

1 Like

try this i have found this on another thread

Below configuration is working fine:
HandleLidSwitch=ignore in /etc/systemd/logind.conf
IgnoreLid=true in etc/UPower/UPower.conf

im using manjaro xfce and after doing this it works perfect
:wink:
and don’t forget to switch your hdmi as primary display.