0

OS: Fedora 28

GPU: GTX 1050 Mobile

CPU: i7 7700HQ (Intel HD Graphics 630

I've got a worrying Nvidia GPU problem. I had everything working except for, it now seems, the actual Nvidia GPU. When trying to use optirun/primus, or even open nvidia-settings, I was told that it couldn't access the card, or load the driver. I also realized I couldn't get multiple monitors working (the reason I went down this path). I ended up using Nvidia's driver installation tutorial (https://us.download.nvidia.com/XFree86/Linux-x86_64/410.93/README/).

I thought this would work, and those errors are now gone, but so is a graphical display. When I try to startx, Xorg tells me a number of things (it seems Xorg likes to overwrite Xorg.0.log, so I only have the most recent). I ran nvidia-xconfig, so it made a very small change to the xorg.conf file. I also don't have the original xorg.conf as, even though the installation promises to make a backup, there is none. There was a 0 byte file called xorg.conf.nvidia-xconfig-original, but it doesn't matter, it's 0 bytes.

This is what Xorg.0.log has told me after invoking Xorg -configure:

[  1398.894] 
X.Org X Server 1.19.6
Release Date: 2017-12-20
[  1398.894] X Protocol Version 11, Revision 0
[  1398.894] Build Operating System:  4.18.10-200.fc28.x86_64 
[  1398.894] Current Operating System: Linux localhost.localdomain 4.20.5-100.fc28.x86_64 #1 SMP Mon Jan 28 19:29:44 UTC 2019 x86_64
[  1398.894] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.20.5-100.fc28.x86_64 root=UUID=a385ef03-34e9-4598-b6c6-057426abd381 ro resume=UUID=56d29b5e-ab61-4383-81d5-eb0e7d2b5f6e rhgb quiet LANG=en_US.UTF-8
[  1398.894] Build Date: 01 November 2018  04:04:19PM
[  1398.894] Build ID: xorg-x11-server 1.19.6-10.fc28 
[  1398.897] Current version of pixman: 0.34.0
[  1398.901]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[  1398.901] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1398.910] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Feb  2 21:58:56 2019
[  1398.910] (II) Loader magic: 0x825e00
[  1398.910] (II) Module ABI versions:
[  1398.910]    X.Org ANSI C Emulation: 0.4
[  1398.910]    X.Org Video Driver: 23.0
[  1398.910]    X.Org XInput driver : 24.1
[  1398.910]    X.Org Server Extension : 10.0
[  1398.911] (--) using VT number 1

[  1398.911] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[  1398.912] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1398.919] (EE) 
[  1398.922] (EE) Backtrace:
[  1398.924] (EE) 0: /usr/libexec/Xorg (OsLookupColor+0x13d) [0x59d77d]
[  1398.927] (EE) 1: /lib64/libpthread.so.0 (funlockfile+0x50) [0x7f84c08fa0cf]
[  1399.205] (EE) 2: /usr/libexec/Xorg (xf86PlatformMatchDriver+0x2b4) [0x4948f4]
[  1399.214] (EE) 3: /usr/libexec/Xorg (xf86BusProbe+0xd) [0x46bc6d]
[  1399.222] (EE) 4: /usr/libexec/Xorg (InitOutput+0x7ba) [0x47acaa]
[  1399.229] (EE) 5: /usr/libexec/Xorg (InitFonts+0x20d) [0x438d2d]
[  1399.237] (EE) 6: /lib64/libc.so.6 (__libc_start_main+0xeb) [0x7f84c054c11b]
[  1399.242] (EE) 7: /usr/libexec/Xorg (_start+0x2a) [0x42290a]
[  1399.247] (EE) 
[  1399.250] (EE) Segmentation fault at address 0x50
[  1399.253] (EE) 
Fatal server error:
[  1399.259] (EE) Caught signal 11 (Segmentation fault). Server aborting
[  1399.261] (EE) 
[  1399.263] (EE) 
Please consult the Fedora Project support 
     at http://wiki.x.org
 for help. 
[  1399.272] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1399.274] (EE) 
[  1399.276] (EE) Server terminated with error (1). Closing log file.

Here's the Xorg.0.log output once I've logged in non-graphically (with an xorg.conf still in /etc/X11):

