(º) Autodetect accelerated graphics driver

Good morning!

Before getting to the point, I start with the fact that I installed nomadBSD on my pc-desktop on 250 GB HDD external usb disk, since my pendrive didn’t have them at hand at that time.

Then I updated 248 packages, installed Nvidia’s proprietary drivers; nvidia-driver and nvidia-settings and other packages.

I removed plank, firefox, slim and thunderbird and installed the apps I use in the top bar of openbox. So far so good.

Now let’s get down to business!

Nvidia throws me, before starting a session with startx, a screen width window, where she tells me 2 options and I choose the first one, as you can see in the image below:

I added the parameters to kld_list=“nvidia-modeset” in /etc/rc.conf and also checked the file /usr/local/etc/X11/xorg.conf.d/10-nvidia.conf:

/usr/local/etc/X11/xorg.conf.d/10-nvidia.conf

Section "Device"
    Identify "NVIDIA CARD
    VendorName "NVIDIA Corporation
    Driver "nvidia"
    BusID "PCI:1:0:0"
EndSection

Which I think is fine, since it had been created, I estimate when I installed the drivers.

I leave here other files that I think are relevant:

/etc/fstab

/dev/label/nomadroot		/			ufs	  rw,noatime       1 1
tmpfs			/tmp			tmpfs	  rw,mode=1777     0 0
tmpfs			/var/log		tmpfs	  rw               0 0
proc			/proc			procfs	  rw		   0 0

/dev/label/nomadhome	/home			ufs	rw,noatime	1 1

linprocfs   /compat/linux/proc	linprocfs	rw	0	0
linsysfs    /compat/linux/sys	linsysfs	rw	0	0
tmpfs    /compat/linux/dev/shm	tmpfs	rw,mode=1777	0	0

kldstat

Id Refs Address                Size Name
 1   77 0xffffffff80200000  2447c90 kernel
 2    1 0xffffffff82649000     7180 ums.ko
 3    1 0xffffffff82ffa000     88d8 tmpfs.ko
 4    1 0xffffffff83003000     494c linprocfs.ko
 5    4 0xffffffff83008000     3178 linux_common.ko
 6    1 0xffffffff8300c000     1eae linsysfs.ko
 7    1 0xffffffff8300e000     35a4 geom_uzip.ko
 8    1 0xffffffff83012000     2eb0 xz.ko
 9    1 0xffffffff83015000     fcf0 fusefs.ko
10    1 0xffffffff83025000    f2998 nvidia-modeset.ko
11    1 0xffffffff83118000  122adc0 nvidia.ko
12    1 0xffffffff84343000    125a0 if_run.ko
13    1 0xffffffff84356000     18a0 uhid.ko
14    1 0xffffffff84358000     1aa0 wmt.ko
15    1 0xffffffff8435a000     86fc if_rtwn_pci.ko
16    1 0xffffffff84363000    18490 rtwn.ko
17    1 0xffffffff8437c000    3df60 linux.ko
18    1 0xffffffff843ba000    35b20 linux64.ko
19    1 0xffffffff843f0000      acf mac_ntpd.ko
20    1 0xffffffff843f1000    18dc8 ext2fs.ko
21    1 0xffffffff8440a000     3d94 geom_linux_lvm.ko
22    1 0xffffffff8440e000     20f0 acpi_wmi.ko
23    1 0xffffffff84411000     2ae0 acpi_video.ko
24    2 0xffffffff84414000     3d68 geom_sched.ko
25    1 0xffffffff84418000      fde gsched_rr.ko

pciconf -lv

Summary

