Solved KDE missing resolutions for amd card

Hi forum
I've been struggling to get an AMD video card working in FreeBSD 14.
So I pulled the card from my daily desktop, and am trying to get it working in a "lab machine".
I'm using a basic 27 inch monitor than can do 1920x1080, BUT the KDE display settings are stuck at 1400x1050.
Pleases and thankyous for any clues how to enable higher resolution in KDE.

THE DETAILS :
This is genuine legacy hardware. No VM in sight.
I've done a fresh install of FreeBSD 14.1 (because I already had a usb key ready to go).
Installed the usual packages, including xorg, sddm, plasma5-plasma, etc, also drm-kmod, and xf86-video-amdgpu
Hardware shows :
Code:
# pciconf -vl | grep -B4 VGA
vgapci0@pci0:2:0:0:     class=0x030000 rev=0x00 hdr=0x00 vendor=0x1002 device=0x6739 subvendor=0x1458 subdevice=0x21f8
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Barts PRO [Radeon HD 6850]'
    class      = display
    subclass   = VGA

# kldstat
Id Refs Address                Size Name
 1   50 0xffffffff80200000  1f3c6c0 kernel
 2    1 0xffffffff8213d000     b010 cuse.ko
 3    1 0xffffffff8214a000    274a8 fusefs.ko
 4    1 0xffffffff82a00000   667888 amdgpu.ko
 5    2 0xffffffff82820000    86090 drm.ko
 6    1 0xffffffff828a7000     22b8 iic.ko
 7    2 0xffffffff828aa000     4120 linuxkpi_video.ko
 8    3 0xffffffff828af000     7350 dmabuf.ko
 9    3 0xffffffff828b7000     3378 lindebugfs.ko
10    1 0xffffffff828bb000     c338 ttm.ko
11    1 0xffffffff828c8000     3390 acpi_wmi.ko
12    1 0xffffffff828cc000     3360 uhid.ko
13    1 0xffffffff828d0000     4364 ums.ko
14    1 0xffffffff828d5000     4d64 geom_uzip.ko
15    1 0xffffffff828da000     2a68 mac_ntpd.ko

# cat /boot/loader.conf
fusefs_load="YES"
cuse_load="YES"
loader_logo="none"
autoboot_delay="3"

# cat /etc/rc.conf
hostname="235e.lan"
ifconfig_nfe0="DHCP"
sshd_enable="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
powerd_enable="YES"
moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
sddm_enable="YES"
dbus_enable="YES"
balloo_enable="NO"
weekly_locate_enable="/etc/periodic/weekly/310.locate"
kld_list="amdgpu"
# ssh server
sshd_enable="YES"
sshd_flags=" -o PermitRootLogin=Yes"

I'm not yet having any xorg config files. X is doing all the configurating by itself, and I'm stuck using 1400x1050.
 
It might be related to the resolution capability of the x11-drivers/xf86-video-amdgpu driver.
Installed ... xf86-video-amdgpu

Even with no xorg config files
I'm not yet having any xorg config files. X is doing all the configurating by itself,
the driver is picked up by xorg automatically if it is considers as appropriate.

Please show us /var/log/Xorg.0.log to see which video driver has been used, and which resolutions this driver offers.

If you see the x11-drivers/xf86-video-amdgpu is the culprit, remove it from system. When no additional drivers are installed, the "modesetting" driver, provided by x11-servers/xorg-server, is used, which offers .


Please could a moderator move this thread to " Window Managers, KDE " ?
If you report your own posting ("Report" button on the bottom left side of every posting), it would attract attention sooner. I've done it a few times myself.
 
Your AMD Radeon HD 6850 has: Release Date: Oct 21st, 2010, furthermore it is of generation 'Northern Islands'; this is the immediate predecessor of the 'Southern Islands' generation. The 'starting-point' for using amdgpu (as shown by your kldstat output) is the AMD Radeon HD 7000 Southern Islands generation; see also graphics/drm-61-kmod .

