Nvida Drivers Not Detected? I May Be Stuck In a Frame Buffer

Now by now I have learned my lesson NEVER to buy a laptop with an Nvidia graphics but I am stuck with this for now. So I am running a Dell Precision 7510 with an Nvida Quadro M1000M.

I am using the 535 driver. I installed it through pkg.

I have some issues that I believe are mostly connected to one error:

When I enable picom, the Kitty terminal becomes very slow. Keep in mind that I have blur and transeparency enabled.

Xrandr displays minimum resolution: 1920x1080p, and maximum resolution 1920x1080p, and it will not detect the two monitors that I have connected to my laptop. See for yourself:
```
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 0mm x 0mm
1920x1080 0.00*
```


Hyprland will not start because in says `0 GPUs found, cannot create backend`. Qtile is a black sceen. These issues usually do not occur on most distros, but they do occur on OpenSuse, and Funtoo.

I am currently using AwesomeWM, becasue it is one of the few that work. I had a similar error on OpenSUSE, and I tried other window managers. Xmonad and BSPWM did not work. Fluxbox did.

Possibly unrelated:
TCSH is slow and buggy for some reason. SH is not.
 
Post your Xorg.0.log: cat /var/log/Xorg.0.log | nc termbin.com 9999
 
So I am running a Dell Precision 7510 with an Nvida Quadro M1000M.
Is that the only graphics device or is there also an Intel one?
If there is an Intel along with the Nvidia, can you disable one of them in the BIOS?
 
Is that the only graphics device or is there also an Intel one?
If there is an Intel along with the Nvidia, can you disable one of them in the BIOS?
There is Intel and Nvidia. Do you recommend going into the BIOS and turning off Intel?
 
There is Intel and Nvidia. Do you recommend going into the BIOS and turning off Intel?
Or turning off Nvidia if you can. It makes the X autodetect stuff a little simpler, you won't have to specify the exact device to use.
 
Or turning off Nvidia if you can. It makes the X autodetect stuff a little simpler, you won't have to specify the exact device to use.
Xorg autodetect does not work very good with multi-card setups.
Why would you want to deactivate the better video chip in favor for the weaker one?
So having an xorg.conf is still advantageous.
 
Xorg autodetect does not work very good with multi-card setups.
Why would you want to deactivate the better video chip in favor for the weaker one?
So having an xorg.conf is still advantageous.
I don't disagree with you, part of this is trying to help someone debug a problem that is not colocated with me.
Disable nvidia from the bios, verify that you can get things to work with Intel, then work on trying to get the nvidia bits working.
Depending on the actual needs, the Intel may be perfectly adequate.
It's all about simplifying the test lets one gain insight.
 
Why "test" anything when all OP has to do is read handbook and provide proper conf file for NVIDIA GPU?
I don't disagree with this, but sometimes the answer is simply "because I can and it gives me better understanding of my system".
And yes, I've taken the hard way just to learn something.
 
The nvidia driver is never auto-detected anyway, even if it's the only card in the system. So you have to tell Xorg to use it. As there are probably two cards in the system you might need to provide the BusID too.
 
What? When I try to install `nvidia-driver`, it tells me that it is already installed.
Here is my rc.conf`:
Code:
sendmail_enable="NONE"
hostname="Oink-a-tron"
ifconfig_em0="DHCP"
ifconfig_em0_ipv6="inet6 accept_rtadv"
sshd_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
zfs_enable="YES"
dbus_enable="YES"
kld_list="nvidia"
 
Modern cards and drivers need to use kld_list="nvidia-modeset". And you have to create a device section for Xorg.

 
At a minimum, if you have only a single Nvidia card, this is a minimum xorg device config you'd need. If you have
multiple cards or mixed Intel/Nvidia you probably need to add bus specifiers.
/usr/local/etc/X11/xorg.conf.d cat driver-nvidia.conf Section "Device" Identifier "NVIDIA Card" VendorName "NVIDIA Corporation" Driver "nvidia" EndSection
 
At a minimum, if you have only a single Nvidia card, this is a minimum xorg device config you'd need. If you have
multiple cards or mixed Intel/Nvidia you probably need to add bus specifiers.
/usr/local/etc/X11/xorg.conf.d cat driver-nvidia.conf Section "Device" Identifier "NVIDIA Card" VendorName "NVIDIA Corporation" Driver "nvidia" EndSection
I created a file called `/usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf`:
```
Section "Device"
Identifier "NVIDIA Card"
VendorName "NVIDIA Corporation"
Driver "nvidia"
EndSection
```
Xorg would not start. Here is the log:
 
When I boot up, I get a message saying, `unable to load kernel modual `nvdia-modset`. Or something to that effect iirc.
 