hostb0@pci0:0:0:0: class=0x060000 card=0x50001458 chip=0x3ec28086 rev=0x0d hdr=0x00
vendor = ‘Intel Corporation’
device = ‘8th Gen Core Processor Host Bridge/DRAM Registers’
class = bridge
subclass = HOST-PCI
pcib1@pci0:0:1:0: class=0x060400 card=0x50001458 chip=0x19018086 rev=0x0d hdr=0x01
vendor = ‘Intel Corporation’
device = ‘Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16)’
class = bridge
subclass = PCI-PCI
none0@pci0:0:8:0: class=0x088000 card=0x50001458 chip=0x19118086 rev=0x00 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model’
class = base peripheral
xhci0@pci0:0:20:0: class=0x0c0330 card=0x50071458 chip=0xa2af8086 rev=0x00 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘200 Series/Z370 Chipset Family USB 3.0 xHCI Controller’
class = serial bus
subclass = USB
none1@pci0:0:22:0: class=0x078000 card=0x1c3a1458 chip=0xa2ba8086 rev=0x00 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘200 Series PCH CSME HECI’
class = simple comms
ahci0@pci0:0:23:0: class=0x010601 card=0xb0051458 chip=0xa2828086 rev=0x00 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘200 Series PCH SATA controller [AHCI mode]’
class = mass storage
subclass = SATA
pcib2@pci0:0:27:0: class=0x060400 card=0x50011458 chip=0xa2e98086 rev=0xf0 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘200 Series PCH PCI Express Root Port’
class = bridge
subclass = PCI-PCI
pcib3@pci0:0:27:3: class=0x060400 card=0x50011458 chip=0xa2ea8086 rev=0xf0 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘200 Series PCH PCI Express Root Port’
class = bridge
subclass = PCI-PCI
pcib4@pci0:0:27:4: class=0x060400 card=0x50011458 chip=0xa2eb8086 rev=0xf0 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘200 Series PCH PCI Express Root Port’
class = bridge
subclass = PCI-PCI
pcib5@pci0:0:28:0: class=0x060400 card=0x50011458 chip=0xa2928086 rev=0xf0 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘200 Series PCH PCI Express Root Port’
class = bridge
subclass = PCI-PCI
pcib6@pci0:0:28:3: class=0x060400 card=0x50011458 chip=0xa2938086 rev=0xf0 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘200 Series PCH PCI Express Root Port’
class = bridge
subclass = PCI-PCI
pcib7@pci0:0:28:4: class=0x060400 card=0x50011458 chip=0xa2948086 rev=0xf0 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘200 Series PCH PCI Express Root Port’
class = bridge
subclass = PCI-PCI
pcib8@pci0:0:28:5: class=0x060400 card=0x50011458 chip=0xa2958086 rev=0xf0 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘200 Series PCH PCI Express Root Port’
class = bridge
subclass = PCI-PCI
pcib9@pci0:0:28:6: class=0x060400 card=0x50011458 chip=0xa2968086 rev=0xf0 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘200 Series PCH PCI Express Root Port’
class = bridge
subclass = PCI-PCI
pcib10@pci0:0:28:7: class=0x060400 card=0x50011458 chip=0xa2978086 rev=0xf0 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘200 Series PCH PCI Express Root Port’
class = bridge
subclass = PCI-PCI
pcib11@pci0:0:29:0: class=0x060400 card=0x50011458 chip=0xa2988086 rev=0xf0 hdr=0x01
vendor = ‘Intel Corporation’
device = ‘200 Series PCH PCI Express Root Port’
class = bridge
subclass = PCI-PCI
isab0@pci0:0:31:0: class=0x060100 card=0x50011458 chip=0xa2cc8086 rev=0x00 hdr=0x00
vendor = ‘Intel Corporation’
class = bridge
subclass = PCI-ISA
none2@pci0:0:31:2: class=0x058000 card=0x50011458 chip=0xa2a18086 rev=0x00 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘200 Series/Z370 Chipset Family Power Management Controller’
class = memory
hdac1@pci0:0:31:3: class=0x040300 card=0xa1821458 chip=0xa2f08086 rev=0x00 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘200 Series PCH HD Audio’
class = multimedia
subclass = HDA
none3@pci0:0:31:4: class=0x0c0500 card=0x50011458 chip=0xa2a38086 rev=0x00 hdr=0x00
vendor = ‘Intel Corporation’
device = ‘200 Series/Z370 Chipset Family SMBus Controller’
class = serial bus
subclass = SMBus
vgapci0@pci0:1:0:0: class=0x030000 card=0x3fca1458 chip=0x1f8210de rev=0xa1 hdr=0x00
vendor = ‘NVIDIA Corporation’
device = ‘TU117 [GeForce GTX 1650]’
class = display
subclass = VGA
hdac0@pci0:1:0:1: class=0x040300 card=0x3fca1458 chip=0x10fa10de rev=0xa1 hdr=0x00
vendor = ‘NVIDIA Corporation’
class = multimedia
subclass = HDA
rtwn0@pci0:4:0:0: class=0x028000 card=0x819710ec chip=0x817910ec rev=0x01 hdr=0x00
vendor = ‘Realtek Semiconductor Co., Ltd.’
device = ‘RTL8188EE Wireless Network Adapter’
class = network
re0@pci0:7:0:0: class=0x020000 card=0xe0001458 chip=0x816810ec rev=0x16 hdr=0x00
vendor = ‘Realtek Semiconductor Co., Ltd.’
device = ‘RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller’
class = network
subclass = ethernet