Therefore, for your drm-KMS driver in rc.conf, I'd try:
kld_list="radeonkms"
For your Xorg driver I'd try creating an Xorg .conf file with the following line appropriately embedded:
Driver "radeon"
Your AMD Radeon HD 6850 is supported by the Xorg radeon(4) driver
Edit: the Xorg radeon(4) driver is contained in x11-drivers/xf86-video-ati.
Edit: without this specific Xorg .conf file, likely the Xorg modesetting(4) driver will be selected automatically, I think; that might also work but I'm not sure.

Do post your Xorg log file and your Xorg .conf file though. For example, you can use:
cat /var/log/Xorg.0.log | nc termbin.com 9999
Post the resulting urls and output of pkg query -x '%n-%v' 'drm.*-kmod'


P.S.
Please could a moderator move this thread to " Window Managers, KDE " ?
IMHO, this looks like a driver issue for your display server (Xorg in this particular case). It doesn't seem connected specifically to KDE and therefore it seems to me that this forum ( Desktop Usage > Display Servers ) is the right place.
 
Thanks to all who contributed. It seems we have a solution. :)

1. Nothing special in /boot/loader.conf

1.1 I wonder whether both the following are needed ?
Code:
pkg install xf86-video-amdgpu
pkg install gpu-firmware-radeon-kmod-barts

1.2 Results as requested by Erichans above :
Code:
 #  pkg query -x '%n-%v' 'drm.*-kmod'
drm-61-kmod-6.1.92.1401000_3
drm-kmod-20220907_3

2. Include in /etc/rc.conf :
Code:
 kld_list="radeonkms"

This loads a number of vital radeon kernel modules :
Code:
# kldstat
Id Refs Address                Size Name
 1   68 0xffffffff80200000  1f3c6c0 kernel
 2    1 0xffffffff8213d000     b010 cuse.ko
 3    1 0xffffffff82149000    274a8 fusefs.ko
 4    1 0xffffffff82820000   152de8 radeonkms.ko
 5    2 0xffffffff82973000    86090 drm.ko
 6    1 0xffffffff829fa000     22b8 iic.ko
 7    2 0xffffffff829fd000     4120 linuxkpi_video.ko
 8    3 0xffffffff82a02000     7350 dmabuf.ko
 9    3 0xffffffff82a0a000     3378 lindebugfs.ko
10    1 0xffffffff82a0e000     c338 ttm.ko
11    1 0xffffffff82a1b000     3260 radeon_BARTS_pfp_bin.ko
12    1 0xffffffff82a1f000     3660 radeon_BARTS_me_bin.ko
13    1 0xffffffff82a23000     2ce0 radeon_BTC_rlc_bin.ko
14    1 0xffffffff82a26000     7f00 radeon_BARTS_mc_bin.ko
15    1 0xffffffff82a2e000     81e8 radeon_BARTS_smc_bin.ko
16    1 0xffffffff82a37000    341f8 radeon_SUMO_uvd_bin.ko
17    1 0xffffffff82a6c000     3390 acpi_wmi.ko
18    1 0xffffffff82a70000     3360 uhid.ko
19    1 0xffffffff82a74000     4364 ums.ko
20    1 0xffffffff82a79000     4d64 geom_uzip.ko
21    1 0xffffffff82a7e000     2a68 mac_ntpd.ko

3. Just a short stanza in /usr/local/etc/X11/xorg.conf.d/10-video.conf [ EDIT. NOT required, see further thread below. ]
Code:
Section "Device"
    Identifier "video0"
    BusID "PCI:2:0:0"
    Screen 0
EndSection

Is there any improved or better way to do this ?
Or might this be the "approved solution" ?
Xorg.0.log attached, FYI.

4. Now, the next challenge is to get this card working with 2 x screens at 1920x1080.
 

Attachments

Last edited:
Are you sure that your point number 3 is needed?
(Usually, autodetection works for amd and intel cards and chipsets)
Thanks for the tip.
I've quickly removed the 10-video.conf file, and can confirm that Xorg continues working as intended. After a reboot ! ;)
Without any manual configuration files, we're now having 2 x DVI monitors both 1920x1080 connected to this legacy video card.
It seems the solution to this problem was simply knowing which kernel package to install, and driver to load, ie kld_list="radeonkms".
More thanks to Erichans 👍
 
Back
Top