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.
 
Back
Top