DELL Precision M4800 laptop with nVidia GK106GLM [Quadro K2100M] graphics card and external AOC 4K monitor. running OpenSUSE Leap 14.1.
When running with nouveau it would boot with laptop lid closed and external monitor connected, but it would occasionally freeze after a while particularly when the screen saver was active.
Since nouveau is known to have problems with some nVidia cards, I installed nVidia driver using YaST from https://download.nvidia.com/opensuse/leap/15.1.
Now it won’t boot with the lid closed. It seems to get to the point where it displays a screen with three green squares on the external monitor and then it should go to the login screen, but instead it goes into some sort of hibernation state from which it can’t recover even if I open the lid. If I boot with the lid open, it boots rather more slowly than with nouveau but does come up with the login screen and I can log in and run normally.
I checked the System Settings Power Management behaviour for “When laptop lid closed”. It was set to “Suspend” (which I don’t think it was before) so I changed to to “Do nothing” for both myself and root, but this didn’t help.
I can’t even remove the nVidia driver because the on-line instructions for doing so are out of date and the files referred to don’t exist on this version of OpenSUSE.
I have a full Hardware Info file, but it’s too big to post.
Can anyone help, either to fix the problem or return to the nouveau driver?
look for the file /etc/systemd/logind.conf and change the line to HandleLidSwitch=ignore
it should look like this - If fixed my Dell 7470 that would not boot with the lid closed.
LLR6:/etc/systemd # cat 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
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=no
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%
LLR6:/etc/systemd #
Yes, that fixes the boot problem.
Thanks
It would be nice to know how to go back to the nouveau driver if I still want to.