scrambled screen with nvidia driver

I replaced nvidia-drm by nvidia-modeset on kld_list. I also removed nvidia-drm-66-kmod-580-580.159.04.1500068 completely.
Code:
# sysrc kld_list

kld_list:  nvidia-modeset fusefs coretemp sem cpuctl ichsmb cuse libiconv cd9660_iconv msdosfs_iconv udf_iconv linux64 fdescfs linprocfs linsysfs
Code:
# pkg info | grep nvidia
libva-nvidia-driver-0.0.17     NVDEC-based backend for VAAPI
linux-nvidia-libs-580-580.159.04 NVIDIA graphics libraries and programs (Linux)
nvidia-driver-580-580.159.04   NVIDIA graphics driver userland
nvidia-kmod-580-580.159.04.1500068 NVIDIA graphics driver kernel module
nvidia-settings-595.80         Display Control Panel for NVIDIA graphics
nvidia-xconfig-595.80          NVIDIA graphics X configuration utility

The X session terminates immediately, but I don't see the jumbled blocks of color anymore.
 
I don’t use nvidia-settings & nvidia-xconfig pkgs.
$ pkg info | grep nvidia
nvidia-driver-580-580.159.04 NVIDIA graphics driver userland
nvidia-kmod-580-580.159.04.1500068 NVIDIA graphics driver kernel module

My etc/X11/xorg.conf.d/10-nvidia.conf:
Code:
Section "Device"
    Identifier "Card0"
    Driver     "nvidia"
EndSection

How do you start X windows? Could it be that it doesn’t find a critical program?
If this still doesn’t work, I suggest filing a bug report.
 
My apologies I added the wrong Xorg.0.log file
This is the correct one

Only one warning , no ERRORs in this Xorg.0.log

[ 53.332] (WW) NVIDIA(0): Option "PrimaryGPU" is not used

So maybe the option PrimaryGPU should be used in the configuration.

Also why is screen connected to the third Displayport connector on the CARD ?
Is there a phyiscal obstacle on the Box that prevents you from using the first displaypport connector DFP-0 ?

in responce #22 above you had not cleaned up the installation sinc all the DRM driver and config statments was still visible in
/boot/loader.conf and /etc/rc.conf and the drm driver was loaded in the kernel .
 
As drsnx60 noted, no errors seen in the latest log.
Looks sane log for old-school configuration without DRM stuff.

So what need to confirm would be:
  • Is your computer affected a notebook?
  • If so, the scrambled screen is seen on internal monitor? Or on external monitor (Eizo CS2420) you're connecting via DisplayPort?
  • If the former (internal monitor of notebook), are you disabling iGPU via UEFI firmware or legacy BIOS? Or hybrid graphics is mandatory?
  • If the latter, what happenes if you exchange the monitor cable (would be DP or DP over USB), if you have any spare ones?
  • Do you have some special config in your ~/.xinitrc (if you're starting X11 via command line) or ~/.xsession (if you're starting X11 with any display manager like xdm or sddm)?
Note that if you're forced to use hybrid graphics (Optimus) as of the disabilities of UEFI firmware/legacy BIOS to disable iGPU, you'll need Option "PrimaryGPU" "yes" for ONLY ONE GPU.

And for me, Quadro P1000 (notebook) in ThinkPad P52 is running fine with X11 (xorg, not xlibre) on stable/15 using
  • x11/nvidia-kmod-580
  • x11/nvidia-driver-580
  • graphics/drm-612-kmod
  • graphics/nvidia-drm-612-kmod-580
that NVIDIA driver version at 580.159.04. If not, I've not submitted upgrade (committed at git ports a5c3712ee63c).
 
And for me, Quadro P1000 (notebook) in ThinkPad P52 is running fine with X11 (xorg, not xlibre) on stable/15 using
  • x11/nvidia-kmod-580
  • x11/nvidia-driver-580
  • graphics/drm-612-kmod
  • graphics/nvidia-drm-612-kmod-580
that NVIDIA driver version at 580.159.04. If not, I've not submitted upgrade (committed at git ports a5c3712ee63c).
What do "kldstat | grep nvidia" and "sysrc kld_list" show?
 
What do "kldstat | grep nvidia" and "sysrc kld_list" show?
For me (working state on ThinkPad P52 with Quadro P1000, stable/15),
Code:
% kldstat | grep nvidia 
33    2 0xffffffff8495f000   1662f8 nvidia-modeset.ko
34    2 0xffffffff84c00000  606e418 nvidia.ko
38    1 0xffffffff84b0c000    14a20 nvidia-drm.ko
%
Code:
% sysrc kld_list
kld_list: smbfs.ko filemon.ko cuse.ko fusefs.ko iichid.ko sysctlbyname_improved.ko sysctlinfo.ko acpi_video.ko nvidia-modeset.ko nvidia-drm.ko linux.ko linux64.ko
%

Not adding anything GPU specific at /usr/local/etc/X11/xorg.conf.d, but have below which is installed as part of graphics/nvidia-drm-612-kmod-580.
Code:
% cat /usr/local/share/X11/xorg.conf.d/20-nvidia-drm-outputclass.conf
Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "PrimaryGPU" "yes"
    ModulePath "/usr/local/lib/nvidia/xorg"
    ModulePath "/usr/local/lib/xorg/modules"
EndSection
%
 
This still not found by "pkg search" with kmods_latest so I guess I will build this locally and see what happens!
Currently, kmods repo is still NOT functioning fine for NVIDIA things.

Admins of kmods repo are willing to look into why (we [NVIDIA driver ports team] already finished doing what they requested to us), but they still cannot take enough time to dig into, as far as I've heared.

So anyone require anything other than x11/nvidia-kmod and running newer base minor versions than the oldest supported version of the major version (i.e., 14.4 for 14.x as 14.3 is the oldest supported) are adviced to build x11/nvidia-kmod-{304|340|390|470|580|devel} and graphics/nvidia-drm-{510|515|61|66|612|latest}-kmod{-580|-devel} from ports.
 
As drsnx60 noted, no errors seen in the latest log.
Looks sane log for old-school configuration without DRM stuff.

So what need to confirm would be:
  • Is your computer affected a notebook?
  • If so, the scrambled screen is seen on internal monitor? Or on external monitor (Eizo CS2420) you're connecting via DisplayPort?
  • If the former (internal monitor of notebook), are you disabling iGPU via UEFI firmware or legacy BIOS? Or hybrid graphics is mandatory?
  • If the latter, what happenes if you exchange the monitor cable (would be DP or DP over USB), if you have any spare ones?
  • Do you have some special config in your ~/.xinitrc (if you're starting X11 via command line) or ~/.xsession (if you're starting X11 with any display manager like xdm or sddm)?
Note that if you're forced to use hybrid graphics (Optimus) as of the disabilities of UEFI firmware/legacy BIOS to disable iGPU, you'll need Option "PrimaryGPU" "yes" for ONLY ONE GPU.

And for me, Quadro P1000 (notebook) in ThinkPad P52 is running fine with X11 (xorg, not xlibre) on stable/15 using
  • x11/nvidia-kmod-580
  • x11/nvidia-driver-580
  • graphics/drm-612-kmod
  • graphics/nvidia-drm-612-kmod-580
that NVIDIA driver version at 580.159.04. If not, I've not submitted upgrade (committed at git ports a5c3712ee63c).
My machine is a Dell Precision Tower 3620 with a Quadro P2000 graphics card, so no internal monitor. I have an Eizo ColorEdge GS2420 connected on DisplayPort.
Here is my .xinitc file
Code:
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export GDK_USE_XFT=1
export QT_XFT=1
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export GDK_SCALE=1
export GTK2_RC_FILES="${HOME}/.gtkrc-2.0"
export QT_QPA_PLATFORMTHEME=qt5ct
export OOO_FORCE_DESKTOP=gnome
export PATH=${PATH}:~/scripts
setxkbmap -v -layout de -variant nodeadkeys
xbindkeys
xsetroot -solid black &
~/scripts/__openbox_restart_dzen2.sh &
~/scripts/__openbox_restart_tint2.sh &
exec ck-launch-session dbus-launch --exit-with-session openbox-session
 
Currently, kmods repo is still NOT functioning fine for NVIDIA things.

Admins of kmods repo are willing to look into why (we [NVIDIA driver ports team] already finished doing what they requested to us), but they still cannot take enough time to dig into, as far as I've heared.

So anyone require anything other than x11/nvidia-kmod and running newer base minor versions than the oldest supported version of the major version (i.e., 14.4 for 14.x as 14.3 is the oldest supported) are adviced to build x11/nvidia-kmod-{304|340|390|470|580|devel} and graphics/nvidia-drm-{510|515|61|66|612|latest}-kmod{-580|-devel} from ports.
Which would be the advised packages to build for the Nvidia Quadro P2000 card? I am on FreeBSD 15.0-RELEASE-p9
 
Which would be the advised packages to build for the Nvidia Quadro P2000 card? I am on FreeBSD 15.0-RELEASE-p9
You're on the right track (580). Build below from ports for 15.0.
Note that if you prefer old-school config (without DRM/KMS), building the first one from ports would be sufficient.

Note that supports for pre-Turing generation of architectures are dropped starting from 590 branch, so 580 branch of legacy drivers are the last branch that support Quadro P2000, which is at Pascal generation that is older than Turing generation.
 
You're on the right track (580). Build below from ports for 15.0.
Note that if you prefer old-school config (without DRM/KMS), building the first one from ports would be sufficient.

Note that supports for pre-Turing generation of architectures are dropped starting from 590 branch, so 580 branch of legacy drivers are the last branch that support Quadro P2000, which is at Pascal generation that is older than Turing generation.
I build everything from ports and I am now almost back at the point where I started from.
The issue persists.
As a last thing I will replace the Quadro P2000 by an old Quadro P600 and check if I will run into the same issues. It would not make me happy as I was relying on the P2000. Unfortunately newer card will not fit on my old mother board. :(
 
Back
Top