sysctl -n hw.pci.default_vgapci_unit

0

pciconf -lv | grep -B3 display

vgapci0@pci0:1:0:0:	class=0x030000 card=0x3fca1458 chip=0x1f8210de rev=0xa1 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'TU117 [GeForce GTX 1650]'
    class      = display

grep EE /var/log/Xorg.0.log

(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   392.596] (II) Initializing extension MIT-SCREEN-SAVER

/etc/rc.conf

allscreens_flags="green"
bsdstats_enable="NO"
clear_tmp_X="NO"
cupsd_enable="YES"
dbus_enable="YES"
devfs_system_ruleset="desktopuser"
dsbdriverd_enable="YES"
dsbmd_enable="YES"
entropy_file="NO"
hostname="NomadBSD"
kld_list="cuse4bsd"
ldconfig_insecure="YES"
local_startup="/usr.local.etc/rc.d"
lpd_enable="NO"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
powerdxx_enable="YES"
savecore_enable="NO"
sendmail_enable="NO"
sendmail_msp_queue_enable="NO"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
setup_mouse_enable="YES"
syslogd_enable="YES"
update_motd="NO"
webcamd_enable="YES"
economy_cx_lowest="C2"
performance_cx_lowest="C2"
initgfx_enable="YES"
gsched_enable="YES"
slim_enable="YES"
init_vbox_enable="YES"
avahi_daemon_enable="YES"
ipv6_activate_all_interfaces="YES"
ackfwl_enable="YES"
load_iichid_enable="YES"
keymap="es.kbd"
ifconfig_re0="DHCP"
ifconfig_re0_ipv6="inet6 accept_rtadv"
wlans_run0="wlan0"
create_args_wlan0="down country AR"
ifconfig_wlan0="up scan WPA DHCP"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
wlans_rtwn0="wlan1"
create_args_wlan1="down country AR"
ifconfig_wlan1="up scan WPA DHCP"
ifconfig_wlan1_ipv6="inet6 accept_rtadv"
linux_enable="YES"
kld_list="nvidia-modeset"

/boot/loader.conf

# graphics_enable="YES"
# beastie_theme="/boot/themes/default/theme.conf"

#loader_color="YES"
loader_logo="nomadbsd"
loader_brand="nomadbsd"
loader_menu_frame="none"
loader_menu_title="Welcome to NomadBSD"
loader_menu_title_align="left"
loader_menu_y="13"
loader_menu_x="24"

ums_load="YES"
aio_load="YES"

hint.pcm.0.eq="1"
hint.pcm.1.eq="1"
hint.pcm.2.eq="1"
hint.pcm.3.eq="1"
hint.pcm.4.eq="1"
hint.pcm.5.eq="1"
hint.pcm.6.eq="1"
hint.pcm.7.eq="1"
hint.pcm.8.eq="1"
hint.pcm.9.eq="1"

hw.snd.vpc_autoreset=0
hw.syscons.bell=0
hw.usb.no_pf=1
hw.usb.no_boot_wait=0
hw.usb.no_shutdown_wait=1
hw.psm.synaptics_support=1
hw.psm.trackpoint_support=1

kern.cam.scsi_delay=10000

# Use new virtual terminal driver
hw.vga.textmode=1
kern.vty=vt

# Make sure to wait for the root device to appear before trying root mount
vfs.root_mount_always_wait=1

Thank you for your time!

That’s the problem. Slim is the display manager which starts the X server and allows for a graphical login. If you don’t want a display manager to start your X-session, you can manually start it from a virtual console. Log in with your username, and run startx. Otherwise: sudo pkg install slim

Since you installed and set up the NVIDIA driver yourself, you can disable the automatic graphics driver setup: sudo sysrc initgfx_enable=NO

1 Like

First, thank you for your prompt response, I really appreciate it!

With all due respect, there was no need to reinstall slim or log in from a virtual console.

This is where the question was, changing a YES to a NO :grinning: and after three restarts, I never saw that window again.

Thanks again!

:maté: