Issue with NVIDIA 440 driver and X starting

Discussion in 'Other Operating Systems' started by daehenoc, May 15, 2020.

  1. daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,806
    Location:
    Mt Gravatt E, BNE, QLD
    Hi all,

    I have a very frustrating issue happening! I have a NVIDIA GTX1650 with a Dell 27" 4k monitor, and I get the following errors in Xorg.0.log when X is starting:
    Code:
    [     7.476] (EE) NVIDIA(GPU-0): Failed to acquire modesetting permission.
    [     7.476] (EE) NVIDIA(0): Failing initialization of X screen
    [     7.477] (II) UnloadModule: "nvidia"
    [     7.477] (II) UnloadSubModule: "glxserver_nvidia"
    [     7.477] (II) Unloading glxserver_nvidia
    [     7.477] (II) UnloadSubModule: "wfb"
    [     7.477] (II) UnloadSubModule: "fb"
    [     7.477] (EE) Screen(s) found, but none have a usable configuration.
    [     7.477] (EE)
    Fatal server error:
    [     7.477] (EE) no screens found(EE)
    [     7.477] (EE)
    
    This obviously make is pretty hard to use X. On the monitor I get the user login screen, if I click on my username I can enter the password, then the screen goes back to the username list and the mouse is completely unresponsive.

    Steps to reproduce:
    • Install clean Ubuntu destktop 20.04 - have to start the installer in safe graphics mode, otherwise can't see any thing (first clue),
    • UEFI boot,
    • Have to start the installation in safe graphics mode, even with the nouveau driver installed, install the nvidia-440 driver, reboot, and I get the problem listed above.
    Here's the full dump of the Xorg.0.log file:
    Code:
    [     5.589] (--) Log file renamed from "/var/log/Xorg.pid-791.log" to "/var/log/Xorg.0.log"
    [     5.672]
    X.Org X Server 1.20.8
    X Protocol Version 11, Revision 0
    [     5.672] Build Operating System: Linux 4.4.0-177-generic x86_64 Ubuntu
    [     5.672] Current Operating System: Linux mythtvlounge20 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x86_64
    [     5.672] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-29-generic root=UUID=93c5688c-fe99-404d-be64-8fd43605f7a9 ro quiet splash vt.handoff=7
    [     5.672] Build Date: 06 April 2020  09:39:29AM
    [     5.672] xorg-server 2:1.20.8-2ubuntu2 (For technical support please see http://www.ubuntu.com/support)
    [     5.672] Current version of pixman: 0.38.4
    [     5.672]     Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
    [     5.672] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [     5.672] (==) Log file: "/var/log/Xorg.0.log", Time: Fri May 15 13:23:24 2020
    [     5.675] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [     5.676] (==) No Layout section.  Using the first Screen section.
    [     5.676] (==) No screen section available. Using defaults.
    [     5.676] (**) |-->Screen "Default Screen Section" (0)
    [     5.676] (**) |   |-->Monitor "<default monitor>"
    [     5.676] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
    [     5.676] (==) Automatically adding devices
    [     5.676] (==) Automatically enabling devices
    [     5.676] (==) Automatically adding GPU devices
    [     5.676] (==) Automatically binding GPU devices
    [     5.676] (==) Max clients allowed: 256, resource mask: 0x1fffff
    [     5.678] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
    [     5.678]     Entry deleted from font path.
    [     5.678] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
    [     5.678]     Entry deleted from font path.
    [     5.678] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
    [     5.678]     Entry deleted from font path.
    [     5.679] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
    [     5.679]     Entry deleted from font path.
    [     5.679] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
    [     5.679]     Entry deleted from font path.
    [     5.679] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
    [     5.679] (==) ModulePath set to "/usr/lib/xorg/modules"
    [     5.679] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
    [     5.679] (II) Loader magic: 0x562e5f7a6020
    [     5.679] (II) Module ABI versions:
    [     5.679]     X.Org ANSI C Emulation: 0.4
    [     5.679]     X.Org Video Driver: 24.1
    [     5.679]     X.Org XInput driver : 24.1
    [     5.679]     X.Org Server Extension : 10.0
    [     5.679] (++) using VT number 1
    
    [     5.682] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
    [     5.682] (II) xfree86: Adding drm device (/dev/dri/card0)
    [     5.683] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 12 paused 0
    [     5.684] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/xorg/modules"
    [     5.689] (--) PCI:*(1@0:0:0) 10de:1f82:19da:1556 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
    [     5.692] (II) LoadModule: "glx"
    [     5.696] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [     5.712] (II) Module glx: vendor="X.Org Foundation"
    [     5.712]     compiled for 1.20.8, module version = 1.0.0
    [     5.712]     ABI class: X.Org Server Extension, version 10.0
    [     5.713] (II) Applying OutputClass "nvidia" to /dev/dri/card0
    [     5.713]     loading driver: nvidia
    [     6.014] (==) Matched nvidia as autoconfigured driver 0
    [     6.014] (==) Matched nouveau as autoconfigured driver 1
    [     6.014] (==) Matched modesetting as autoconfigured driver 2
    [     6.014] (==) Matched fbdev as autoconfigured driver 3
    [     6.014] (==) Matched vesa as autoconfigured driver 4
    [     6.014] (==) Assigned the driver to the xf86ConfigLayout
    [     6.014] (II) LoadModule: "nvidia"
    [     6.014] (II) Loading /usr/lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so
    [     6.022] (II) Module nvidia: vendor="NVIDIA Corporation"
    [     6.022]     compiled for 1.6.99.901, module version = 1.0.0
    [     6.022]     Module class: X.Org Video Driver
    [     6.023] (II) LoadModule: "nouveau"
    [     6.023] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
    [     6.024] (II) Module nouveau: vendor="X.Org Foundation"
    [     6.024]     compiled for 1.20.3, module version = 1.0.16
    [     6.024]     Module class: X.Org Video Driver
    [     6.024]     ABI class: X.Org Video Driver, version 24.0
    [     6.024] (II) LoadModule: "modesetting"
    [     6.024] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
    [     6.025] (II) Module modesetting: vendor="X.Org Foundation"
    [     6.025]     compiled for 1.20.8, module version = 1.20.8
    [     6.025]     Module class: X.Org Video Driver
    [     6.025]     ABI class: X.Org Video Driver, version 24.1
    [     6.025] (II) LoadModule: "fbdev"
    [     6.025] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
    [     6.026] (II) Module fbdev: vendor="X.Org Foundation"
    [     6.026]     compiled for 1.20.1, module version = 0.5.0
    [     6.026]     Module class: X.Org Video Driver
    [     6.026]     ABI class: X.Org Video Driver, version 24.0
    [     6.026] (II) LoadModule: "vesa"
    [     6.026] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
    [     6.026] (II) Module vesa: vendor="X.Org Foundation"
    [     6.026]     compiled for 1.20.4, module version = 2.4.0
    [     6.026]     Module class: X.Org Video Driver
    [     6.026]     ABI class: X.Org Video Driver, version 24.0
    [     6.027] (II) NVIDIA dlloader X Driver  440.64  Fri Feb 21 00:49:33 UTC 2020
    [     6.027] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [     6.027] (II) NOUVEAU driver Date:   Mon Jan 28 23:25:58 2019 -0500
    [     6.027] (II) NOUVEAU driver for NVIDIA chipset families :
    [     6.027]     RIVA TNT            (NV04)
    [     6.027]     RIVA TNT2           (NV05)
    [     6.027]     GeForce 256         (NV10)
    [     6.027]     GeForce 2           (NV11, NV15)
    [     6.027]     GeForce 4MX         (NV17, NV18)
    [     6.027]     GeForce 3           (NV20)
    [     6.027]     GeForce 4Ti         (NV25, NV28)
    [     6.027]     GeForce FX          (NV3x)
    [     6.027]     GeForce 6           (NV4x)
    [     6.027]     GeForce 7           (G7x)
    [     6.027]     GeForce 8           (G8x)
    [     6.028]     GeForce 9           (G9x)
    [     6.028]     GeForce GTX 2xx/3xx (GT2xx)
    [     6.028]     GeForce GTX 4xx/5xx (GFxxx)
    [     6.028]     GeForce GTX 6xx/7xx (GKxxx)
    [     6.028]     GeForce GTX 9xx     (GMxxx)
    [     6.028]     GeForce GTX 10xx    (GPxxx)
    [     6.028] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
    [     6.028] (II) FBDEV: driver for framebuffer: fbdev
    [     6.028] (II) VESA: driver for VESA chipsets: vesa
    [     6.029] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
    [     6.029] (II) systemd-logind: releasing fd for 226:0
    [     6.031] (II) Loading sub module "fb"
    [     6.031] (II) LoadModule: "fb"
    [     6.032] (II) Loading /usr/lib/xorg/modules/libfb.so
    [     6.032] (II) Module fb: vendor="X.Org Foundation"
    [     6.032]     compiled for 1.20.8, module version = 1.0.0
    [     6.032]     ABI class: X.Org ANSI C Emulation, version 0.4
    [     6.032] (II) Loading sub module "wfb"
    [     6.032] (II) LoadModule: "wfb"
    [     6.033] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [     6.033] (II) Module wfb: vendor="X.Org Foundation"
    [     6.033]     compiled for 1.20.8, module version = 1.0.0
    [     6.033]     ABI class: X.Org ANSI C Emulation, version 0.4
    [     6.033] (II) Loading sub module "ramdac"
    [     6.033] (II) LoadModule: "ramdac"
    [     6.033] (II) Module "ramdac" already built-in
    [     6.036] (WW) Falling back to old probe method for modesetting
    [     6.036] (WW) Falling back to old probe method for fbdev
    [     6.036] (II) Loading sub module "fbdevhw"
    [     6.036] (II) LoadModule: "fbdevhw"
    [     6.036] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
    [     6.042] (II) Module fbdevhw: vendor="X.Org Foundation"
    [     6.042]     compiled for 1.20.8, module version = 0.0.2
    [     6.042]     ABI class: X.Org Video Driver, version 24.1
    [     6.042] (II) NVIDIA(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
    [     6.042] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
    [     6.042] (==) NVIDIA(0): RGB weight 888
    [     6.042] (==) NVIDIA(0): Default visual is TrueColor
    [     6.042] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
    [     6.042] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
    [     6.042] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
    [     6.042] (**) NVIDIA(0): Enabling 2D acceleration
    [     6.043] (II) Loading sub module "glxserver_nvidia"
    [     6.043] (II) LoadModule: "glxserver_nvidia"
    [     6.043] (II) Loading /usr/lib/x86_64-linux-gnu/nvidia/xorg/libglxserver_nvidia.so
    [     6.144] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
    [     6.144]     compiled for 1.6.99.901, module version = 1.0.0
    [     6.144]     Module class: X.Org Server Extension
    [     6.145] (II) NVIDIA GLX Module  440.64  Fri Feb 21 00:46:14 UTC 2020
    [     6.147] (II) NVIDIA: The X server supports PRIME Render Offload.
    [     7.474] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
    [     7.474] (--) NVIDIA(0):     DFP-0
    [     7.474] (--) NVIDIA(0):     DFP-1 (boot)
    [     7.474] (--) NVIDIA(0):     DFP-2
    [     7.474] (--) NVIDIA(0):     DFP-3
    [     7.476] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1650 (TU117-A) at PCI:1:0:0 (GPU-0)
    [     7.476] (--) NVIDIA(0): Memory: 4194304 kBytes
    [     7.476] (--) NVIDIA(0): VideoBIOS: 90.17.2a.00.7e
    [     7.476] (II) NVIDIA(0): Detected PCI Express Link width: 16X
    [     7.476] (EE) NVIDIA(GPU-0): Failed to acquire modesetting permission.
    [     7.476] (EE) NVIDIA(0): Failing initialization of X screen
    [     7.477] (II) UnloadModule: "nvidia"
    [     7.477] (II) UnloadSubModule: "glxserver_nvidia"
    [     7.477] (II) Unloading glxserver_nvidia
    [     7.477] (II) UnloadSubModule: "wfb"
    [     7.477] (II) UnloadSubModule: "fb"
    [     7.477] (EE) Screen(s) found, but none have a usable configuration.
    [     7.477] (EE)
    Fatal server error:
    [     7.477] (EE) no screens found(EE)
    [     7.477] (EE)
    Please consult the The X.Org Foundation support
         at http://wiki.x.org
     for help.
    [     7.478] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    [     7.478] (EE)
    [     7.481] (EE) Server terminated with error (1). Closing log file.
    I can't find a solution and I'm tearing my hair out! Ah, slogging through this https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1543192, if I set 'WaylandEnable=False' in /etc/gdm3/custom.conf, I get the desktop, hooray! But the mouse and keyboard don't work, boo!

    Even more irritating, if I use Ubuntu Budgie, the video Just Works!!! No issues in the installer or desktop!!

    The reason I'm not using Budgie is that desktop environment requires gnome-screensaver, which I don't want to use, I want to use xscreensaver to be able to use the aerial screensaver. Can anyone help!?

    (Hey, if there's a way of pissing off or disabling gnome-screensaver in favor of xscreensaver, that would work too!!)

    (Additional information, Asus P8H77-I motherboard, 4Gb RAM, Pentium G2020@2.9GHz)
     
    Last edited: May 15, 2020
  2. GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    9,832
    Location:
    Briz Vegas
    Take a screen shot of Nvidia panel please.
    nvidia.png

    Should look like this.
     
  3. OP
    OP
    daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,806
    Location:
    Mt Gravatt E, BNE, QLD
    I would love to be able to! With Wayland enabled in /etc/gdm3/custom.conf, I can't login to the desktop. With it disabled, the mouse and keyboard are powered on but unresponsive :(

    Edit: Went back and did a fresh install, adding the nvidia-440 driver during the installation process (instead of afterwards, when X was running on nouveau), but same result :(

    Edit edit: There may be something weird happening between the rather old motherboard and brand new video card, I may just go and purchase a new bloody motherboard/RAM/CPU and try that!
     
    Last edited: May 15, 2020
  4. OP
    OP
    daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,806
    Location:
    Mt Gravatt E, BNE, QLD
    I have diagnosed the issue!!! When I set automatic login for the only user on the system (it's a mythtvfrontend), I get those X log errors. Editing the /etc/gdm3/custom.conf file like this:
    Code:
    #AutomaticLoginEnable=True
    #AutomaticLogin=daehenoc
    FIXES THE PROBLEM. Of course I have to logon to the desktop, which doesn't meet my requirements. Does anyone have any recommendations to have my user automatically log in? I suspect that I'll have to change desktop managers, maybe?

    For completeness, here is my NVIDIA X Server Settings:
    foo.png
     
  5. GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    9,832
    Location:
    Briz Vegas
    Google
    https://techpiezo.com/linux/enable-or-disable-automatic-login-in-ubuntu-20-04/
    https://help.ubuntu.com/community/AutoLogin

    EDIT be sure to do this ti fix splash screen loop
    http://ubuntuhandbook.org/index.php...n-enabled-in-ubuntu-19-10-with-nvidia-driver/
     
    Last edited: May 15, 2020
    daehenoc likes this.
  6. elvis

    elvis Old school old fool

    Joined:
    Jun 27, 2001
    Messages:
    44,048
    Location:
    Brisbane
    You can do away with a login manager all together, and just run a user-level "startx" from a tty.

    There's a few things you need to do (a bit of winding back security stuff in getty from memory), but I've done it this way before for old MAME cabinets and things.

    Alternatively, try different login managers? LightDM or SDDM instead of GDM, for example?
     
    daehenoc likes this.
  7. OP
    OP
    daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,806
    Location:
    Mt Gravatt E, BNE, QLD
    Thanks very much elvis and GumbyNoTalent! I've got LightDM installed and it does successfully automatically log on, hooray!!!

    (Once I get my Ubuntu One account fixed up, I will report a bug...)
     
    elvis likes this.
  8. OP
    OP
    daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,806
    Location:
    Mt Gravatt E, BNE, QLD
    ALL FIX0RED!!!

    I fixed it by replacing the whole bloody thing with a NUC8i5BNH, and how about that, the NUC does 4k right off the bat, no problems at all. So I can now have a nice new MythTV frontend that uses the aerial screensaver, hooray!! (The videos are sooo pretty!)
     
    Sipheren likes this.
  9. elvis

    elvis Old school old fool

    Joined:
    Jun 27, 2001
    Messages:
    44,048
    Location:
    Brisbane
    This, friends, is why we need open source drivers.
     
  10. Sipheren

    Sipheren Member

    Joined:
    Aug 14, 2002
    Messages:
    3,450
    Location:
    Gold Coast
    I just upgraded to 20.04 and had this exact issue, seems the auto login function has some weird bug with nVidia. Didnt have any issues on my main rig with AMD. It's annoying as I like them both to just auto log in, guys it will be sorted soon.
     
  11. chook

    chook Member

    Joined:
    Apr 9, 2002
    Messages:
    3,789
    <sarcasm>No, we need developers because Linux is a cancer.</sarcasm>

     
  12. OP
    OP
    daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,806
    Location:
    Mt Gravatt E, BNE, QLD
    Yes, that's what I meant to follow up with - using gdm, an NVIDIA card and auto-login, X fails to start (see above X logs), replacing gdm with LightDM, X and auto-login just work.

    I have a few dramas with my Ubuntu One account, once that is fixed up, I mean to post an issue.
     
    Sipheren likes this.
  13. flu!d

    flu!d Never perfect, always genuine

    Joined:
    Jun 27, 2001
    Messages:
    19,333
    This is why I don't run the latest LTS until at least the first point release. ;)
     
    Sipheren likes this.
  14. Sipheren

    Sipheren Member

    Joined:
    Aug 14, 2002
    Messages:
    3,450
    Location:
    Gold Coast
    I couldn’t help myself, updated my web server as well, though it’s headless so no issues :)
     

Share This Page

Advertisement: