No Screens Found_FreeBSD 12.2

Sorry, I meant to write "/boot/modules" as the path & that's what I have in my rc.conf. Tried with just "amdgpu" as well. Doesn't work.
Please share us your kldstat output.

It should look something like that:

Code:
Id Refs Address                Size Name
 1   95 0xffffffff80200000  13eccf8 kernel
 2    1 0xffffffff815ed000   664560 openzfs.ko
 3    1 0xffffffff81c52000    27c70 fuse.ko
 4    1 0xffffffff81c7b000     a408 opensolaris.ko
 5    1 0xffffffff81f21000   24f2c4 amdgpu.ko
 6    2 0xffffffff82171000    75c50 drm.ko
 7    3 0xffffffff821e7000     b158 agp.ko
 8    5 0xffffffff821f3000    12d30 linuxkpi.ko
 9    4 0xffffffff82206000    13f30 linuxkpi_gplv2.ko
10    2 0xffffffff8221a000      6d0 debugfs.ko
11    1 0xffffffff8221b000     f061 ttm.ko
12    1 0xffffffff8222b000     80eb amdgpu_polaris12_mc_bin.ko
13    1 0xffffffff82234000     4431 amdgpu_polaris12_pfp_2_bin.ko
14    1 0xffffffff82239000     442f amdgpu_polaris12_me_2_bin.ko
15    1 0xffffffff8223e000     242f amdgpu_polaris12_ce_2_bin.ko
16    1 0xffffffff82241000     42ad amdgpu_polaris12_rlc_bin.ko
17    1 0xffffffff82246000    40441 amdgpu_polaris12_mec_2_bin.ko
18    1 0xffffffff82287000    40443 amdgpu_polaris12_mec2_2_bin.ko
19    1 0xffffffff822c8000     332f amdgpu_polaris12_sdma_bin.ko
20    1 0xffffffff822cc000     3331 amdgpu_polaris12_sdma1_bin.ko
21    1 0xffffffff822d0000    5bc0d amdgpu_polaris12_uvd_bin.ko
22    1 0xffffffff8232c000    28d2d amdgpu_polaris12_vce_bin.ko
23    1 0xffffffff82355000    1feed amdgpu_polaris12_smc_bin.ko
24    1 0xffffffff82375000    11978 if_bge.ko
25    1 0xffffffff82387000     2698 intpm.ko
26    1 0xffffffff8238a000      b40 smbus.ko
27    1 0xffffffff8238b000     1860 uhid.ko
28    1 0xffffffff8238d000     2908 ums.ko
29    1 0xffffffff82390000      acf mac_ntpd.ko

Try to get the DRM working before doing anything with Xorg or higher level applications. My example is from working installation, I just built last week. To get there, I did the following:

1. Built custom kernel without DRM. To do that I put WITHOUT_MODULES=drm drm2 into /etc/make.conf before building the kernel (and world);
2. Installed new kernel and graphics/drm-fbsd12.0-kmod;
3. In /boot/loader.conf set hw.syscons.disable=1;
4. In rc.conf set kld_list="amdgpu"; depends on your GPU model;
5. Reboot and see the output of your kldstat and dmesg -a|grep drm.

The dmesg -a|grep drm output should look something like this:

Code:
[drm] amdgpu kernel modesetting enabled.
drmn1: <drmn> on vgapci1
vgapci1: child drmn1 requested pci_enable_io
vgapci1: child drmn1 requested pci_enable_io
[drm] initializing kernel modesetting (POLARIS12 0x1002:0x699F 0x1462:0x8A90 0xC7).
[drm] register mmio base: 0xFF600000
[drm] register mmio size: 262144
[drm] PCI I/O BAR is not found.
[drm] probing gen 2 caps for device 1022:1412 = 700d02/6
[drm] probing mlw for device 1002:699f = 400883
[drm] UVD is enabled in VM mode
[drm] UVD ENC is enabled in VM mode
[drm] VCE enabled in VM mode
[drm] vm size is 64 GB, 2 levels, block size is 10-bit, fragment size is 9-bit
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_mc.bin
drmn1: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
drmn1: GTT: 256M 0x0000000000000000 - 0x000000000FFFFFFF
[drm] Detected VRAM RAM=2048M, BAR=256M
[drm] RAM width 128bits GDDR5
[drm] amdgpu: 2048M of VRAM memory ready
[drm] amdgpu: 3072M of GTT memory ready.
[drm] GART: num cpu pages 65536, num gpu pages 65536
[drm] PCIE GART of 256M enabled (table at 0x000000F400040000).
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] Driver supports precise vblank timestamp query.
[drm] Connector HDMI-A-1: get mode from tunables:
[drm]   - kern.vt.fb.modes.HDMI-A-1
[drm]   - kern.vt.fb.default_mode
[drm] Connector DVI-D-1: get mode from tunables:
[drm]   - kern.vt.fb.modes.DVI-D-1
[drm]   - kern.vt.fb.default_mode
[drm] AMDGPU Display Connectors
[drm] Connector 0:
[drm]   HDMI-A-1
[drm]   HPD3
[drm]   DDC: 0x4874 0x4874 0x4875 0x4875 0x4876 0x4876 0x4877 0x4877
[drm]   Encoders:
[drm]     DFP1: INTERNAL_UNIPHY1
[drm] Connector 1:
[drm]   DVI-D-1
[drm]   HPD4
[drm]   DDC: 0x4878 0x4878 0x4879 0x4879 0x487a 0x487a 0x487b 0x487b
[drm]   Encoders:
[drm]     DFP2: INTERNAL_UNIPHY
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_pfp_2.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_me_2.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_ce_2.bin
[drm] Chained IB support enabled!
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_rlc.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_mec_2.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_mec2_2.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_sdma.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_sdma1.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_uvd.bin
[drm] Found UVD firmware Version: 1.130 Family ID: 16
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_vce.bin
[drm] Found VCE firmware Version: 53.26 Binary ID: 3
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_smc.bin
[drm] UVD and UVD ENC initialized successfully.
[drm] VCE initialized successfully.
[drm] fb mappable at 0xD0568000
[drm] vram apper at 0xD0000000
[drm] size 8294400
[drm] fb depth is 24
[drm]    pitch is 7680
name=drmn1 flags=0x0 stride=7680 bpp=32
drmn1: fb0: amdgpudrmfb frame buffer device
[drm] Initialized amdgpu 3.23.0 20150101 for drmn1 on minor 0

Please repeat these steps in your computer and provide us your output.

After you have got your DRM working, Install x11/xorg and try Xorg -configure in your root home directory. Without starting X, it should save the configuration in file xorg.conf.new. There should be something like this in this file:

Code:
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"                  # [<bool>]
        #Option     "kmsdev"                    # <str>
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "AccelMethod"               # <str>
        #Option     "PageFlip"                  # [<bool>]
        #Option     "ZaphodHeads"               # <str>
        #Option     "DoubleShadow"              # [<bool>]
        #Option     "Atomic"                    # [<bool>]
        Identifier  "Card0"
        Driver      "modesetting"
        BusID       "PCI:0:1:0"
EndSection

If all of this works, you are ready to go!
 
Please share us your kldstat output.

It should look something like that:

Code:
Id Refs Address                Size Name
1   95 0xffffffff80200000  13eccf8 kernel
2    1 0xffffffff815ed000   664560 openzfs.ko
3    1 0xffffffff81c52000    27c70 fuse.ko
4    1 0xffffffff81c7b000     a408 opensolaris.ko
5    1 0xffffffff81f21000   24f2c4 amdgpu.ko
6    2 0xffffffff82171000    75c50 drm.ko
7    3 0xffffffff821e7000     b158 agp.ko
8    5 0xffffffff821f3000    12d30 linuxkpi.ko
9    4 0xffffffff82206000    13f30 linuxkpi_gplv2.ko
10    2 0xffffffff8221a000      6d0 debugfs.ko
11    1 0xffffffff8221b000     f061 ttm.ko
12    1 0xffffffff8222b000     80eb amdgpu_polaris12_mc_bin.ko
13    1 0xffffffff82234000     4431 amdgpu_polaris12_pfp_2_bin.ko
14    1 0xffffffff82239000     442f amdgpu_polaris12_me_2_bin.ko
15    1 0xffffffff8223e000     242f amdgpu_polaris12_ce_2_bin.ko
16    1 0xffffffff82241000     42ad amdgpu_polaris12_rlc_bin.ko
17    1 0xffffffff82246000    40441 amdgpu_polaris12_mec_2_bin.ko
18    1 0xffffffff82287000    40443 amdgpu_polaris12_mec2_2_bin.ko
19    1 0xffffffff822c8000     332f amdgpu_polaris12_sdma_bin.ko
20    1 0xffffffff822cc000     3331 amdgpu_polaris12_sdma1_bin.ko
21    1 0xffffffff822d0000    5bc0d amdgpu_polaris12_uvd_bin.ko
22    1 0xffffffff8232c000    28d2d amdgpu_polaris12_vce_bin.ko
23    1 0xffffffff82355000    1feed amdgpu_polaris12_smc_bin.ko
24    1 0xffffffff82375000    11978 if_bge.ko
25    1 0xffffffff82387000     2698 intpm.ko
26    1 0xffffffff8238a000      b40 smbus.ko
27    1 0xffffffff8238b000     1860 uhid.ko
28    1 0xffffffff8238d000     2908 ums.ko
29    1 0xffffffff82390000      acf mac_ntpd.ko

Try to get the DRM working before doing anything with Xorg or higher level applications. My example is from working installation, I just built last week. To get there, I did the following:

1. Built custom kernel without DRM. To do that I put WITHOUT_MODULES=drm drm2 into /etc/make.conf before building the kernel (and world);
2. Installed new kernel and graphics/drm-fbsd12.0-kmod;
3. In /boot/loader.conf set hw.syscons.disable=1;
4. In set kld_list="amdgpu"; depends on your GPU model;
5. Reboot and see the output of your kldstat anddmesg -a|grep drm.

The dmesg -a|grep drm output should look something like this:

Code:
[drm] amdgpu kernel modesetting enabled.
drmn1: <drmn> on vgapci1
vgapci1: child drmn1 requested pci_enable_io
vgapci1: child drmn1 requested pci_enable_io
[drm] initializing kernel modesetting (POLARIS12 0x1002:0x699F 0x1462:0x8A90 0xC7).
[drm] register mmio base: 0xFF600000
[drm] register mmio size: 262144
[drm] PCI I/O BAR is not found.
[drm] probing gen 2 caps for device 1022:1412 = 700d02/6
[drm] probing mlw for device 1002:699f = 400883
[drm] UVD is enabled in VM mode
[drm] UVD ENC is enabled in VM mode
[drm] VCE enabled in VM mode
[drm] vm size is 64 GB, 2 levels, block size is 10-bit, fragment size is 9-bit
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_mc.bin
drmn1: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
drmn1: GTT: 256M 0x0000000000000000 - 0x000000000FFFFFFF
[drm] Detected VRAM RAM=2048M, BAR=256M
[drm] RAM width 128bits GDDR5
[drm] amdgpu: 2048M of VRAM memory ready
[drm] amdgpu: 3072M of GTT memory ready.
[drm] GART: num cpu pages 65536, num gpu pages 65536
[drm] PCIE GART of 256M enabled (table at 0x000000F400040000).
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] Driver supports precise vblank timestamp query.
[drm] Connector HDMI-A-1: get mode from tunables:
[drm]   - kern.vt.fb.modes.HDMI-A-1
[drm]   - kern.vt.fb.default_mode
[drm] Connector DVI-D-1: get mode from tunables:
[drm]   - kern.vt.fb.modes.DVI-D-1
[drm]   - kern.vt.fb.default_mode
[drm] AMDGPU Display Connectors
[drm] Connector 0:
[drm]   HDMI-A-1
[drm]   HPD3
[drm]   DDC: 0x4874 0x4874 0x4875 0x4875 0x4876 0x4876 0x4877 0x4877
[drm]   Encoders:
[drm]     DFP1: INTERNAL_UNIPHY1
[drm] Connector 1:
[drm]   DVI-D-1
[drm]   HPD4
[drm]   DDC: 0x4878 0x4878 0x4879 0x4879 0x487a 0x487a 0x487b 0x487b
[drm]   Encoders:
[drm]     DFP2: INTERNAL_UNIPHY
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_pfp_2.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_me_2.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_ce_2.bin
[drm] Chained IB support enabled!
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_rlc.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_mec_2.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_mec2_2.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_sdma.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_sdma1.bin
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_uvd.bin
[drm] Found UVD firmware Version: 1.130 Family ID: 16
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_vce.bin
[drm] Found VCE firmware Version: 53.26 Binary ID: 3
drmn1: successfully loaded firmware image with name: amdgpu/polaris12_smc.bin
[drm] UVD and UVD ENC initialized successfully.
[drm] VCE initialized successfully.
[drm] fb mappable at 0xD0568000
[drm] vram apper at 0xD0000000
[drm] size 8294400
[drm] fb depth is 24
[drm]    pitch is 7680
name=drmn1 flags=0x0 stride=7680 bpp=32
drmn1: fb0: amdgpudrmfb frame buffer device
[drm] Initialized amdgpu 3.23.0 20150101 for drmn1 on minor 0

Please repeat these steps in your computer and provide us your output.

After you have got your DRM working, Install x11/xorg and try Xorg -configure in your root home directory. Without starting X, it should save the configuration in file xorg.conf.new. There should be something like this in this file:

Code:
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"                  # [<bool>]
        #Option     "kmsdev"                    # <str>
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "AccelMethod"               # <str>
        #Option     "PageFlip"                  # [<bool>]
        #Option     "ZaphodHeads"               # <str>
        #Option     "DoubleShadow"              # [<bool>]
        #Option     "Atomic"                    # [<bool>]
        Identifier  "Card0"
        Driver      "modesetting"
        BusID       "PCI:0:1:0"
EndSection

If all of this works, you are ready to go!
1. Built a new kernel by disabling drm & drm2 and named it FORVEGA.
2. Followed rest of the steps as advised, but don't think "amdgpu" got loaded as with console output disabled, was at the boot screen for over 10 mins with no login prompt.
3. Collected the outputs as requested & are attached.

I guess it's what the drm-fbsd12.0-kmod says ..... "amdgpu is known to not work with EFI".
 

Attachments

  • output.txt
    1.5 KB · Views: 77
It is important to note that there is currently a conflict with both AMD drivers and the EFI frambuffer. The current workaround, when booting via UEFI on these systems, is to disable the framebuffer via /boot/loader.conf:

hw.syscons.disable=1

This will have the side effect of there being no console output until either the amdgpu or radeonkms kernel driver is loaded.
 
1. Built a new kernel by disabling drm & drm2 and named it FORVEGA.
2. Followed rest of the steps as advised, but don't think "amdgpu" got loaded as with console output disabled, was at the boot screen for over 10 mins with no login prompt.
3. Collected the outputs as requested & are attached.

I guess it's what the drm-fbsd12.0-kmod says ..... "amdgpu is known to not work with EFI".
It works with EFI here, on different machines. That is why hw.syscons.disable=1 is needed in /boot/loader.conf. Note that if you disable syscons and the modesetting does not start, you will have a blank console. But the machine still works. Good to have sshd enabled, so you can log in from another machine.

What is the exact model of your GPU? Fresh AMD models work with kld_list="amdgpu", older models with radeonkms.

Looks like it is not loading AMD modules.

I have another machine with AMD RX 570 GPU (and EFI boot). The kldstat shows:
Code:
Id Refs Address                Size Name
1   98 0xffffffff80200000  13eccf8 kernel
2    1 0xffffffff815ee000   3bacf8 zfs.ko
3    2 0xffffffff819a9000     a408 opensolaris.ko
4    1 0xffffffff819b4000    27c70 fuse.ko
5    1 0xffffffff819dc000     4198 sysctlinfo.ko
6    1 0xffffffff81b21000   24f2c4 amdgpu.ko
7    2 0xffffffff81d71000    75c50 drm.ko
8    3 0xffffffff81de7000     b158 agp.ko
9    5 0xffffffff81df3000    12d30 linuxkpi.ko
10    4 0xffffffff81e06000    13f30 linuxkpi_gplv2.ko
11    2 0xffffffff81e1a000      6d0 debugfs.ko
12    1 0xffffffff81e1b000     f061 ttm.ko
13    1 0xffffffff81e2b000     815b amdgpu_polaris10_mc_bin.ko
14    1 0xffffffff81e34000     4421 amdgpu_polaris10_pfp_2_bin.ko
15    1 0xffffffff81e39000     441f amdgpu_polaris10_me_2_bin.ko
16    1 0xffffffff81e3e000     241f amdgpu_polaris10_ce_2_bin.ko
17    1 0xffffffff81e41000     5d3d amdgpu_polaris10_rlc_bin.ko
18    1 0xffffffff81e47000    40431 amdgpu_polaris10_mec_2_bin.ko
19    1 0xffffffff81e88000    40433 amdgpu_polaris10_mec2_2_bin.ko
20    1 0xffffffff81ec9000     331f amdgpu_polaris10_sdma_bin.ko
21    1 0xffffffff81ecd000     3321 amdgpu_polaris10_sdma1_bin.ko
22    1 0xffffffff81ed1000    5bbfd amdgpu_polaris10_uvd_bin.ko
23    1 0xffffffff81f2d000    28d1d amdgpu_polaris10_vce_bin.ko
24    1 0xffffffff81f56000    1fe51 amdgpu_polaris10_k_smc_bin.ko
25    1 0xffffffff81f76000     2698 intpm.ko
26    1 0xffffffff81f79000      b40 smbus.ko
27    1 0xffffffff81f7a000     1860 uhid.ko
28    1 0xffffffff81f7c000     2908 ums.ko
29    1 0xffffffff81f7f000     1a40 wmt.ko
30    1 0xffffffff81f81000      acf mac_ntpd.ko
31    1 0xffffffff81f82000     87d0 tmpfs.ko
32    1 0xffffffff81f8b000     2940 nullfs.ko

Note the amdgpu firmware loaded. It should recognize the model and load firmware. In my case I have polaris12 on one machine and polaris10 on another.

So find out why it is not loading the modules?

You can see the modules available - ls -l /boot/modules/*amdgpu*
 
It works with EFI here, on different machines. That is why hw.syscons.disable=1 is needed in /boot/loader.conf. Note that if you disable syscons and the modesetting does not start, you will have a blank console. But the machine still works. Good to have sshd enabled, so you can log in from another machine.

What is the exact model of your GPU? Fresh AMD models work with kld_list="amdgpu", older models with radeonkms.

Looks like it is not loading AMD modules.

I have another machine with AMD RX 570 GPU (and EFI boot). The kldstat shows:
Code:
Id Refs Address                Size Name
1   98 0xffffffff80200000  13eccf8 kernel
2    1 0xffffffff815ee000   3bacf8 zfs.ko
3    2 0xffffffff819a9000     a408 opensolaris.ko
4    1 0xffffffff819b4000    27c70 fuse.ko
5    1 0xffffffff819dc000     4198 sysctlinfo.ko
6    1 0xffffffff81b21000   24f2c4 amdgpu.ko
7    2 0xffffffff81d71000    75c50 drm.ko
8    3 0xffffffff81de7000     b158 agp.ko
9    5 0xffffffff81df3000    12d30 linuxkpi.ko
10    4 0xffffffff81e06000    13f30 linuxkpi_gplv2.ko
11    2 0xffffffff81e1a000      6d0 debugfs.ko
12    1 0xffffffff81e1b000     f061 ttm.ko
13    1 0xffffffff81e2b000     815b amdgpu_polaris10_mc_bin.ko
14    1 0xffffffff81e34000     4421 amdgpu_polaris10_pfp_2_bin.ko
15    1 0xffffffff81e39000     441f amdgpu_polaris10_me_2_bin.ko
16    1 0xffffffff81e3e000     241f amdgpu_polaris10_ce_2_bin.ko
17    1 0xffffffff81e41000     5d3d amdgpu_polaris10_rlc_bin.ko
18    1 0xffffffff81e47000    40431 amdgpu_polaris10_mec_2_bin.ko
19    1 0xffffffff81e88000    40433 amdgpu_polaris10_mec2_2_bin.ko
20    1 0xffffffff81ec9000     331f amdgpu_polaris10_sdma_bin.ko
21    1 0xffffffff81ecd000     3321 amdgpu_polaris10_sdma1_bin.ko
22    1 0xffffffff81ed1000    5bbfd amdgpu_polaris10_uvd_bin.ko
23    1 0xffffffff81f2d000    28d1d amdgpu_polaris10_vce_bin.ko
24    1 0xffffffff81f56000    1fe51 amdgpu_polaris10_k_smc_bin.ko
25    1 0xffffffff81f76000     2698 intpm.ko
26    1 0xffffffff81f79000      b40 smbus.ko
27    1 0xffffffff81f7a000     1860 uhid.ko
28    1 0xffffffff81f7c000     2908 ums.ko
29    1 0xffffffff81f7f000     1a40 wmt.ko
30    1 0xffffffff81f81000      acf mac_ntpd.ko
31    1 0xffffffff81f82000     87d0 tmpfs.ko
32    1 0xffffffff81f8b000     2940 nullfs.ko

Note the amdgpu firmware loaded. It should recognize the model and load firmware. In my case I have polaris12 on one machine and polaris10 on another.

So find out why it is not loading the modules?

You can see the modules available - ls -l /boot/modules/*amdgpu*
How do I find out the "why" part? My GPU is a Vega11 on a Ryzen 5 3400G. In "/boot/modules", I see all the amdgpu ones. I see vega10 & vega12, but not 11. Does this mean it's not supported? Also, I don't know what code that "neofetch" thing uses to detect GPUs, but that detects it as a Picasso & the modules for picasso are in "/boot/modules".
 
How do I find out the "why" part? My GPU is a Vega11 on a Ryzen 5 3400G. In "/boot/modules", I see all the amdgpu ones. I see vega10 & vega12, but not 11. Does this mean it's not supported? Also, I don't know what code that "neofetch" thing uses to detect GPUs, but that detects it as a Picasso & the modules for picasso are in "/boot/modules".
That is a good question. Now I can see myself that there is no Vega11 module. Maybe this card is not supported. DRM modules come from Linux. This is even not directly a FreeBSD issue. I have no personal experience with Vega. My advice is to take (just for experiment) an external GPU, which has a proven support and try again.

P.S. I keep an idle RX 550 in my drawer for that purpose - I card I know for sure is working well.
 
Ryzen 5 3400G Graphics needs atleast linux 5.3 drm drivers. The current stable graphics/drm-kmod is 4.16 which should be update soon. If you cant wait, you can take FreeBSD 13-CURRENT with graphics/drm-devel-kmod.
Or you can also copy the Vega11 modules from FreeBSD 13 and put them in the /boot/modules directory. This may work.

As an ugly hack, you can try to change the names of Vega10 modules to Vega11 and see what happens. Most probably it does not work, but who knows. The file sizes of Vega10 and Vega12 modules are the same...

You can also try to run Xorg without DRM. Not so nice, but it may also work. Remove the amdgpu from rc.conf and reinstall x11-drivers/xorg-drivers with AMDGPU enabled:

Screenshot from 2020-12-16 14-18-03.png


Try to run Xorg -configure and see what it does. Ishould show the AMDGPU section instead of modesetting.
 
After installing KDE and SDDM, startx would no longer work and I kept getting the "No Screen Found". Here are the specs of the laptop I'm working with:
I think your problem might be easier than it sounds. Also my apologies if someone else has already mentioned this in another reply; I haven't read through the entire thread.

SDDM is a display manager, which runs on screen 0 by default.
startx starts your window manager of choice from the console and runs, by default on screen 0.
They can't both run on the same screen.

If you installed SDDM, you would not want to use startx, and if you use startx, you don't want to run sddm.

Try doing a "service sddm stop" followed by a startx and see if your window manager gets launched. If you want to use startx, make sure your ~/.xinitrc has the command to start your window manager.

You can also try the script I wrote to setup a desktop and see if that works for you. It would actually be really useful to see if it correctly sets up the gpu and all of that: https://github.com/nicholasbernstein/install-fbsd-desktop
 
Agree with that. That is the point of SSDM. If sddm does not start for some reason, one can try the x11/slim. This is simpler, may save your day before you find out whats wrong with sddm.
Tried the suggested changes to disable SDDM & just do a "startx" with kde start command in my ".xinitrc". Doesn't work. Also tried the re-install of X11-drivers, but with that & "amdgpu" disabled in "rc.conf", the amdgpu drivers don't load. Changing Vega10 & 12 to 11, didn't help either. I guess I'll just be patient & wait till 13-RELEASE comes out. If the processor support needs linux 5.3, then looks like that's what I need to wait for.

Thank you to all who took time to suggest all these steps. At least I know where the issue is or I think I do & I also got to learn about what to look at when problems with display drivers come up.
 
UPDATE:

Install 13-RELEASE on the same machine with the Ryzen5 3400G with Vega11. Did a pkg install for drm-kmod & everything is working just fine. No issues with UEFI either. Don't need to disable syscons during start up.
 
Back
Top