Zorin goes to sleep when switching HDMI input – even with sleep disabled

Hi,

I’m running into a rather unusual issue with my setup.

I use this HDMI/USB switch to move between two computers on the same monitor:

My setup is the following:

  • Laptop 1: Windows
  • Laptop 2: Zorin Core 18
  • Both laptops are used with the lid closed
  • The switch connects my HDMI monitor, keyboard and mouse

Both laptops are always plugged into power.

The problem only happens on the Zorin laptop.
Whenever I switch from Zorin to the Windows laptop using the switch, the Zorin machine immediately goes to sleep.

What’s strange is that I already changed the power settings to disable sleep completely, but it still happens every time I switch the display.

When I switch back, I have to open the laptop lid to wake it up again. My session is still there, so nothing crashes, but the computer definitely doesn’t stay active.

What I would like is for the Zorin laptop to remain awake even when the monitor is disconnected by the switch, just like the Windows laptop does.

Has anyone experienced something similar or knows how to prevent this?

Thanks!

Here is a forum entry from last October re: an issue close to yours, for which a solution was found. It just may be of help. The solution is provided by applecheeks37 in post #2

1 Like

ChatGPT find the solution

Open file :

sudo nano /etc/systemd/logind.conf

Change the values :

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

And Reboot !

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.