Solved just another Nvidia config problem

Getting a mouse cursor on a blank screen.

I've got the usual starter file in `/usr/local/etc/X11/xorg.conf.d`:

Code:
Section "Device"
    Identifier "Card0"
    Driver "nvidia"
    BusID "PCI:8:0:0"
EndSection

Looking at the log, it seems to find my card (yay!), but maybe runs into problems:
Code:
[   163.665] (II) NVIDIA(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[   163.665] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[   163.665] (==) NVIDIA(0): RGB weight 888
[   163.665] (==) NVIDIA(0): Default visual is TrueColor
[   163.665] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   163.665] (**) NVIDIA(0): Enabling 2D acceleration
[   164.620] (II) NVIDIA(0): NVIDIA GPU GeForce GT 730 (GK208) at PCI:8:0:0 (GPU-0)
[   164.620] (--) NVIDIA(0): Memory: 2097152 kBytes
[   164.620] (--) NVIDIA(0): VideoBIOS: 80.28.78.00.13
[   164.620] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[   164.620] (II) NVIDIA(0): Validated MetaModes:
[   164.620] (II) NVIDIA(0):     "NULL"
[   164.621] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[   164.621] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[   164.621] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[   164.621] (--) Depth 24 pixmap format is 32 bpp
[   164.621] (II) NVIDIA: Reserving 6144.00 MB of virtual memory for indirect memory
[   164.621] (II) NVIDIA:     access.
[   164.670] (II) NVIDIA(0): Setting mode "NULL"
[   164.679] (==) NVIDIA(0): Disabling shared memory pixmaps
[   164.679] (==) NVIDIA(0): Backing store enabled
[   164.679] (==) NVIDIA(0): Silken mouse enabled
[   164.681] (==) NVIDIA(0): DPMS enabled
[   164.681] (II) Loading sub module "dri2"
[   164.681] (II) LoadModule: "dri2"
[   164.681] (II) Module "dri2" already built-in
[   164.681] (II) NVIDIA(0): [DRI2] Setup complete
[   164.681] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia

Any ideas on what to add to the configuration next?
 
Don't use nvidia-xconfig, it creates an old style xorg.conf which is not needed. Just adding the driver in a snippet is all that's needed.

peterchris can you post the whole log? A few important bits are missing.
 
Well, it's not exactly deprecated. It's just that Xorg now understands partial configs, which are much easier to use.
 
Don't use nvidia-xconfig, it creates an old style xorg.conf which is not needed. Just adding the driver in a snippet is all that's needed.

To be fair, it is still really useful to run in order to get an output of all the options and the driver in the correct section format ready to cut up into chunks for the new partial config structure.
 
If you're unable to remember 4 lines you're doing it wrong ;)
 
Thank you, here's the whole thing:
Code:
X.Org X Server 1.18.4
Release Date: 2016-07-19
[   163.426] X Protocol Version 11, Revision 0
[   163.426] Build Operating System: FreeBSD 12.0-RELEASE-p3 amd64
[   163.426] Current Operating System: FreeBSD orca 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC amd64
[   163.426] Build Date: 02 April 2019  09:00:51AM
[   163.426]
[   163.426] Current version of pixman: 0.34.0
[   163.426]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[   163.426] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   163.427] (==) Log file: "/var/log/Xorg.0.log", Time: Mon May  6 23:37:07 2019
[   163.427] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[   163.427] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[   163.427] (==) No Layout section.  Using the first Screen section.
[   163.427] (==) No screen section available. Using defaults.
[   163.427] (**) |-->Screen "Default Screen Section" (0)
[   163.427] (**) |   |-->Monitor "<default monitor>"
[   163.427] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[   163.427] (**) |   |-->Device "Card0"
[   163.427] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[   163.427] (==) Automatically adding devices
[   163.427] (==) Automatically enabling devices
[   163.427] (==) Not automatically adding GPU devices
[   163.427] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   163.427] (==) FontPath set to:
    /usr/local/share/fonts/misc/,
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    /usr/local/share/fonts/Type1/,
    /usr/local/share/fonts/100dpi/,
    /usr/local/share/fonts/75dpi/
[   163.427] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[   163.427] (II) The server relies on devd to provide the list of input devices.
    If no devices become available, reconfigure devd or disable AutoAddDevices.
[   163.427] (II) Loader magic: 0x411020
[   163.427] (II) Module ABI versions:
[   163.427]     X.Org ANSI C Emulation: 0.4
[   163.427]     X.Org Video Driver: 20.0
[   163.427]     X.Org XInput driver : 22.1
[   163.427]     X.Org Server Extension : 9.0
[   163.428] (!!) More than one possible primary device found
[   163.428] (--) PCI: (0:8:0:0) 10de:1287:19da:730b rev 161, Mem @ 0xc6000000/16777216, 0xb8000000/134217728, 0xc0000000/33554432, I/O @ 0x00005000/128, BIOS @ 0x????????/65536
[   163.428] (--) PCI: (0:129:0:0) 10de:1b06:3842:6696 rev 161, Mem @ 0xfa000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/65536
[   163.428] (II) LoadModule: "glx"
[   163.428] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   163.432] (II) Module glx: vendor="NVIDIA Corporation"
[   163.432]     compiled for 4.0.2, module version = 1.0.0
[   163.432]     Module class: X.Org Server Extension
[   163.432] (II) NVIDIA GLX Module  390.87  Tue Aug 21 15:49:05 PDT 2018
[   163.432] (II) LoadModule: "nvidia"
[   163.433] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[   163.433] (II) Module nvidia: vendor="NVIDIA Corporation"
[   163.433]     compiled for 4.0.2, module version = 1.0.0
[   163.433]     Module class: X.Org Video Driver
[   163.433] (II) NVIDIA dlloader X Driver  390.87  Tue Aug 21 15:27:50 PDT 2018
[   163.433] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   163.433] (--) Using syscons driver with X support (version 2.0)
[   163.433] (++) using VT number 9

[   163.664] (II) Loading sub module "fb"
[   163.664] (II) LoadModule: "fb"
[   163.664] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[   163.664] (II) Module fb: vendor="X.Org Foundation"
[   163.664]     compiled for 1.18.4, module version = 1.0.0
[   163.664]     ABI class: X.Org ANSI C Emulation, version 0.4
[   163.664] (II) Loading sub module "wfb"
[   163.665] (II) LoadModule: "wfb"
[   163.665] (II) Loading /usr/local/lib/xorg/modules/libwfb.so
[   163.665] (II) Module wfb: vendor="X.Org Foundation"
[   163.665]     compiled for 1.18.4, module version = 1.0.0
[   163.665]     ABI class: X.Org ANSI C Emulation, version 0.4
[   163.665] (II) Loading sub module "ramdac"
[   163.665] (II) LoadModule: "ramdac"
[   163.665] (II) Module "ramdac" already built-in
[   163.665] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   163.665] (II) NVIDIA(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[   163.665] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[   163.665] (==) NVIDIA(0): RGB weight 888
[   163.665] (==) NVIDIA(0): Default visual is TrueColor
[   163.665] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   163.665] (**) NVIDIA(0): Enabling 2D acceleration
[   164.620] (II) NVIDIA(0): NVIDIA GPU GeForce GT 730 (GK208) at PCI:8:0:0 (GPU-0)
[   164.620] (--) NVIDIA(0): Memory: 2097152 kBytes
[   164.620] (--) NVIDIA(0): VideoBIOS: 80.28.78.00.13
[   164.620] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[   164.620] (II) NVIDIA(0): Validated MetaModes:
[   164.620] (II) NVIDIA(0):     "NULL"
[   164.621] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[   164.621] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[   164.621] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[   164.621] (--) Depth 24 pixmap format is 32 bpp
[   164.621] (II) NVIDIA: Reserving 6144.00 MB of virtual memory for indirect memory
[   164.621] (II) NVIDIA:     access.
[   164.670] (II) NVIDIA(0): Setting mode "NULL"
[   164.679] (==) NVIDIA(0): Disabling shared memory pixmaps
[   164.679] (==) NVIDIA(0): Backing store enabled
[   164.679] (==) NVIDIA(0): Silken mouse enabled
[   164.681] (==) NVIDIA(0): DPMS enabled
[   164.681] (II) Loading sub module "dri2"
[   164.681] (II) LoadModule: "dri2"
[   164.681] (II) Module "dri2" already built-in
[   164.681] (II) NVIDIA(0): [DRI2] Setup complete
[   164.681] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[   164.681] (--) RandR disabled
[   164.686] (II) Initializing extension GLX
[   164.686] (II) Indirect GLX disabled.
[   164.784] (II) config/devd: probing input devices...
[   164.784] (II) config/devd: adding input device (null) (/dev/kbdmux)
[   164.784] (II) LoadModule: "kbd"
[   164.784] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[   164.784] (II) Module kbd: vendor="X.Org Foundation"
[   164.784]     compiled for 1.18.4, module version = 1.9.0
[   164.784]     Module class: X.Org XInput Driver
[   164.784]     ABI class: X.Org XInput driver, version 22.1
[   164.784] (II) Using input driver 'kbd' for 'kbdmux'
[   164.784] (**) kbdmux: always reports core events
[   164.784] (**) kbdmux: always reports core events
[   164.785] (**) Option "Protocol" "standard"
[   164.785] (**) Option "XkbRules" "base"
[   164.785] (**) Option "XkbModel" "pc105"
[   164.785] (**) Option "XkbLayout" "us"
[   164.785] (**) Option "config_info" "devd:kbdmux"
[   164.785] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[   165.131] (II) config/devd: kbdmux is enabled, ignoring device ukbd0
[   165.131] (II) config/devd: kbdmux is enabled, ignoring device ukbd1
[   165.131] (II) config/devd: adding input device (null) (/dev/sysmouse)
[   165.131] (II) LoadModule: "mouse"
[   165.131] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[   165.132] (II) Module mouse: vendor="X.Org Foundation"
[   165.132]     compiled for 1.18.4, module version = 1.9.3
[   165.132]     Module class: X.Org XInput Driver
[   165.132]     ABI class: X.Org XInput driver, version 22.1
[   165.132] (II) Using input driver 'mouse' for 'sysmouse'
[   165.132] (**) sysmouse: always reports core events
[   165.132] (**) Option "Device" "/dev/sysmouse"
[   165.132] (==) sysmouse: Protocol: "Auto"
[   165.132] (**) sysmouse: always reports core events
[   165.132] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[   165.133] (**) sysmouse: ZAxisMapping: buttons 4 and 5
[   165.133] (**) sysmouse: Buttons: 5
[   165.133] (**) Option "config_info" "devd:sysmouse"
[   165.133] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[   165.133] (**) sysmouse: (accel) keeping acceleration scheme 1
[   165.133] (**) sysmouse: (accel) acceleration profile 0
[   165.133] (**) sysmouse: (accel) acceleration factor: 2.000
[   165.133] (**) sysmouse: (accel) acceleration threshold: 4
[   165.133] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[   165.133] (II) sysmouse: SetupAuto: protocol is SysMouse
[   165.133] (II) config/devd: device /dev/ums0 already opened
[   165.133] (II) config/devd: device /dev/ums1 already opened
[   165.133] (II) config/devd: device /dev/ums2 already opened
 
Your Xorg is working but there's no monitor attached.

And judging by these two:
Code:
[   163.428] (--) PCI: (0:8:0:0) 10de:1287:19da:730b rev 161, Mem @ 0xc6000000/16777216, 0xb8000000/134217728, 0xc0000000/33554432, I/O @ 0x00005000/128, BIOS @ 0x????????/65536
[   163.428] (--) PCI: (0:129:0:0) 10de:1b06:3842:6696 rev 161, Mem @ 0xfa000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/65536
I suspect you have an Optimus system.
 
All I'm saying is that it is not very useful to look for multiple GPUs, they are far too common. The log says "NVIDIA GPU GeForce GT 730 (GK208)" rather than something like 730M, so presumably that's a desktop.
 
Then, to configure properly, I'll need to define a monitor in Xorg.conf.d? I'll give it a whirl. I am currently suffering from Xorg.conf PTSD so I'll have to work up the courage.

By the way, the hardware is a box I put together with the GT730 to drive the monitor (under $100, small card, drives a 4k monitor well) and a 1080Ti for number crunching.
 
Often there is an option in the BIOS like Primary graphics.
If you have such am option, set it to PCIe and the integrated graphics will definitely be disabled, leaving you with the Nvidia graphics only.
Worth checking.
 
Same deal, the X output is a black screen and cursor sitting there.

Also I'm using KDE if that matters. I have a feeling it doesn't like the 640 x 480 resolution that X keeps coming up with. This bit:

Code:
[    27.302] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[    27.302] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[    27.302] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default

Here's the configs now:

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

Section "Device"
    Identifier "Card0"
    Driver "nvidia"
    BusID "PCI:8:0:0"
EndSection

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

And the log:

Code:
X.Org X Server 1.18.4
Release Date: 2016-07-19
[    26.085] X Protocol Version 11, Revision 0
[    26.085] Build Operating System: FreeBSD 12.0-RELEASE-p3 amd64
[    26.085] Current Operating System: FreeBSD orca 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC amd64
[    26.085] Build Date: 02 April 2019  09:00:51AM
[    26.085]
[    26.085] Current version of pixman: 0.34.0
[    26.085]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    26.085] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    26.086] (==) Log file: "/var/log/Xorg.0.log", Time: Tue May  7 14:11:26 2019
[    26.087] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[    26.087] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[    26.088] (==) No Layout section.  Using the first Screen section.
[    26.088] (**) |-->Screen "Screen0" (0)
[    26.088] (**) |   |-->Monitor "Monitor0"
[    26.089] (**) |   |-->Device "Card0"
[    26.089] (==) Automatically adding devices
[    26.089] (==) Automatically enabling devices
[    26.089] (==) Not automatically adding GPU devices
[    26.089] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    26.093] (==) FontPath set to:
    /usr/local/share/fonts/misc/,
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    /usr/local/share/fonts/Type1/,
    /usr/local/share/fonts/100dpi/,
    /usr/local/share/fonts/75dpi/
[    26.093] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[    26.093] (II) The server relies on devd to provide the list of input devices.
    If no devices become available, reconfigure devd or disable AutoAddDevices.
[    26.093] (II) Loader magic: 0x411020
[    26.093] (II) Module ABI versions:
[    26.093]     X.Org ANSI C Emulation: 0.4
[    26.093]     X.Org Video Driver: 20.0
[    26.093]     X.Org XInput driver : 22.1
[    26.093]     X.Org Server Extension : 9.0
[    26.093] (!!) More than one possible primary device found
[    26.093] (--) PCI: (0:8:0:0) 10de:1287:19da:730b rev 161, Mem @ 0xc6000000/16777216, 0xb8000000/134217728, 0xc0000000/33554432, I/O @ 0x00005000/128, BIOS @ 0x????????/65536
[    26.093] (--) PCI: (0:129:0:0) 10de:1b06:3842:6696 rev 161, Mem @ 0xfa000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/65536
[    26.094] (II) LoadModule: "glx"
[    26.094] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    26.145] (II) Module glx: vendor="NVIDIA Corporation"
[    26.145]     compiled for 4.0.2, module version = 1.0.0
[    26.145]     Module class: X.Org Server Extension
[    26.145] (II) NVIDIA GLX Module  390.87  Tue Aug 21 15:49:05 PDT 2018
[    26.146] (II) LoadModule: "nvidia"
[    26.146] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[    26.152] (II) Module nvidia: vendor="NVIDIA Corporation"
[    26.152]     compiled for 4.0.2, module version = 1.0.0
[    26.152]     Module class: X.Org Video Driver
[    26.153] (II) NVIDIA dlloader X Driver  390.87  Tue Aug 21 15:27:50 PDT 2018
[    26.153] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    26.154] (--) Using syscons driver with X support (version 2.0)
[    26.154] (++) using VT number 9

[    26.375] (II) Loading sub module "fb"
[    26.375] (II) LoadModule: "fb"
[    26.376] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[    26.377] (II) Module fb: vendor="X.Org Foundation"
[    26.377]     compiled for 1.18.4, module version = 1.0.0
[    26.377]     ABI class: X.Org ANSI C Emulation, version 0.4
[    26.377] (II) Loading sub module "wfb"
[    26.377] (II) LoadModule: "wfb"
[    26.377] (II) Loading /usr/local/lib/xorg/modules/libwfb.so
[    26.379] (II) Module wfb: vendor="X.Org Foundation"
[    26.379]     compiled for 1.18.4, module version = 1.0.0
[    26.379]     ABI class: X.Org ANSI C Emulation, version 0.4
[    26.379] (II) Loading sub module "ramdac"
[    26.379] (II) LoadModule: "ramdac"
[    26.379] (II) Module "ramdac" already built-in
[    26.381] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    26.381] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[    26.381] (==) NVIDIA(0): RGB weight 888
[    26.381] (==) NVIDIA(0): Default visual is TrueColor
[    26.381] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    26.382] (**) NVIDIA(0): Enabling 2D acceleration
[    27.302] (II) NVIDIA(0): NVIDIA GPU GeForce GT 730 (GK208) at PCI:8:0:0 (GPU-0)
[    27.302] (--) NVIDIA(0): Memory: 2097152 kBytes
[    27.302] (--) NVIDIA(0): VideoBIOS: 80.28.78.00.13
[    27.302] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[    27.302] (II) NVIDIA(0): Validated MetaModes:
[    27.302] (II) NVIDIA(0):     "NULL"
[    27.302] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[    27.302] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[    27.302] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[    27.302] (--) Depth 24 pixmap format is 32 bpp
[    27.303] (II) NVIDIA: Reserving 6144.00 MB of virtual memory for indirect memory
[    27.303] (II) NVIDIA:     access.
[    27.355] (II) NVIDIA(0): Setting mode "NULL"
[    27.363] (==) NVIDIA(0): Disabling shared memory pixmaps
[    27.363] (==) NVIDIA(0): Backing store enabled
[    27.363] (==) NVIDIA(0): Silken mouse enabled
[    27.364] (**) NVIDIA(0): DPMS enabled
[    27.364] (II) Loading sub module "dri2"
[    27.364] (II) LoadModule: "dri2"
[    27.364] (II) Module "dri2" already built-in
[    27.364] (II) NVIDIA(0): [DRI2] Setup complete
[    27.364] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    27.364] (--) RandR disabled
[    27.369] (II) Initializing extension GLX
[    27.369] (II) Indirect GLX disabled.
[    27.476] (II) config/devd: probing input devices...
[    27.476] (II) config/devd: adding input device (null) (/dev/kbdmux)
[    27.476] (II) LoadModule: "kbd"
[    27.476] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[    27.477] (II) Module kbd: vendor="X.Org Foundation"
[    27.477]     compiled for 1.18.4, module version = 1.9.0
[    27.477]     Module class: X.Org XInput Driver
[    27.477]     ABI class: X.Org XInput driver, version 22.1
[    27.477] (II) Using input driver 'kbd' for 'kbdmux'
[    27.477] (**) kbdmux: always reports core events
[    27.477] (**) kbdmux: always reports core events
[    27.477] (**) Option "Protocol" "standard"
[    27.477] (**) Option "XkbRules" "base"
[    27.477] (**) Option "XkbModel" "pc105"
[    27.477] (**) Option "XkbLayout" "us"
[    27.477] (**) Option "config_info" "devd:kbdmux"
[    27.477] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[    27.809] (II) config/devd: kbdmux is enabled, ignoring device ukbd0
[    27.809] (II) config/devd: kbdmux is enabled, ignoring device ukbd1
[    27.809] (II) config/devd: adding input device (null) (/dev/sysmouse)
[    27.809] (II) LoadModule: "mouse"
[    27.809] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[    27.810] (II) Module mouse: vendor="X.Org Foundation"
[    27.810]     compiled for 1.18.4, module version = 1.9.3
[    27.810]     Module class: X.Org XInput Driver
[    27.810]     ABI class: X.Org XInput driver, version 22.1
[    27.810] (II) Using input driver 'mouse' for 'sysmouse'
[    27.810] (**) sysmouse: always reports core events
[    27.810] (**) Option "Device" "/dev/sysmouse"
[    27.810] (==) sysmouse: Protocol: "Auto"
[    27.810] (**) sysmouse: always reports core events
[    27.810] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[    27.810] (**) sysmouse: ZAxisMapping: buttons 4 and 5
[    27.811] (**) sysmouse: Buttons: 5
[    27.811] (**) Option "config_info" "devd:sysmouse"
[    27.811] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[    27.811] (**) sysmouse: (accel) keeping acceleration scheme 1
[    27.811] (**) sysmouse: (accel) acceleration profile 0
[    27.811] (**) sysmouse: (accel) acceleration factor: 2.000
[    27.811] (**) sysmouse: (accel) acceleration threshold: 4
[    27.811] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[    27.811] (II) sysmouse: SetupAuto: protocol is SysMouse
[    27.811] (II) config/devd: device /dev/ums0 already opened
[    27.811] (II) config/devd: device /dev/ums1 already opened
[    27.811] (II) config/devd: device /dev/ums2 already opened
 
Personally, I would test with a basic WM like TWM, which is part of the xorg install, get your resolution configured, then move onto KDE. Assume you are invoking KDE via startx? Just my opinion though.
 
Code:
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0

Since the dawn of man, where do people pull these values from? I am going to make the assumption that you did not get them from your "monitor technical documentation" because those haven't existed since the golden era.

I might suggest removing this section entirely and let xorg automatically guess at them instead. Sometimes with these values being wrong, I notice it limits the resolution.
 
Exactly - my huge 4k monitor works flawlessly without a single config file. At worst, I have had to create a config file for resolution only, but that was over a year ago. Now, everything just works.
 
Solved.. needed `nvidia-modeset` kernel module (put `nvidia-modeset` in the rc.conf: `kld_list="nvidia-modeset linux"). The clue was this:

Code:
[  3389.630] (II) NVIDIA(0): Validated MetaModes:
[  3389.630] (II) NVIDIA(0):     "NULL"

Searching on that, I found the solution.

Thanks all, for your troubleshooting help! I'll post my minimal Xorg.conf in a moment.
 
When reading through this post I didn't think of it, but I remember when I had issues with this myself. I even had to revert to Windows for too long a time for my daily work. The horror!
 
Turns out, the only .conf file needed is for the card:
Code:
Section "Device"
    Identifier "Card0"
    Driver "nvidia"
    BusID "PCI:8:0:0"
EndSection

Where I went wrong initially was putting in "nvidia-modeset" for the driver here, in addition to loading the kernel module, and there ain't no such thing as an "nvidia-modeset" video driver. So I went back to "nvidia" for both.

Finally, what a good log looks like-- it should find "valid display devices"-- here's that:

Code:
[    27.494] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:8:0:0
[    27.494] (--) NVIDIA(0):     CRT-0
[    27.494] (--) NVIDIA(0):     DFP-0 (boot)
[    27.494] (--) NVIDIA(0):     DFP-1
 
Thanks everyone here that helped me. I initially tried both kld_list="nvidia" and kld_list="nvidia-modeset" in my /etc/rc.conf. But neither worked. Eventually I tried creating an Xorg hint file in /usr/local/etc/X11/xorg.conf.d/10-nvidia.conf with the following contents:

Code:
Section "Device"
        Identifier "Card0"
        VendorName "NVIDIA Corporation"
        Driver "nvidia"
        BusID "PCI:1:0:0"
EndSection\

I also got the mouse pointer on a black screen. And the line in /var/log/Xorg.0.log.

(WW) NVIDIA(0): Unable to get display device for DPI computation.

After reading peterchris resolved using "nvidia-modeset" instead of "nvidia" in module loading section, I tried again myself. Bingo!

So, we need the correct kernel module loaded AND an Xorg hint file. This needs to be better documented, maybe it should be in the pkg-message file of the nvidia-driver packages.

Thinkpad T420 with NVidia Quadro NVS 4200M
FreeBSD 12.2-RELEASE-p8
nvidia-driver-390-390.143
 
Back
Top