0

I've installed Ubuntu 22.04.3 LTS and configured all my environments, but when I was about to close my laptop lid, I encountered an issue. Instead of suspending, the external monitor continues to operate.

First, I attempted to install gnome-tweaks, but unfortunately, it doesn't seem to resolve the problem: the relative option was already enabled, yet the issue persists. Next, I tried modifying the /etc/systemd/logind.conf file. Specifically, I commented out the following lines:

HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=suspend

After running systemctl restart systemd-logind.service, I still couldn't suspend my external monitor.

What other steps can I take to address this issue?
Thanks in advance.

ma4stro
  • 101
  • 1
    In the System Settings then Power settings is both On Battery power and When Plugged in for When the lid is closed.... set to Suspend? – Terrance Oct 04 '23 at 23:15
  • There isn't that option on my Settings > Power tab – ma4stro Oct 05 '23 at 09:27
  • "I commented out the following lines" ....wait, aren't those supposed to be uncommented for them to work? If they are uncommented and still not working you more than likely have a bug. Closing the lid should suspend the unit. When that happens the external monitor will turn off. If it is not, then the system is not suspending. If you choose to suspend from the power menu and it suspends then you have a bug that is not engaging when you close the lid to the laptop. – Terrance Oct 05 '23 at 14:26
  • Every line in that file started with #. I removed it from the line I reported. But, as previously, when I close the lid the system doesnt suspend, in fact the external monitor keeps working. – ma4stro Oct 05 '23 at 20:11

1 Answers1

0

I found out the answer to this question and I followed All Ubuntus and Ubuntu 22.04 (Upower based) sections to solve my problem.

ma4stro
  • 101