Kernel does not show monitor attached to nvidia quadro P2000 : xrandr fails and monitor black therefore

Hi
nvidia PCI card does not present all display ports to the kernel

ls -l /sys/class/drm/*/status
-rw-r–r-- 1 root root 4096 25. Mär 02:45 /sys/class/drm/card0-DP-1/status
-rw-r–r-- 1 root root 4096 25. Mär 02:45 /sys/class/drm/card0-DP-2/status
-rw-r–r-- 1 root root 4096 25. Mär 02:45 /sys/class/drm/card0-HDMI-A-1/status
-rw-r–r-- 1 root root 4096 25. Mär 02:45 /sys/class/drm/card0-HDMI-A-2/status
-rw-r–r-- 1 root root 4096 25. Mär 02:45 /sys/class/drm/card0-HDMI-A-3/status
cat /sys/class/drm/*/status
disconnected
disconnected
connected
disconnected
disconnected
dmesg| grep nvidia
[ 2.933930] nvidia: loading out-of-tree module taints kernel.
[ 2.933939] nvidia: module license ‘NVIDIA’ taints kernel.
[ 2.946134] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 3.035663] nvidia-nvlink: Nvlink Core is being initialized, major device number 236
[ 3.036528] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[ 3.195746] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 525.147.05 Wed Oct 25 20:21:31 UTC 2023
[ 3.198139] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 3.198140] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[ 4.212425] audit: type=1400 audit(1711331032.200:6): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“nvidia_modprobe” pid=1331 comm=“apparmor_parser”
[ 4.212436] audit: type=1400 audit(1711331032.200:7): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“nvidia_modprobe//kmod” pid=1331 comm=“apparmor_parser”

so xorg cannot see the 2nd monitor connected to DP-3 or >.
I changed the connector to another socket, but it did not change the content of /sys/…
MS widow10 reports the Monitor as DVI , as I have a DP 2 DVI adapter for the monitor

How to set nvidia card Quadro P2000 to show all 8 display ports ? (4 internal, 4 on backplane)
my xorg.conf is hand made and surely not the last wisdom
xorg.conf with xinerama works, but has undisplayed parts, as monitors do not have the same size.
uploading nvidia-bug-report.log.gz (1.1 Mb) fails, ?
“Sorry, there was an error uploading nvidia-bug-report.log.gz. Please try again.” Chromium and firefox
My Intent is to use Intel GPU for graphics, and NVIDIA for CUDA etc.

Please try to unzip and upload the log.

Sorry, there was an error uploading nvidia-bug-report.log. Please try again.

applies to all files .txt, .conf

Please try uploading it to pastebin.

https://pastebin.com/XKRQcf8G xorg.conf.xinerama
xrandr skript - Pastebin.com xrandr script

nvidia-bug-report.log File too big !
Try this:
https://some server@.dyn.lihas.de/nvidia-bug-report.log

Please delete /etc/X11/xorg.conf and set kernel parameter nvidia-drm.modeset=1
Please create /etc/X11/xorg.conf.d/nvidia-primary.conf

Section "OutputClass"
    Identifier "nvidia-primary"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "PrimaryGPU" "true"
EndSection

After login, please run xrandr --setprovideroutputsource modesetting NVIDIA-0 && xrandr --auto to enable output on the intel outputs.

1 Like

That works like a charm - thanks

and then does not survive a reboot.
Need to repeat the command
xrandr --setprovideroutputsource modesetting NVIDIA-0 && xrandr --auto
and repeat Arandr in in the mate menu , to sort out my displays
I need this xrandr in /etc/X11/xsession.d for several users

Yes, you need to set it to autostart. Which login manager are you using?

I use lightdm + mate , but I have 4 users on this host. So fixes should be on the X server level.
xrandr --setprovideroutputsource modesetting NVIDIA-0 && xrandr --auto
This takes about 5 seconds on the HDMI screen, until display shows up.

On my previous installation I had it in /etc/X11/Xsessions.d/45-custom-xrandr-settings.sh. Which worked fine for many years( but on a single GPU installation).

Lightdm starts the Xserver so its config is the correct location:
https://wiki.archlinux.org/title/NVIDIA_Optimus#LightDM

1 Like

That works fine now.
My /etc/lightdm/display_setup.sh is now :

#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
# xrandr --auto

xrandr --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off --output DP-5 --off --output DP-6 --off --output DP-7 --mode 1440x900 --pos 1920x0 --rotate normal --output HDMI-1-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1-1 --off --output HDMI-1-2 --off --output DP-1-2 --off --output HDMI-1-3 --off

last line is the output from the Arandr manual setup

Thank you for the help.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.