helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
808 stars 58 forks source link

0E27: initgfx does not autoconfigure NVIDIA GPU #182

Closed probonopd closed 3 years ago

probonopd commented 3 years ago

12.2 based helloSystem build: 0E27 for commit: 4f4d8b0

NVIDIA GPU is (somewhat?) detected but not used by Xorg.

root@FreeBSD:/usr/home/liveuser # lspci 
(...)
01:00.1 Class 0403: Device 10de:0fbc (rev a1)

# cat /usr/local/etc/X11/xorg.conf.d/10-video-initgfx.conf 
Section "Device"
        Identifier "Card0"
        Driver "vesa"
        BusID "PCI:1:0:0"
EndSection

# cat /tmp/initgfx.335/10-video-initgfx.conf 
Section "Device"
    Identifier    "NVIDIA CARD"
    VendorName    "NVIDIA Corporation"
    Driver        "nvidia"
    BusID         "PCI:1:0:0"
EndSection

# kldstat 
Id Refs Address                Size Name
 1   66 0xffffffff80200000  2448d90 kernel
 2    1 0xffffffff83409000   3a99a8 zfs.ko
 3    2 0xffffffff837b3000     a5b8 opensolaris.ko
 4    1 0xffffffff837be000     8460 geom_uzip.ko
 5    2 0xffffffff837c7000     4810 xz.ko
 6    1 0xffffffff837cc000    20c10 firewire.ko
 7    1 0xffffffff837ed000    11d40 tmpfs.ko
 8    1 0xffffffff83a21000     fcf0 fuse.ko
 9    1 0xffffffff83a31000     18a0 uhid.ko
10    1 0xffffffff83a33000     1aa0 wmt.ko
11    1 0xffffffff83a35000      1ac cd9660_iconv.ko
12    2 0xffffffff83a36000     3000 libiconv.ko
13    1 0xffffffff83a39000     2928 ums.ko
14    1 0xffffffff83a3c000      1ae msdosfs_iconv.ko
15    1 0xffffffff83a3d000    3df60 linux.ko
16    2 0xffffffff83a7b000     3178 linux_common.ko
17    1 0xffffffff83a7f000    35b20 linux64.ko
18    1 0xffffffff83ab5000     47b0 autofs.ko
19    1 0xffffffff83aba000     3520 ichwd.ko
20    1 0xffffffff83abe000     20f0 acpi_wmi.ko
21    1 0xffffffff83ac1000     2b88 acpi_video.ko

The same ISO did autoconfigure an Intel GPU properly (on a different system).

cc @crees

crees commented 3 years ago

I think I'll have to look at the changes upstream.

probonopd commented 3 years ago

Strangely, nomadbsd-1.4.img.lzma (also based on 12.2) does load the NVIDIA kernel module and puts NVIDIA configuration into /usr/local/etc/X11/xorg.conf.d/10-video-initgfx.conf correctly.

crees commented 3 years ago

Fixed in pull request #184.

probonopd commented 3 years ago

Unfortunately the issue persists in helloSystem build: 0E31 for commit: e66c914, FreeBSD 12.1 (did not test 12.2, let me know in case you think it makes a difference).

crees commented 3 years ago

You are showing me the nvidia audio controller with your lspci output.

# pciconf -lv | grep -A3 ^vgapci${unit} | grep device

What does this show?

crees commented 3 years ago

Also, please would you boot with muting off and grep /var/log/messages for initgfx?

probonopd commented 3 years ago
FreeBSD% pciconf -lv | grep -A3 ^vgapci${unit} | grep device
    device     = 'GM107 [GeForce GTX 750]'

FreeBSD% sudo grep -i initgfx /var/log/messages
FreeBSD% 

But:

Mar 15 07:48:48 FreeBSD kernel: KLD nvidia.ko: depends on kernel - not available or version mismatch
Mar 15 07:48:48 FreeBSD kernel: linker_load_file: /usr/local/nvidia/440/boot/modules/nvidia.ko - unsupported file type
Mar 15 07:48:48 FreeBSD kernel: KLD nvidia-modeset.ko: depends on kernel - not available or version mismatch
Mar 15 07:48:48 FreeBSD kernel: linker_load_file: /usr/local/nvidia/440/boot/modules/nvidia-modeset.ko - unsupported file type

FreeBSD% uname -v
FreeBSD 12.1-RELEASE r354233 GENERIC 

Gonna retry with the 12.2 based ISO.

probonopd commented 3 years ago

Gonna retry with the 12.2 based ISO.

Did the trick. Thank you very much @crees.