Here is my `/etc/rc.conf` after updating it:
```
sendmail_enable="NONE"
hostname="Oink-a-tron"
ifconfig_em0="DHCP"
ifconfig_em0_ipv6="inet6 accept_rtadv"
sshd_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
zfs_enable="YES"
dbus_enable="YES"
kld_list="nvidia-modset"
```
 
Now you seem to have removed that driver-nvidia.conf.

To show you the difference (so you know what to look for):
Xorg would not start. Here is the log:
https://termbin.com/9m06
This one actually loads the X driver:
Code:
[   135.073] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[   135.074] (II) Module nvidia: vendor="NVIDIA Corporation"
[   135.074] 	compiled for 1.6.99.901, module version = 1.0.0
[   135.074] 	Module class: X.Org Video Driver
That's what you want to see in Xorg.0.log.

It's missing here, nvidia_drv.so isn't being loaded.
 
I did, actually. When I tried to start X with the file, that I created it would not start. I made a second try, specifying the bus ids, and here is the result - /usr/local/etc/X11/xorg.conf.d/20-drivers.conf
Code:
Section "Device"
    Identifier "Card0"
    Driver     "intel"
    BusID     "pci0:0:2:0"
EndSection

Section "Device"
    Identifier "Card0"
    Driver     "nvidia"
    BusID     "pci0:1:0:0"
EndSection
Here is the new log:
 
It could be that your Dell Precision 7510 with an Nvida Quadro M1000M is wired so that the nvidia card only drives an external monitor, you'll have to look that up in your documentation, laptop specification and/or BIOS settings.

From your Xorg log file the nvidia driver seems to load ok, see below.

However, with:
Rich (BB code):
Section "Device"
    Identifier "Card0"    <--
    Driver "intel"
    BusID "pci0:0:2:0"
EndSection

Section "Device"
    Identifier "Card0"    <--
    Driver "nvidia"
    BusID "pci0:1:0:0"
EndSection
you've specified an intel driver, but from https://termbin.com/wz2e:
Rich (BB code):
[    45.055] (II) LoadModule: "intel"
[    45.055] (WW) Warning, couldn't open module intel
[    45.055] (EE) Failed to load module "intel" (module does not exist, 0)
[    45.055] (II) LoadModule: "nvidia"
[    45.055] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[    45.061] (II) Module nvidia: vendor="NVIDIA Corporation"
[    45.061] 	compiled for 1.6.99.901, module version = 1.0.0
[    45.061] 	Module class: X.Org Video Driver
[    45.062] (II) NVIDIA dlloader X Driver  535.104.05  Sat Aug 19 00:40:33 UTC 2023
[    45.062] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    45.063] (--) Using syscons driver with X support (version 2.0)
[    45.063] (--) using VT number 9

[    45.064] (EE) No devices detected.
[    45.064] (EE) 
Fatal server error:
[    45.064] (EE) no screens found(EE)
Xorg complains that it cannot identify the intel driver. Try installing the package graphics/drm-kmod/ for your intel GPU and according to 5.3. Graphic card drivers, in your rc.conf use:
Code:
kld_list="nvidia-modeset i915kms"

Based on DEVICE SECTION, I'd choose unique names for Identifier in your /usr/local/etc/X11/xorg.conf.d/20-drivers.conf instead of two times using Card0
 
Alright, thanks for that. Progress.
So here was my new /etc/rc.conf:
Code:
sendmail_enable="NONE"
hostname="Oink-a-tron"
ifconfig_em0="DHCP"
ifconfig_em0_ipv6="inet6 accept_rtadv"
sshd_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
zfs_enable="YES"
dbus_enable="YES"
kld_list="nvidia-modeset i915kms"
Here was my new /usr/local/etc/X11/xorg.conf.d/20-drivers.conf
Code:
Section "Device"
    Identifier "Card0"
    Driver "intel"
    BusID "pci0:0:2:0"
EndSection

Section "Device"
    Identifier "Card1"
    Driver "nvidia"
    BusID "pci0:1:0:0"
EndSection
I installed
Code:
drm-kmod
When I booted into the TTY, my other monitors showed the TTY. Xorg failed to start with this log: https://termbin.com/n06v

After that, I removed /usr/local/etc/X11/xorg.conf.d/20-drivers.conf. Then I booted again, and ran startx again with a different log.
https://termbin.com/3yn4
this time the monitors displayed.

After that, I removed the i915kms from /etc/rc.conf and the system startx worked. The issues still persist.
 
Back
Top