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

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1841826

Title:
  Going to sleep instead of logging in while lid closed & external
  display

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1841826/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to