Comment 39 for bug 1841826

Revision history for this message
Shadrin Ilya (ishadrin) wrote (last edit ):

The problem is that laptop go to suspend during boot because lid is closed. The behavior is actually highly depends on the hardware you use. It works for me with Lenovo Thinkpad P52 + Lenovo Thinkpad Thunderbolt 3 Gen2 dock station.

Here is my full logind.conf:

#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=lock
HandleLidSwitchExternalPower=lock
HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

Here is the ways i found to deal with that:

1) Play with logind.conf params (https://www.freedesktop.org/software/systemd/man/logind.conf.html - manual for configuration)

2) Use gnome-tweaks to disable suspend on lid closed (it actually creates ~/.config/autostart/ignore-lid-switch-tweak.desktop to achieve this) - does nothing for me

3) There is an option (which i use in combination with logind.conf) in Lenovo BIOS to use external docked monitor as main screen during boot - check if there is similar option in your BIOS.

Please, let us know if you will find a solution for your hardware