You are not logged in.
I have an issue with xfce4 on my laptop, specifically, when I log in. When my laptop is connected to my external monitor, I keep it closed. However, this seems to bamboozle xfce, which automatically puts my laptop into sleep when I login. This only happens when I log in right after my laptop starts up for the first time. I have to press keys on my keyboard to wake it back up, and this is getting annoying. How do I fix this? Also, please tell me if this is the right board to post this on(I'm not sure if I should post this here or on the laptop board.) Thank you!
Last edited by ZImperator (2026-03-10 14:38:02)
Offline
Try this.
Edit the /etc/systemd/logind.conf file and ensure the line that is
HandleLidSwitch=suspend
is changed to
HandleLidSwitch=ignore
cheers
Offline
If that's not it, https://archlinux.org/packages/extra/x8 … r-manager/ will most likely intercept logind anyway and handle this and since it's triggered by the login it is likely also responsible for falsely applying that state on login.
Another option would be that xfce intermittently reconfigures the outputs, deactivates the external one and thinks it's time to sleep, but from what I can tell, this hinges more on external power than extern outputs.
Is this on X11 or the experimental wayland backend?
Offline
Is this on X11 or the experimental wayland backend?
This is on X11.
Also, I am using lightdm, & so I feel that config issues should be resolved there, but I will still try the logind option.
Offline
I doubt this to be related to the DM (try the behavior when starting an openbox session) - or the logind.conf
xfce4-power-manager is optionial - do you have it installed? What happens if you remove it?
Offline
Try this.
Edit the /etc/systemd/logind.conf file and ensure the line that is
HandleLidSwitch=suspend
is changed to
HandleLidSwitch=ignorecheers
This seems to have worked. Thank you!
Offline