[    32.819] 
X.Org X Server 1.19.6
Release Date: 2017-12-20
[    32.819] X Protocol Version 11, Revision 0
[    32.819] Build Operating System:  4.18.10-200.fc28.x86_64 
[    32.819] Current Operating System: Linux localhost.localdomain 4.20.5-100.fc28.x86_64 #1 SMP Mon Jan 28 19:29:44 UTC 2019 x86_64
[    32.819] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.20.5-100.fc28.x86_64 root=UUID=a385ef03-34e9-4598-b6c6-057426abd381 ro resume=UUID=56d29b5e-ab61-4383-81d5-eb0e7d2b5f6e rhgb quiet LANG=en_US.UTF-8
[    32.819] Build Date: 01 November 2018  04:04:19PM
[    32.820] Build ID: xorg-x11-server 1.19.6-10.fc28 
[    32.820] Current version of pixman: 0.34.0
[    32.820]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    32.820] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    32.820] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Feb  3 13:04:16 2019
[    32.821] (==) Using config file: "/etc/X11/xorg.conf"
[    32.821] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    32.821] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    32.821] (==) ServerLayout "Layout0"
[    32.821] (**) |-->Screen "Screen0" (0)
[    32.821] (**) |   |-->Monitor "Monitor0"
[    32.822] (==) No device specified for screen "Screen0".
    Using the first device section listed.
[    32.822] (**) |   |-->Device "nvidiagpu1"
[    32.822] (**) |-->Input Device "Keyboard0"
[    32.822] (**) |-->Input Device "Mouse0"
[    32.822] (==) Automatically adding devices
[    32.822] (==) Automatically enabling devices
[    32.822] (==) Automatically adding GPU devices
[    32.822] (==) Automatically binding GPU devices
[    32.822] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    32.822] (==) FontPath set to:
    catalogue:/etc/X11/fontpath.d,
    built-ins
[    32.822] (==) ModulePath set to "/usr/lib64/xorg/modules"
[    32.822] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[    32.822] (WW) Disabling Keyboard0
[    32.822] (WW) Disabling Mouse0
[    32.822] (II) Loader magic: 0x825e00
[    32.822] (II) Module ABI versions:
[    32.822]    X.Org ANSI C Emulation: 0.4
[    32.822]    X.Org Video Driver: 23.0
[    32.822]    X.Org XInput driver : 24.1
[    32.822]    X.Org Server Extension : 10.0
[    32.823] (++) using VT number 1

[    32.823] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    32.824] (II) xfree86: Adding drm device (/dev/dri/card0)
[    32.846] (--) PCI:*(0:0:2:0) 8086:591b:103c:836b rev 4, Mem @ 0xb2000000/16777216, 0xc0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[    32.846] (II) LoadModule: "glx"
[    32.846] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    32.850] (II) Module glx: vendor="X.Org Foundation"
[    32.850]    compiled for 1.19.6, module version = 1.0.0
[    32.851]    ABI class: X.Org Server Extension, version 10.0
[    32.851] (II) LoadModule: "nvidia"
[    32.851] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[    32.851] (II) Module nvidia: vendor="NVIDIA Corporation"
[    32.851]    compiled for 4.0.2, module version = 1.0.0
[    32.851]    Module class: X.Org Video Driver
[    32.851] (II) NVIDIA dlloader X Driver  410.93  Thu Dec 20 17:07:57 CST 2018
[    32.852] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    32.853] (EE) No devices detected.
[    32.853] (EE) 
Fatal server error:
[    32.853] (EE) no screens found(EE) 
[    32.853] (EE) 
Please consult the Fedora Project support 
     at http://wiki.x.org
 for help. 
[    32.853] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    32.853] (EE) 
[    32.901] (EE) Server terminated with error (1). Closing log file.

I came across an Arch forums post about something similar, in which someone suggested removing the xorg.conf file from /etc/X11. I did that, and I got a graphical login! However, this puts me back into software rendering mode with Cinnamon, which in turns gets me back to needing to work with Bumblebee. Which, is where I was at the top of this post. As noted earlier, I ended up installing the Nvidia drivers manually, and in the process had to uninstall some things I installed during the Bumblebee installation. I still have Bumblebee installed, but I had to delete the RPMFusion drivers and anything starting with kmod.

This is the xorg.conf file that nvidia-xconfig generated:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 410.93

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

I have numerous tabs open on how to handle Nvidia from different perspectives: Xorg, a guy on reddit (a more verbose Fedora Bumblebee guide), the Fedora Bumblebee guide, Arch forums, CentOS forums, and the Nvidia guide. As a 2 part subquestion: Is there a single comprehensive guide to making Nvidia work in Linux, and which perspective matters here: Nvidia's, Fedora's Bumblebee's, Xorg's, someone else's...?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.