Fedora 37 + GM107GLM [Quadro M1000M]

Hello all, good morning

I just did the update from Fedora 36 to Fedora 37, and after long time, I decided to use the Nvidia driver.

Let me share some information about my machine.

# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM107GLM [Quadro M1000M] (rev a2)

and more in detail

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device 222e
        Flags: bus master, fast devsel, latency 0, IRQ 141
        Memory at c2000000 (64-bit, non-prefetchable) [size=16M]
        Memory at 60000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 5000 [size=64]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: [40] Vendor Specific Information: Len=0c <?>
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [100] Process Address Space ID (PASID)
        Capabilities: [200] Address Translation Service (ATS)
        Capabilities: [300] Page Request Interface (PRI)
        Kernel driver in use: i915
        Kernel modules: i915

and

01:00.0 VGA compatible controller: NVIDIA Corporation GM107GLM [Quadro M1000M] (rev a2) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device 222e
        Flags: bus master, fast devsel, latency 0, IRQ 152
        Memory at c3000000 (32-bit, non-prefetchable) [size=16M]
        Memory at b0000000 (64-bit, prefetchable) [size=256M]
        Memory at c0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 4000 [size=128]
        Expansion ROM at c4080000 [virtual] [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [250] Latency Tolerance Reporting
        Capabilities: [258] L1 PM Substates
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Capabilities: [900] Secondary PCI Express
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

So, before, my machine was using nouveau by default, but I disabled it and now I’m using nvidia module.

# lsmod | grep nou
# lsmod | grep nv
nvidia_drm             73728  13
nvidia_modeset       1216512  15 nvidia_drm
nvme                   61440  2
nvme_core             196608  5 nvme
nvidia              56389632  701 nvidia_modeset
nvme_common            24576  1 nvme_core

Pretty well, after the driver installation, I got some issues to start the UI, then I ran nvidia-xconfig which created the file /etc/X11/xorg.conf, after that, I was able to start the UI and login.

Attention point here, I have my laptop + 2 external monitors, only the external monitors got signal, my laptop still black screen.

Here you can see my current xorg.conf

# cat /etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 525.78.01

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

Section "Files"
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         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung S24F350"
    HorizSync       30.0 - 81.0
    VertRefresh     50.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro M1000M"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-3.3"
    Option         "metamodes" "DP-1: nvidia-auto-select +0+0, DP-3.3: nvidia-auto-select +1920+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

I also use OBS and with this setup, only 2 external monitors, I was able to get 60FPS and no issues at all (this was the main reason to be using the nvidia driver).

Moving on, I saw another post which the recommendation was to delete the /etc/X11/xorg.conf. I did that, I was able to see the monitor from my laptop. However, when opening the OBS, the FPS fall to 25~20 and I started losing a lot of information.

So, my question is, is that possible to use the nvidia driver with fedora 37, also enabling the laptop monitor + keeping 60FPS?

Ps.: Two more points that I noticed, once I removed my laptop from the dock, the screen is still black, so, only restarting the same to get the screen back, or reconnecting to the dock, which I did and worked as expected.

The second point is, using the nvidia-settings I setup which monitor should be on left and which one should be on the right side, applied the conf, saved and restarted. I saw that the conf file got updated. However, all the time when restarting the machine, the screen was back to the original position, which means, the wrong one.

Thank you in advance.
Waldirio
nvidia-bug-report.log.gz (364.0 KB)

Hello,

Complementing, when removing the laptop from dock, and restarting the same, I have no screen, it still blank, so, when connecting the hdmi cable, I can see the login screen.

Thank you in advance for any help.
Waldirio

Please delete /etc/X11/xorg.conf and reboot. The nvidia gpu will then be in offload mode, to make use of it, prepend
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
to the application you want to run on the nvidia gpu, e.g.
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears
To make the nvidia gpu default for everything, see
https://rpmfusion.org/Howto/Optimus#NVIDIA_PrimaryGPU_Support