I have my laptop connected to an external monitor via hdmi. In display manager, the laptop screen is already turned off. When I close the laptop lid, I expect nothing to happen thusly. However in reality the external monitor goes black because the laptop has suspended. How do I make it behave?
Hi, I don’t really see what an on disk memory pool has to do with unwanted suspending? You might be thinking of hibernating and saving state to disk which to reiterate is even further from what I want.
I also do not want a swap because it murders my ssd writes.
Also, the reason I suggested the swap file is because I was having the same issue with my laptop when I first got it and I made the swap file and the problem went away.
I already read that on another forum but it doesn’t seem to do anything (I have rebooted since editing)
$ cat /etc/systemd/logind.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodes=400k
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
What’s interesting is that I can initiate a reboot, then close the lid and all the bios will show on the external monitor, unlock the disk, and show the login screen just fine. But as soon as I log in, the system suspends itself and the screen goes black.
I’ve edited the logind.conf file to ignore all of the lid related stuff, and tried every permutation of power/lid related config I can find in the GUI tools. Full reboot after every single config change.
Any thoughts or suggestions?
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 1.8T 0 disk
├─nvme0n1p1 259:1 0 300M 0 part /boot/efi
├─nvme0n1p2 259:2 0 1.8T 0 part
│ └─luks-dc5a97cc-2ec8-4d6e-8ccd-4de5363805c3
│ 254:0 0 1.8T 0 crypt /
└─nvme0n1p3 259:3 0 32.3G 0 part
└─luks-0dd82f96-39b7-491b-bb20-df201f270653
254:1 0 32.3G 0 crypt [SWAP]
You can now close the lid, and the laptop screen will turn off, while the session remains uninterrupted.
Edit: nvm , even though the laptop screen goes black, it doesn’t turn off. It is still being rendered to in the background, I know this because I get screen tearing on my external monitor when both laptop and monitor are on (laptop is 60.1Hz, the monitor 60.0Hz). Disabling the laptop display in the display settings manually reintroduces de bug. Not doing so introduces screen tearing.
That’s like dropping a nuke. It’s not like I never want it to act on it. I just don’t want it to disable my ext monitor. It can disable the built in display all it wants. In any case I have already achieved the desired behaviour, but thanks for the help.