Results 1 to 3 of 3

Thread: laptop won't boot with lid closed after installing nVidia driver

  1. #1

    Default laptop won't boot with lid closed after installing nVidia driver

    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?

  2. #2
    Join Date
    Jul 2018
    Location
    Loma Linda, Mo
    Posts
    153

    Default Re: laptop won't boot with lid closed after installing nVidia 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.

    Code:
    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 #
    Opensuse 15.1 with VirtualBox VM's (Windows 98, XP, 7, 8.1, 10 & OpenSUSE 15.0)

    Unix since 1974 (pdp-11 in "B" , Interdata 7/32 in "C") (AT&T, Tandy, Convergent, IBM, NCR, HP flavors)
    Linux since 1995 (mandrake, redhat, fedora, centos, now OpenSUSE)

  3. #3

    Default Re: laptop won't boot with lid closed after installing nVidia driver

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •