Zorin OS 17.2 Lite Freezes after kept idle (laptop lid closed)

Yes, that is the same. Good that you found a workaround but still annoying. I'm also not sure if the command listed there could still help or if it isn't already set in the file anyway.

"HandleLidSwitch=ignore" in logind.conf

In the meantime, I have disabled most of the screen saver functions and energy saving settings, as they caused problems on my laptop when playing videos (while watching system goes in suspend or network connection is disconnected ...)

Perhaps a simple restart helps?

1 Like

Restarted every time after thinking I had a solution and getting to the freeze point again.
Ref. to the issue in works, open for 6 years already. It's literally #1 issue, lol:

As yet another possible trick: (I haven't tested it):
disabling XFCE window compositor in the XFCE Settings Manager --> Windows Manager Tweaks --> Compositor(tab) --> Enable display compositing (uncheck the checkbox)

1 Like

That looks if only disabling screensaver helps. If there are further problems you can try to disable it at session and startup.

I've edited my replies above as it looks like my system was behaving erratically, perhaps because I had forced-shutdown it many times when it was frozen. It turns out that at that seemingly "frozen screen", you can:

  • blindly type the password to login "normally".
  • ctrl-alt-F1 to get to a terminal to shutdown -r 0 properly
  • or, from said terminal, top to see running processes, find the xfce4 screensaver process and its PID number then kill pidnumber then ctrl-alt-F7 to get back to normal screen

After more experimentation, I understand this:

  • For changes to HandleLidSwitch in "/etc/systemd/logind.conf" to have any effects, it's crucial that the boolean logind-handle-lid-switch be set to true in Xfce's Settings editor, or via command line, as shown in my reply above.
  • Once that is set true then the Power Manager's options for System -> "Laptop Lid" in are ignored, but other settings within that manager, in particular Security -> "Lock screen when system is going to sleep" are still in effect.
  • But there's no need to let logind manage the Lid switch, unless one doesn't want any of the 3 options for it in Power manager (Suspend, Lock, Switch off display)
  • The issue with Xfce4 Power Manager is Locking/Unlocking in conjunction with Lid opening (when the Lid is opened, unlocking doesn't show the login screen but the desktop, however it accepts login input to unlock...)

Thus, until Xfce's devs fix that notorious issue, this should work for me:

  1. let Power Manager, not logind, manage the Lid (set logind-handle-lid-switch to FALSE/unchecked in Xfce's Settings editor, xfce4-power-manager )
  2. don't let Power Manager lock (via the "Laptop Lid" and "Security" options in "System" tab)
  3. When need to, always lock explicitly via Start menu or shortcut keys.
    So, Super+L then close lid => when open the lid, unlocks fine regardless whether Lit was set to suspend or just to turn off the screen.

Do you mean the solution to remove or disable xfce4-screensaver and replace with light-locker?
Some report that then the bug still appears: see several replies starting from this one on that Issue tracker. Though it could be less of an issue:

With light-locker desktop is visible only for 1-2 seconds, then I get back to the login/lock screen.

Can you please explain how to do this?
Did you edit something at
etc/systemd/logind.conf
or did you only set the logind-handle-lid-switch to true?

It sounds like you are a real professional!

Oh, it's exactly as we discussed above, see graphical or cmd option: Zorin OS 17.2 Lite Freezes after kept idle (laptop lid closed) - #20 by vic
And it takes effect immediately (no restart needed).
EDIT: just set that to FALSE, nothing else

It sounds like you are a real professional!

Nah, I'm just trying to make sense of what I can as a non-programmer.

1 Like

Yes, that's what I meant. In the meantime, however, I've read through all the posts about it, and it doesn't seem to help that much either - or only at the expense of subsequently missing functions.

I also only lock my system manually (start menu or keyboard shortcuts) and have switched off display management in the power manager.

1 Like

Yes, if download Tweaks in Core, it has (only) an option to choose whether Lid-closing suspends or not; if yes, it auto-locks, if not, it just turns off the screen.
Thus, as a ... consolation (EDIT: to Lite users), Core doesn't offer more GUI options here.

@vic Oh, I see. You can only edit it in the etc/systemd/logind.conf file:

My approach above is not bullet-proof :face_with_diagonal_mouth:: I just experienced an instance when the setting for the Lid in Power Manager was to "Switch off Display", and logind was set to False as explained earlier, and still closing-opening the lid made the screen "frozen".

But, :light_bulb:here's another solution that, from my initial tests, preserves auto-lock on Lid close without "freezes".
UPower are the "eyes" of Xfce's power manager for Lid opening / closing. (I confirmed this in a few tests).
If you disable that by:
sudo nano /etc/UPower/UPower.conf
IgnoreLid=true
then after saving:
sudo systemctl restart upower.service
(or reboot laptop)
then the options for "Laptop Lid" in Power Manager's "System" tab vanish.

Now if Xfce's Settings Editor option for "xfce4-power-manager" -> "logind-handle-lid-switch" are set to FALSE, then the Lid is totally ignored. (Except that, on close, the screen power still turns off, at least on my laptop.)

But if you set that to TRUE (check mark), then taken action is determined by what you have in "/etc/systemd/logind.conf" for HandleLidSwitch and friends.
(To effect changes in that file, need:
sudo systemctl restart systemd-logind.service
or reboot the laptop).
The setting can be one of: "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", "suspend-then-hibernate", and "lock" (see man logind.conf).