freebsd / drm-kmod

drm driver for FreeBSD
148 stars 68 forks source link

AMD Ryzen 5 4500U (Renoir) not working #198

Closed hurzl closed 1 year ago

hurzl commented 1 year ago

I can start X, mouse and keyboard are working, but I only get a black screen with some randomly colored squares (and mouse pointer)

FreeBSD 13.1-STABLE or 14.0-CURRENT drm-kmod: both 5.10-lts and master branch Options in xorg.conf don't matter, except switching off Accel or AccelMethod. Linux works fine since at least (DRM 3.39.0, 5.9.0-3-amd64, LLVM 11.0.0)

vgapci0@pci0:4:0:0: class=0x030000 rev=0xc3 hdr=0x00 vendor=0x1002 device=0x1636 subvendor=0x17aa subdevice=0x507f
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Renoir'
    class      = display
    subclass   = VGA
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[ 73139.668] Current Operating System: FreeBSD thinkpad 13.1-STABLE FreeBSD 13.1-STABLE #15 stable/13-n252092-d1cd71da2b3: Wed Aug 10 21:21:37 CEST 2022     root@thinkpad:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
[ 73139.668]  
[ 73139.668] Current version of pixman: 0.40.0
[ 73139.668]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[ 73139.668] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 73139.669] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Aug 12 22:25:59 2022
[ 73139.671] (==) Using config file: "/etc/X11/xorg.conf"
[ 73139.671] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[ 73139.671] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[ 73139.672] (==) No Layout section.  Using the first Screen section.
[ 73139.672] (==) No screen section available. Using defaults.
[ 73139.672] (**) |-->Screen "Default Screen Section" (0)
[ 73139.672] (**) |   |-->Monitor "<default monitor>"
[ 73139.672] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[ 73139.672] (**) |   |-->Device "Card0"
[ 73139.672] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[ 73139.673] (==) Automatically adding devices
[ 73139.673] (==) Automatically enabling devices
[ 73139.673] (==) Not automatically adding GPU devices
[ 73139.673] (==) Automatically binding GPU devices
[ 73139.673] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 73139.676] (==) FontPath set to:
    /usr/local/share/fonts/misc/,
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    /usr/local/share/fonts/Type1/,
    /usr/local/share/fonts/100dpi/,
    /usr/local/share/fonts/75dpi/,
    catalogue:/usr/local/etc/X11/fontpath.d
[ 73139.676] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[ 73139.676] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 73139.676] (II) Module ABI versions:
[ 73139.676]    X.Org ANSI C Emulation: 0.4
[ 73139.676]    X.Org Video Driver: 25.2
[ 73139.676]    X.Org XInput driver : 24.4
[ 73139.676]    X.Org Server Extension : 10.0
[ 73139.676] (--) PCI:*(4@0:0:0) 1002:1636:17aa:507f rev 195, Mem @ 0x460000000/268435456, 0x470000000/2097152, 0xfd300000/524288, I/O @ 0x00001000/256, BIOS @ 0x????????/65536
[ 73139.677] (II) LoadModule: "glx"
[ 73139.679] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 73139.681] (II) Module glx: vendor="X.Org Foundation"
[ 73139.681]    compiled for 1.21.1.4, module version = 1.0.0
[ 73139.681]    ABI class: X.Org Server Extension, version 10.0
[ 73139.681] (II) LoadModule: "amdgpu"
[ 73139.681] (II) Loading /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so
[ 73139.682] (II) Module amdgpu: vendor="X.Org Foundation"
[ 73139.682]    compiled for 1.21.1.4, module version = 22.0.0
[ 73139.682]    Module class: X.Org Video Driver
[ 73139.682]    ABI class: X.Org Video Driver, version 25.2
[ 73139.682] (II) AMDGPU: Driver for AMD Radeon:
    All GPUs supported by the amdgpu kernel driver
[ 73139.682] (--) Using syscons driver with X support (version 2.0)
[ 73139.682] (--) using VT number 9

[ 73139.693] (II) AMDGPU(0): [KMS] Kernel modesetting enabled.
[ 73139.694] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 73139.694] (II) AMDGPU(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[ 73139.694] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32
[ 73139.694] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[ 73139.694] (==) AMDGPU(0): Default visual is TrueColor
[ 73139.694] (==) AMDGPU(0): RGB weight 888
[ 73139.694] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC)
[ 73139.694] (--) AMDGPU(0): Chipset: "Unknown AMD Radeon GPU" (ChipID = 0x1636)
[ 73139.694] (II) Loading sub module "fb"
[ 73139.694] (II) LoadModule: "fb"
[ 73139.694] (II) Module "fb" already built-in
[ 73139.694] (II) Loading sub module "dri2"
[ 73139.694] (II) LoadModule: "dri2"
[ 73139.694] (II) Module "dri2" already built-in
[ 73139.761] (II) Loading sub module "glamoregl"
[ 73139.761] (II) LoadModule: "glamoregl"
[ 73139.761] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
[ 73139.777] (II) Module glamoregl: vendor="X.Org Foundation"
[ 73139.777]    compiled for 1.21.1.4, module version = 1.0.1
[ 73139.777]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 73139.792] (II) AMDGPU(0): glamor X acceleration enabled on AMD RENOIR (DRM 3.40.0, 13.1-STABLE, LLVM 13.0.1)
[ 73139.792] (II) AMDGPU(0): glamor detected, initialising EGL layer.
[ 73139.792] (==) AMDGPU(0): TearFree property default: auto
[ 73139.792] (==) AMDGPU(0): VariableRefresh: disabled
[ 73139.792] (==) AMDGPU(0): AsyncFlipSecondaries: disabled
[ 73139.792] (II) AMDGPU(0): KMS Pageflipping: enabled
[ 73139.793] (II) AMDGPU(0): Output eDP has no monitor section
[ 73139.793] (II) AMDGPU(0): Output HDMI-A-0 has no monitor section
[ 73139.793] (II) AMDGPU(0): Output DisplayPort-0 has no monitor section
[ 73139.808] (II) AMDGPU(0): EDID for output eDP
[ 73139.808] (II) AMDGPU(0): Manufacturer: AUO  Model: 403d  Serial#: 0
[ 73139.808] (II) AMDGPU(0): Year: 2018  Week: 33
[ 73139.808] (II) AMDGPU(0): EDID Version: 1.4
[ 73139.808] (II) AMDGPU(0): Digital Display Input
[ 73139.808] (II) AMDGPU(0): 8 bits per channel
[ 73139.809] (II) AMDGPU(0): Digital interface is DisplayPort
[ 73139.809] (II) AMDGPU(0): Max Image Size [cm]: horiz.: 31  vert.: 17
[ 73139.809] (II) AMDGPU(0): Gamma: 2.20
[ 73139.809] (II) AMDGPU(0): No DPMS capabilities specified
[ 73139.809] (II) AMDGPU(0): Supported color encodings: RGB 4:4:4 
[ 73139.809] (II) AMDGPU(0): First detailed timing is preferred mode
[ 73139.809] (II) AMDGPU(0): Preferred mode is native pixel format and refresh rate
[ 73139.809] (II) AMDGPU(0): Display is continuous-frequency
[ 73139.809] (II) AMDGPU(0): redX: 0.572 redY: 0.337   greenX: 0.350 greenY: 0.565
[ 73139.809] (II) AMDGPU(0): blueX: 0.162 blueY: 0.125   whiteX: 0.313 whiteY: 0.329
[ 73139.809] (II) AMDGPU(0): Manufacturer's mask: 0
[ 73139.809] (II) AMDGPU(0): Supported detailed timing:
[ 73139.809] (II) AMDGPU(0): clock: 141.0 MHz   Image Size:  309 x 174 mm
[ 73139.809] (II) AMDGPU(0): h_active: 1920  h_sync: 1936  h_sync_end 1952 h_blank_end 2104 h_border: 0
[ 73139.809] (II) AMDGPU(0): v_active: 1080  v_sync: 1083  v_sync_end 1097 v_blanking: 1116 v_border: 0
[ 73139.809] (II) AMDGPU(0): Unknown vendor-specific block 0
[ 73139.809] (II) AMDGPU(0):  AUO
[ 73139.809] (II) AMDGPU(0):  B140HAN04.0
[ 73139.809] (II) AMDGPU(0): EDID (in hex):
[ 73139.809] (II) AMDGPU(0):    00ffffffffffff0006af3d4000000000
[ 73139.809] (II) AMDGPU(0):    211c0104a51f1178039b859256599029
[ 73139.809] (II) AMDGPU(0):    20505400000001010101010101010101
[ 73139.809] (II) AMDGPU(0):    010101010101143780b8703824401010
[ 73139.809] (II) AMDGPU(0):    3e0035ae100000180000000000000000
[ 73139.809] (II) AMDGPU(0):    00000000000000000020000000fe0041
[ 73139.809] (II) AMDGPU(0):    554f0a202020202020202020000000fe
[ 73139.809] (II) AMDGPU(0):    004231343048414e30342e30200a0097
[ 73139.809] (II) AMDGPU(0): Printing probed modes for output eDP
[ 73139.809] (II) AMDGPU(0): Modeline "1920x1080"x60.0  141.00  1920 1936 1952 2104  1080 1083 1097 1116 -hsync -vsync (67.0 kHz eP)
[ 73139.809] (II) AMDGPU(0): Modeline "1680x1050"x60.0  141.00  1680 1936 1952 2104  1050 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 73139.809] (II) AMDGPU(0): Modeline "1280x1024"x60.0  141.00  1280 1936 1952 2104  1024 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 73139.809] (II) AMDGPU(0): Modeline "1440x900"x60.0  141.00  1440 1936 1952 2104  900 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 73139.809] (II) AMDGPU(0): Modeline "1280x800"x60.0  141.00  1280 1936 1952 2104  800 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 73139.809] (II) AMDGPU(0): Modeline "1280x720"x60.0  141.00  1280 1936 1952 2104  720 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 73139.809] (II) AMDGPU(0): Modeline "1024x768"x60.0  141.00  1024 1936 1952 2104  768 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 73139.809] (II) AMDGPU(0): Modeline "800x600"x60.0  141.00  800 1936 1952 2104  600 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 73139.809] (II) AMDGPU(0): Modeline "640x480"x60.0  141.00  640 1936 1952 2104  480 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 73139.809] (II) AMDGPU(0): EDID for output HDMI-A-0
[ 73139.809] (II) AMDGPU(0): EDID for output DisplayPort-0
[ 73139.809] (II) AMDGPU(0): Output eDP connected
[ 73139.809] (II) AMDGPU(0): Output HDMI-A-0 disconnected
[ 73139.809] (II) AMDGPU(0): Output DisplayPort-0 disconnected
[ 73139.809] (II) AMDGPU(0): Using exact sizes for initial modes
[ 73139.809] (II) AMDGPU(0): Output eDP using initial mode 1920x1080 +0+0
[ 73139.809] (II) AMDGPU(0): mem size init: gart size :bfa7e000 vram size: s:7e2e5000 visible:7e2e5000
[ 73139.809] (==) AMDGPU(0): DPI set to (96, 96)
[ 73139.809] (==) AMDGPU(0): Using gamma correction (1.0, 1.0, 1.0)
[ 73139.809] (II) Loading sub module "ramdac"
[ 73139.809] (II) LoadModule: "ramdac"
[ 73139.809] (II) Module "ramdac" already built-in
[ 73139.809] (II) AMDGPU(0): [DRI2] Setup complete
[ 73139.809] (II) AMDGPU(0): [DRI2]   DRI driver: radeonsi
[ 73139.809] (II) AMDGPU(0): [DRI2]   VDPAU driver: radeonsi
[ 73139.824] (II) AMDGPU(0): Front buffer pitch: 7680 bytes
[ 73139.824] (II) AMDGPU(0): SYNC extension fences enabled
[ 73139.824] (II) AMDGPU(0): Present extension enabled
[ 73139.824] (==) AMDGPU(0): DRI3 enabled
[ 73139.824] (==) AMDGPU(0): Backing store enabled
[ 73139.824] (II) AMDGPU(0): Direct rendering enabled
[ 73139.846] (II) AMDGPU(0): Use GLAMOR acceleration.
[ 73139.846] (II) AMDGPU(0): Acceleration enabled
[ 73139.846] (==) AMDGPU(0): DPMS enabled
[ 73139.846] (==) AMDGPU(0): Silken mouse enabled
[ 73139.846] (II) AMDGPU(0): Set up textured video (glamor)
[ 73139.859] (II) Initializing extension Generic Event Extension
[ 73139.859] (II) Initializing extension SHAPE
[ 73139.859] (II) Initializing extension MIT-SHM
[ 73139.860] (II) Initializing extension XInputExtension
[ 73139.860] (II) Initializing extension XTEST
[ 73139.860] (II) Initializing extension BIG-REQUESTS
[ 73139.860] (II) Initializing extension SYNC
[ 73139.860] (II) Initializing extension XKEYBOARD
[ 73139.860] (II) Initializing extension XC-MISC
[ 73139.860] (II) Initializing extension SECURITY
[ 73139.861] (II) Initializing extension XFIXES
[ 73139.861] (II) Initializing extension RENDER
[ 73139.861] (II) Initializing extension RANDR
[ 73139.861] (II) Initializing extension COMPOSITE
[ 73139.861] (II) Initializing extension DAMAGE
[ 73139.861] (II) Initializing extension MIT-SCREEN-SAVER
[ 73139.862] (II) Initializing extension DOUBLE-BUFFER
[ 73139.862] (II) Initializing extension RECORD
[ 73139.862] (II) Initializing extension DPMS
[ 73139.862] (II) Initializing extension Present
[ 73139.862] (II) Initializing extension DRI3
[ 73139.862] (II) Initializing extension X-Resource
[ 73139.862] (II) Initializing extension XVideo
[ 73139.863] (II) Initializing extension XVideo-MotionCompensation
[ 73139.863] (II) Initializing extension GLX
[ 73139.867] (II) AIGLX: Loaded and initialized radeonsi
[ 73139.867] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 73139.867] (II) Initializing extension XFree86-VidModeExtension
[ 73139.867] (II) Initializing extension XFree86-DGA
[ 73139.867] (II) Initializing extension XFree86-DRI
[ 73139.867] (II) Initializing extension DRI2
[ 73139.867] (II) AMDGPU(0): Setting screen physical size to 508 x 285
[ 73139.959] (II) config/udev: Adding input device System mouse (/dev/input/event0)
[ 73139.959] (**) System mouse: Applying InputClass "libinput pointer catchall"
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
[drm] initializing kernel modesetting (RENOIR 0x1002:0x1636 0x17AA:0x507F 0xC3).
drmn0: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
[drm] register mmio base: 0xFD300000
[drm] register mmio size: 524288
[drm] add ip block number 0 <soc15_common>
[drm] add ip block number 1 <gmc_v9_0>
[drm] add ip block number 2 <vega10_ih>
[drm] add ip block number 3 <psp>
[drm] add ip block number 4 <smu>
[drm] add ip block number 5 <gfx_v9_0>
[drm] add ip block number 6 <sdma_v4_0>
[drm] add ip block number 7 <dm>
[drm] add ip block number 8 <vcn_v2_0>
[drm] add ip block number 9 <jpeg_v2_0>
drmn0: Fetched VBIOS from VFCT
amdgpu: ATOM BIOS: 113-RENOIR-025
drmn0: successfully loaded firmware image 'amdgpu/renoir_sdma.bin'
[drm] VCN decode is enabled in VM mode
[drm] VCN encode is enabled in VM mode
[drm] JPEG decode is enabled in VM mode
[drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
drmn0: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
drmn0: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
drmn0: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
[drm] Detected VRAM RAM=2048M, BAR=2048M
[drm] RAM width 128bits DDR4
[TTM] Zone  kernel: Available graphics memory: 7176380 KiB
[TTM] Zone   dma32: Available graphics memory: 2097152 KiB
[TTM] Initializing pool allocator
[drm] amdgpu: 2048M of VRAM memory ready
[drm] amdgpu: 3072M of GTT memory ready.
[drm] GART: num cpu pages 262144, num gpu pages 262144
[drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
drmn0: successfully loaded firmware image 'amdgpu/renoir_asd.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_pfp.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_me.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_ce.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_rlc.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_mec.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_mec2.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_dmcub.bin'
[drm] Loading DMUB firmware via PSP: version=0x01000000
drmn0: successfully loaded firmware image 'amdgpu/renoir_vcn.bin'
[drm] Found VCN firmware Version ENC: 1.7 DEC: 4 VEP: 0 Revision: 17
drmn0: Will use PSP to load VCN firmware
[drm] reserve 0x400000 from 0xf47f800000 for PSP TMR
drmn0: SMU is initialized successfully!
[drm] kiq ring mec 2 pipe 1 q 0
[drm] Display Core initialized with v3.2.104!
[drm] DMUB hardware initialized: version=0x01000000
lkpi_iic0: <LinuxKPI I2C> on drmn0
iicbus0: <Philips I2C bus> on lkpi_iic0
iic0: <I2C generic I/O> on iicbus0
lkpi_iic1: <LinuxKPI I2C> on drmn0
iicbus1: <Philips I2C bus> on lkpi_iic1
iic1: <I2C generic I/O> on iicbus1
lkpi_iic2: <LinuxKPI I2C> on drmn0
iicbus2: <Philips I2C bus> on lkpi_iic2
iic2: <I2C generic I/O> on iicbus2
[drm] VCN decode and encode initialized successfully(under DPG Mode).
[drm] JPEG decode initialized successfully.
drmn0: SE 1, SH per SE 1, CU per SH 8, active_cu_number 6
[drm] fb mappable at 0x3B0CE0000
[drm] vram apper at 0x3B0000000
[drm] size 8294400
[drm] fb depth is 24
[drm]    pitch is 7680
VT: Replacing driver "efifb" with new "fb".
start FB_INFO:
type=11 height=1080 width=1920 depth=32
pbase=0x3b0ce0000 vbase=0xfffffe0118e76000
name=drmn0 flags=0x0 stride=7680 bpp=32
end FB_INFO
drmn0: ring gfx uses VM inv eng 0 on hub 0
drmn0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
drmn0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
drmn0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
drmn0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
drmn0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
drmn0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
drmn0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
drmn0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
drmn0: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
drmn0: ring sdma0 uses VM inv eng 0 on hub 1
drmn0: ring vcn_dec uses VM inv eng 1 on hub 1
drmn0: ring vcn_enc0 uses VM inv eng 4 on hub 1
drmn0: ring vcn_enc1 uses VM inv eng 5 on hub 1
drmn0: ring jpeg_dec uses VM inv eng 6 on hub 1
vgapci0: child drmn0 requested pci_get_powerstate
sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
lkpi_iic3: <LinuxKPI I2C> on drm1
evadot commented 1 year ago

Is it the full Xorg.log ? Can you share the output of pkg info | grep xf86-video ? And please share a Xorg.log without any xorg.conf Also this doesn't seems to be the full dmesg, you're missing a line that looks something like "[drm] Initialized amdgpu 3.40.0 20150101 for drmn0 on minor 0"

hurzl commented 1 year ago
>  pkg info | grep xf86-video
xf86-video-amdgpu-22.0.0_1     X.Org amdgpu display driver
xf86-video-dummy-0.3.8_4       X.Org dummy display driver
xf86-video-intel-2.99.917.916_2,1 X.Org legacy driver for Intel integrated graphics chipsets
xf86-video-mach64-6.9.7        X.Org mach64 display driver
xf86-video-nv-2.1.21_5         X.Org nv display driver
xf86-video-r128-6.12.0_3       X.Org r128 display driver
xf86-video-vesa-2.5.0_1        X.Org vesa display driver
>  dmesg | grep amdgpu
[drm] amdgpu kernel modesetting enabled.
amdgpu: ATOM BIOS: 113-RENOIR-025
drmn0: successfully loaded firmware image 'amdgpu/renoir_sdma.bin'
[drm] amdgpu: 2048M of VRAM memory ready
[drm] amdgpu: 3072M of GTT memory ready.
drmn0: successfully loaded firmware image 'amdgpu/renoir_asd.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_pfp.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_me.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_ce.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_rlc.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_mec.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_mec2.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_dmcub.bin'
drmn0: successfully loaded firmware image 'amdgpu/renoir_vcn.bin'
[drm] Initialized amdgpu 3.40.0 20150101 for drmn0 on minor 0

I thought the keyboard/mouse stuff wouldn't be necessary. Here's the complete Xorg.log without config (which gives the same picture)

[ 64728.241] 
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[ 64728.241] Current Operating System: FreeBSD thinkpad 13.1-STABLE FreeBSD 13.1-STABLE #15 stable/13-n252092-d1cd71da2b3: Wed Aug 10 21:21:37 CEST 2022     root@thinkpad:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
[ 64728.241]  
[ 64728.241] Current version of pixman: 0.40.0
[ 64728.242]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[ 64728.242] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 64728.242] (==) Log file: "/var/log/Xorg.1.log", Time: Tue Aug 16 14:36:15 2022
[ 64728.242] (==) Using config file: "/etc/X11/xorg.conf"
[ 64728.242] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[ 64728.243] (==) No Layout section.  Using the first Screen section.
[ 64728.243] (==) No screen section available. Using defaults.
[ 64728.243] (**) |-->Screen "Default Screen Section" (0)
[ 64728.243] (**) |   |-->Monitor "<default monitor>"
[ 64728.243] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[ 64728.243] (==) Automatically adding devices
[ 64728.243] (==) Automatically enabling devices
[ 64728.243] (==) Not automatically adding GPU devices
[ 64728.243] (==) Automatically binding GPU devices
[ 64728.243] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 64728.243] (==) FontPath set to:
    /usr/local/share/fonts/misc/,
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    /usr/local/share/fonts/Type1/,
    /usr/local/share/fonts/100dpi/,
    /usr/local/share/fonts/75dpi/,
    catalogue:/usr/local/etc/X11/fontpath.d
[ 64728.243] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[ 64728.243] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 64728.243] (II) Module ABI versions:
[ 64728.243]    X.Org ANSI C Emulation: 0.4
[ 64728.243]    X.Org Video Driver: 25.2
[ 64728.243]    X.Org XInput driver : 24.4
[ 64728.243]    X.Org Server Extension : 10.0
[ 64728.243] (--) PCI:*(5@0:0:0) 1002:1636:17aa:507f rev 195, Mem @ 0x660000000/268435456, 0x670000000/2097152, 0xfd300000/524288, I/O @ 0x00001000/256, BIOS @ 0x????????/65536
[ 64728.243] (II) LoadModule: "glx"
[ 64728.244] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 64728.245] (II) Module glx: vendor="X.Org Foundation"
[ 64728.245]    compiled for 1.21.1.4, module version = 1.0.0
[ 64728.245]    ABI class: X.Org Server Extension, version 10.0
[ 64728.245] (==) Matched ati as autoconfigured driver 0
[ 64728.245] (==) Matched modesetting as autoconfigured driver 1
[ 64728.245] (==) Matched scfb as autoconfigured driver 2
[ 64728.245] (==) Matched vesa as autoconfigured driver 3
[ 64728.245] (==) Assigned the driver to the xf86ConfigLayout
[ 64728.245] (II) LoadModule: "ati"
[ 64728.245] (WW) Warning, couldn't open module ati
[ 64728.245] (EE) Failed to load module "ati" (module does not exist, 0)
[ 64728.245] (II) LoadModule: "modesetting"
[ 64728.245] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[ 64728.246] (II) Module modesetting: vendor="X.Org Foundation"
[ 64728.246]    compiled for 1.21.1.4, module version = 1.21.1
[ 64728.246]    Module class: X.Org Video Driver
[ 64728.246]    ABI class: X.Org Video Driver, version 25.2
[ 64728.246] (II) LoadModule: "scfb"
[ 64728.246] (WW) Warning, couldn't open module scfb
[ 64728.246] (EE) Failed to load module "scfb" (module does not exist, 0)
[ 64728.246] (II) LoadModule: "vesa"
[ 64728.246] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[ 64728.246] (II) Module vesa: vendor="X.Org Foundation"
[ 64728.246]    compiled for 1.21.1.3, module version = 2.5.0
[ 64728.246]    Module class: X.Org Video Driver
[ 64728.246]    ABI class: X.Org Video Driver, version 25.2
[ 64728.246] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 64728.246] (II) VESA: driver for VESA chipsets: vesa
[ 64728.246] (--) Using syscons driver with X support (version 2.0)
[ 64728.246] (--) using VT number 10

[ 64728.253] (**) modeset(0): claimed PCI slot 5@0:0:0
[ 64728.253] (II) modeset(0): using default device
[ 64728.253] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 64728.253] (II) modeset(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[ 64728.253] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 64728.253] (==) modeset(0): RGB weight 888
[ 64728.253] (==) modeset(0): Default visual is TrueColor
[ 64728.253] (II) Loading sub module "glamoregl"
[ 64728.253] (II) LoadModule: "glamoregl"
[ 64728.253] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
[ 64728.257] (II) Module glamoregl: vendor="X.Org Foundation"
[ 64728.257]    compiled for 1.21.1.4, module version = 1.0.1
[ 64728.257]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 64728.303] (II) modeset(0): glamor X acceleration enabled on AMD RENOIR (DRM 3.40.0, 13.1-STABLE, LLVM 13.0.1)
[ 64728.303] (II) modeset(0): glamor initialized
[ 64728.303] (==) modeset(0): VariableRefresh: disabled
[ 64728.303] (==) modeset(0): AsyncFlipSecondaries: disabled
[ 64728.304] (II) modeset(0): Output eDP-1 has no monitor section
[ 64728.304] (II) modeset(0): Output HDMI-1 has no monitor section
[ 64728.304] (II) modeset(0): Output DP-1 has no monitor section
[ 64728.304] (II) modeset(0): EDID for output eDP-1
[ 64728.304] (II) modeset(0): Manufacturer: AUO  Model: 403d  Serial#: 0
[ 64728.304] (II) modeset(0): Year: 2018  Week: 33
[ 64728.304] (II) modeset(0): EDID Version: 1.4
[ 64728.304] (II) modeset(0): Digital Display Input
[ 64728.304] (II) modeset(0): 8 bits per channel
[ 64728.304] (II) modeset(0): Digital interface is DisplayPort
[ 64728.304] (II) modeset(0): Max Image Size [cm]: horiz.: 31  vert.: 17
[ 64728.304] (II) modeset(0): Gamma: 2.20
[ 64728.304] (II) modeset(0): No DPMS capabilities specified
[ 64728.304] (II) modeset(0): Supported color encodings: RGB 4:4:4 
[ 64728.304] (II) modeset(0): First detailed timing is preferred mode
[ 64728.304] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[ 64728.304] (II) modeset(0): Display is continuous-frequency
[ 64728.304] (II) modeset(0): redX: 0.572 redY: 0.337   greenX: 0.350 greenY: 0.565
[ 64728.304] (II) modeset(0): blueX: 0.162 blueY: 0.125   whiteX: 0.313 whiteY: 0.329
[ 64728.304] (II) modeset(0): Manufacturer's mask: 0
[ 64728.304] (II) modeset(0): Supported detailed timing:
[ 64728.304] (II) modeset(0): clock: 141.0 MHz   Image Size:  309 x 174 mm
[ 64728.304] (II) modeset(0): h_active: 1920  h_sync: 1936  h_sync_end 1952 h_blank_end 2104 h_border: 0
[ 64728.304] (II) modeset(0): v_active: 1080  v_sync: 1083  v_sync_end 1097 v_blanking: 1116 v_border: 0
[ 64728.304] (II) modeset(0): Unknown vendor-specific block 0
[ 64728.304] (II) modeset(0):  AUO
[ 64728.304] (II) modeset(0):  B140HAN04.0
[ 64728.304] (II) modeset(0): EDID (in hex):
[ 64728.304] (II) modeset(0):   00ffffffffffff0006af3d4000000000
[ 64728.304] (II) modeset(0):   211c0104a51f1178039b859256599029
[ 64728.304] (II) modeset(0):   20505400000001010101010101010101
[ 64728.304] (II) modeset(0):   010101010101143780b8703824401010
[ 64728.304] (II) modeset(0):   3e0035ae100000180000000000000000
[ 64728.304] (II) modeset(0):   00000000000000000020000000fe0041
[ 64728.304] (II) modeset(0):   554f0a202020202020202020000000fe
[ 64728.304] (II) modeset(0):   004231343048414e30342e30200a0097
[ 64728.304] (II) modeset(0): Printing probed modes for output eDP-1
[ 64728.304] (II) modeset(0): Modeline "1920x1080"x60.0  141.00  1920 1936 1952 2104  1080 1083 1097 1116 -hsync -vsync (67.0 kHz eP)
[ 64728.304] (II) modeset(0): Modeline "1920x1080"x120.0  356.38  1920 2080 2288 2656  1080 1081 1084 1118 doublescan -hsync +vsync (134.2 kHz d)
[ 64728.304] (II) modeset(0): Modeline "1920x1080"x119.9  266.50  1920 1944 1960 2000  1080 1081 1084 1111 doublescan +hsync -vsync (133.2 kHz d)
[ 64728.304] (II) modeset(0): Modeline "1920x1080"x60.0  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync (67.2 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1920x1080"x59.9  138.50  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync (66.6 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1680x1050"x60.0  141.00  1680 1936 1952 2104  1050 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 64728.305] (II) modeset(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1400x1050"x60.0  122.00  1400 1488 1640 1880  1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1600x900"x120.0  246.00  1600 1728 1900 2200  900 901 904 932 doublescan -hsync +vsync (111.8 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1600x900"x119.9  186.50  1600 1624 1640 1680  900 901 904 926 doublescan +hsync -vsync (111.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1600x900"x59.9  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync (56.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1600x900"x59.8   97.50  1600 1648 1680 1760  900 903 908 926 +hsync -vsync (55.4 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1280x1024"x60.0  141.00  1280 1936 1952 2104  1024 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 64728.305] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1440x900"x60.0  141.00  1440 1936 1952 2104  900 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 64728.305] (II) modeset(0): Modeline "1400x900"x60.0  103.50  1400 1480 1624 1848  900 903 913 934 -hsync +vsync (56.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1400x900"x59.9   86.50  1400 1448 1480 1560  900 903 913 926 +hsync -vsync (55.4 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1440x810"x120.0  198.12  1440 1548 1704 1968  810 811 814 839 doublescan -hsync +vsync (100.7 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1440x810"x119.9  151.88  1440 1464 1480 1520  810 811 814 833 doublescan +hsync -vsync (99.9 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1368x768"x59.9   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync (47.8 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1368x768"x59.9   72.25  1368 1416 1448 1528  768 771 781 790 +hsync -vsync (47.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1280x800"x120.0  174.25  1280 1380 1516 1752  800 801 804 829 doublescan -hsync +vsync (99.5 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1280x800"x60.0  141.00  1280 1936 1952 2104  800 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 64728.305] (II) modeset(0): Modeline "1280x800"x119.9  134.25  1280 1304 1320 1360  800 801 804 823 doublescan +hsync -vsync (98.7 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1280x800"x59.9   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1280x720"x120.0  156.12  1280 1376 1512 1744  720 721 724 746 doublescan -hsync +vsync (89.5 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1280x720"x60.0  141.00  1280 1936 1952 2104  720 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 64728.305] (II) modeset(0): Modeline "1280x720"x120.0  120.75  1280 1304 1320 1360  720 721 724 740 doublescan +hsync -vsync (88.8 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1280x720"x59.9   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync (44.8 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1280x720"x59.7   63.75  1280 1328 1360 1440  720 723 728 741 +hsync -vsync (44.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1024x768"x60.0  141.00  1024 1936 1952 2104  768 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 64728.305] (II) modeset(0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[ 64728.305] (II) modeset(0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[ 64728.305] (II) modeset(0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1024x576"x119.9   98.50  1024 1092 1200 1376  576 577 580 597 doublescan -hsync +vsync (71.6 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1024x576"x119.9   78.38  1024 1048 1064 1104  576 577 580 592 doublescan +hsync -vsync (71.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1024x576"x59.9   46.50  1024 1064 1160 1296  576 579 584 599 -hsync +vsync (35.9 kHz d)
[ 64728.305] (II) modeset(0): Modeline "1024x576"x59.8   42.00  1024 1072 1104 1184  576 579 584 593 +hsync -vsync (35.5 kHz d)
[ 64728.305] (II) modeset(0): Modeline "960x600"x119.9   96.62  960 1028 1128 1296  600 601 604 622 doublescan -hsync +vsync (74.6 kHz d)
[ 64728.305] (II) modeset(0): Modeline "960x600"x120.0   77.00  960 984 1000 1040  600 601 604 617 doublescan +hsync -vsync (74.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "960x540"x119.9   86.50  960 1024 1124 1288  540 541 544 560 doublescan -hsync +vsync (67.2 kHz d)
[ 64728.305] (II) modeset(0): Modeline "960x540"x120.0   69.25  960 984 1000 1040  540 541 544 555 doublescan +hsync -vsync (66.6 kHz d)
[ 64728.305] (II) modeset(0): Modeline "960x540"x59.6   40.75  960 992 1088 1216  540 543 548 562 -hsync +vsync (33.5 kHz d)
[ 64728.305] (II) modeset(0): Modeline "960x540"x59.8   37.25  960 1008 1040 1120  540 543 548 556 +hsync -vsync (33.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "800x600"x60.0  141.00  800 1936 1952 2104  600 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 64728.305] (II) modeset(0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[ 64728.305] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[ 64728.305] (II) modeset(0): Modeline "840x525"x120.0   73.12  840 892 980 1120  525 526 529 544 doublescan -hsync +vsync (65.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "840x525"x119.8   59.50  840 864 880 920  525 526 529 540 doublescan +hsync -vsync (64.7 kHz d)
[ 64728.305] (II) modeset(0): Modeline "864x486"x59.9   32.50  864 888 968 1072  486 489 494 506 -hsync +vsync (30.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "864x486"x59.6   30.50  864 912 944 1024  486 489 494 500 +hsync -vsync (29.8 kHz d)
[ 64728.305] (II) modeset(0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[ 64728.305] (II) modeset(0): Modeline "800x450"x119.9   59.12  800 848 928 1056  450 451 454 467 doublescan -hsync +vsync (56.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "800x450"x119.6   48.75  800 824 840 880  450 451 454 463 doublescan +hsync -vsync (55.4 kHz d)
[ 64728.305] (II) modeset(0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "700x450"x119.9   51.75  700 740 812 924  450 451 456 467 doublescan -hsync +vsync (56.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "700x450"x119.8   43.25  700 724 740 780  450 451 456 463 doublescan +hsync -vsync (55.4 kHz d)
[ 64728.305] (II) modeset(0): Modeline "640x480"x60.0  141.00  640 1936 1952 2104  480 1083 1097 1116 -hsync -vsync (67.0 kHz e)
[ 64728.305] (II) modeset(0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[ 64728.305] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[ 64728.305] (II) modeset(0): Modeline "720x405"x59.5   22.50  720 744 808 896  405 408 413 422 -hsync +vsync (25.1 kHz d)
[ 64728.305] (II) modeset(0): Modeline "720x405"x59.0   21.75  720 768 800 880  405 408 413 419 +hsync -vsync (24.7 kHz d)
[ 64728.305] (II) modeset(0): Modeline "684x384"x119.8   42.62  684 720 788 892  384 385 390 399 doublescan -hsync +vsync (47.8 kHz d)
[ 64728.305] (II) modeset(0): Modeline "684x384"x119.7   36.12  684 708 724 764  384 385 390 395 doublescan +hsync -vsync (47.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "640x400"x119.8   41.75  640 676 740 840  400 401 404 415 doublescan -hsync +vsync (49.7 kHz d)
[ 64728.305] (II) modeset(0): Modeline "640x400"x120.0   35.50  640 664 680 720  400 401 404 411 doublescan +hsync -vsync (49.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "640x360"x119.7   37.25  640 672 736 832  360 361 364 374 doublescan -hsync +vsync (44.8 kHz d)
[ 64728.305] (II) modeset(0): Modeline "640x360"x119.7   31.88  640 664 680 720  360 361 364 370 doublescan +hsync -vsync (44.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "640x360"x59.8   18.00  640 664 720 800  360 363 368 376 -hsync +vsync (22.5 kHz d)
[ 64728.305] (II) modeset(0): Modeline "640x360"x59.3   17.75  640 688 720 800  360 363 368 374 +hsync -vsync (22.2 kHz d)
[ 64728.305] (II) modeset(0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[ 64728.305] (II) modeset(0): Modeline "512x288"x120.0   23.25  512 532 580 648  288 289 292 299 doublescan -hsync +vsync (35.9 kHz d)
[ 64728.305] (II) modeset(0): Modeline "512x288"x119.8   21.00  512 536 552 592  288 289 292 296 doublescan +hsync -vsync (35.5 kHz d)
[ 64728.305] (II) modeset(0): Modeline "480x270"x119.3   20.38  480 496 544 608  270 271 274 281 doublescan -hsync +vsync (33.5 kHz d)
[ 64728.305] (II) modeset(0): Modeline "480x270"x119.6   18.62  480 504 520 560  270 271 274 278 doublescan +hsync -vsync (33.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[ 64728.305] (II) modeset(0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[ 64728.305] (II) modeset(0): Modeline "432x243"x119.8   16.25  432 444 484 536  243 244 247 253 doublescan -hsync +vsync (30.3 kHz d)
[ 64728.305] (II) modeset(0): Modeline "432x243"x119.1   15.25  432 456 472 512  243 244 247 250 doublescan +hsync -vsync (29.8 kHz d)
[ 64728.305] (II) modeset(0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[ 64728.305] (II) modeset(0): Modeline "360x202"x119.0   11.25  360 372 404 448  202 204 206 211 doublescan -hsync +vsync (25.1 kHz d)
[ 64728.305] (II) modeset(0): Modeline "360x202"x118.3   10.88  360 384 400 440  202 204 206 209 doublescan +hsync -vsync (24.7 kHz d)
[ 64728.305] (II) modeset(0): Modeline "320x180"x119.7    9.00  320 332 360 400  180 181 184 188 doublescan -hsync +vsync (22.5 kHz d)
[ 64728.305] (II) modeset(0): Modeline "320x180"x118.6    8.88  320 344 360 400  180 181 184 187 doublescan +hsync -vsync (22.2 kHz d)
[ 64728.305] (II) modeset(0): EDID for output HDMI-1
[ 64728.305] (II) modeset(0): EDID for output DP-1
[ 64728.305] (II) modeset(0): Output eDP-1 connected
[ 64728.305] (II) modeset(0): Output HDMI-1 disconnected
[ 64728.306] (II) modeset(0): Output DP-1 disconnected
[ 64728.306] (II) modeset(0): Using exact sizes for initial modes
[ 64728.306] (II) modeset(0): Output eDP-1 using initial mode 1920x1080 +0+0
[ 64728.306] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[ 64728.306] (==) modeset(0): DPI set to (96, 96)
[ 64728.306] (II) Loading sub module "fb"
[ 64728.306] (II) LoadModule: "fb"
[ 64728.306] (II) Module "fb" already built-in
[ 64728.306] (II) UnloadModule: "vesa"
[ 64728.306] (II) Unloading vesa
[ 64728.326] (==) modeset(0): Backing store enabled
[ 64728.326] (==) modeset(0): Silken mouse enabled
[ 64728.326] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[ 64728.326] (==) modeset(0): DPMS enabled
[ 64728.326] (II) modeset(0): [DRI2] Setup complete
[ 64728.326] (II) modeset(0): [DRI2]   DRI driver: radeonsi
[ 64728.326] (II) modeset(0): [DRI2]   VDPAU driver: radeonsi
[ 64728.326] (II) Initializing extension Generic Event Extension
[ 64728.326] (II) Initializing extension SHAPE
[ 64728.327] (II) Initializing extension MIT-SHM
[ 64728.327] (II) Initializing extension XInputExtension
[ 64728.327] (II) Initializing extension XTEST
[ 64728.327] (II) Initializing extension BIG-REQUESTS
[ 64728.327] (II) Initializing extension SYNC
[ 64728.327] (II) Initializing extension XKEYBOARD
[ 64728.328] (II) Initializing extension XC-MISC
[ 64728.328] (II) Initializing extension SECURITY
[ 64728.328] (II) Initializing extension XFIXES
[ 64728.328] (II) Initializing extension RENDER
[ 64728.328] (II) Initializing extension RANDR
[ 64728.328] (II) Initializing extension COMPOSITE
[ 64728.329] (II) Initializing extension DAMAGE
[ 64728.329] (II) Initializing extension MIT-SCREEN-SAVER
[ 64728.329] (II) Initializing extension DOUBLE-BUFFER
[ 64728.329] (II) Initializing extension RECORD
[ 64728.329] (II) Initializing extension DPMS
[ 64728.330] (II) Initializing extension Present
[ 64728.330] (II) Initializing extension DRI3
[ 64728.330] (II) Initializing extension X-Resource
[ 64728.330] (II) Initializing extension XVideo
[ 64728.330] (II) Initializing extension XVideo-MotionCompensation
[ 64728.330] (II) Initializing extension GLX
[ 64728.334] (II) AIGLX: Loaded and initialized radeonsi
[ 64728.334] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 64728.334] (II) Initializing extension XFree86-VidModeExtension
[ 64728.334] (II) Initializing extension XFree86-DGA
[ 64728.335] (II) Initializing extension XFree86-DRI
[ 64728.335] (II) Initializing extension DRI2
[ 64728.335] (II) modeset(0): Damage tracking initialized
[ 64728.335] (II) modeset(0): Setting screen physical size to 508 x 285
[ 64728.398] (II) config/udev: Adding input device System mouse (/dev/input/event0)
[ 64728.398] (**) System mouse: Applying InputClass "libinput pointer catchall"
[ 64728.398] (II) LoadModule: "libinput"
[ 64728.398] (II) Loading /usr/local/lib/xorg/modules/input/libinput_drv.so
[ 64728.400] (II) Module libinput: vendor="X.Org Foundation"
[ 64728.400]    compiled for 1.21.1.3, module version = 1.2.0
[ 64728.400]    Module class: X.Org XInput Driver
[ 64728.400]    ABI class: X.Org XInput driver, version 24.4
[ 64728.400] (II) Using input driver 'libinput' for 'System mouse'
[ 64728.400] (**) System mouse: always reports core events
[ 64728.400] (**) Option "Device" "/dev/input/event0"
[ 64728.400] (**) Option "_source" "server/udev"
[ 64728.408] (II) event0  - System mouse: is tagged by udev as: Mouse
[ 64728.408] (II) event0  - System mouse: device is a pointer
[ 64728.409] (II) event0  - System mouse: device removed
[ 64728.409] (**) Option "config_info" "udev:/dev/input/event0"
[ 64728.409] (II) XINPUT: Adding extended input device "System mouse" (type: MOUSE, id 6)
[ 64728.409] (**) Option "AccelerationScheme" "none"
[ 64728.409] (**) System mouse: (accel) selected scheme none/0
[ 64728.409] (**) System mouse: (accel) acceleration factor: 2.000
[ 64728.409] (**) System mouse: (accel) acceleration threshold: 4
[ 64728.410] (II) event0  - System mouse: is tagged by udev as: Mouse
[ 64728.411] (II) event0  - System mouse: device is a pointer
[ 64728.411] (II) config/udev: Adding input device System keyboard multiplexer (/dev/input/event1)
[ 64728.411] (**) System keyboard multiplexer: Applying InputClass "Evdev keyboard"
[ 64728.411] (**) System keyboard multiplexer: Applying InputClass "libinput keyboard catchall"
[ 64728.411] (II) Using input driver 'libinput' for 'System keyboard multiplexer'
[ 64728.411] (**) System keyboard multiplexer: always reports core events
[ 64728.411] (**) Option "Device" "/dev/input/event1"
[ 64728.411] (**) Option "_source" "server/udev"
[ 64728.412] (II) event1  - System keyboard multiplexer: is tagged by udev as: Keyboard
[ 64728.412] (II) event1  - System keyboard multiplexer: device is a keyboard
[ 64728.413] (II) event1  - System keyboard multiplexer: device removed
[ 64728.413] (**) Option "config_info" "udev:/dev/input/event1"
[ 64728.413] (II) XINPUT: Adding extended input device "System keyboard multiplexer" (type: KEYBOARD, id 7)
[ 64728.413] (**) Option "xkb_rules" "evdev"
[ 64728.437] (II) event1  - System keyboard multiplexer: is tagged by udev as: Keyboard
[ 64728.437] (II) event1  - System keyboard multiplexer: device is a keyboard
[ 64728.438] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[ 64728.438] (**) Power Button: Applying InputClass "Evdev keyboard"
[ 64728.438] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[ 64728.438] (II) Using input driver 'libinput' for 'Power Button'
[ 64728.438] (**) Power Button: always reports core events
[ 64728.438] (**) Option "Device" "/dev/input/event2"
[ 64728.438] (**) Option "_source" "server/udev"
[ 64728.438] (II) event2  - Power Button: is tagged by udev as: Keyboard
[ 64728.439] (II) event2  - Power Button: device is a keyboard
[ 64728.439] (II) event2  - Power Button: device removed
[ 64728.439] (**) Option "config_info" "udev:/dev/input/event2"
[ 64728.439] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[ 64728.439] (**) Option "xkb_rules" "evdev"
[ 64728.440] (II) event2  - Power Button: is tagged by udev as: Keyboard
[ 64728.440] (II) event2  - Power Button: device is a keyboard
[ 64728.441] (II) config/udev: Adding input device Control Method Lid Switch (/dev/input/event3)
[ 64728.441] (II) No input driver specified, ignoring this device.
[ 64728.441] (II) This device may have been added with another device file.
[ 64728.441] (II) config/udev: Adding input device Sleep Button (/dev/input/event4)
[ 64728.441] (**) Sleep Button: Applying InputClass "Evdev keyboard"
[ 64728.441] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[ 64728.441] (II) Using input driver 'libinput' for 'Sleep Button'
[ 64728.441] (**) Sleep Button: always reports core events
[ 64728.441] (**) Option "Device" "/dev/input/event4"
[ 64728.441] (**) Option "_source" "server/udev"
[ 64728.442] (II) event4  - Sleep Button: is tagged by udev as: Keyboard
[ 64728.442] (II) event4  - Sleep Button: device is a keyboard
[ 64728.442] (II) event4  - Sleep Button: device removed
[ 64728.442] (**) Option "config_info" "udev:/dev/input/event4"
[ 64728.442] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
[ 64728.442] (**) Option "xkb_rules" "evdev"
[ 64728.444] (II) event4  - Sleep Button: is tagged by udev as: Keyboard
[ 64728.444] (II) event4  - Sleep Button: device is a keyboard
[ 64728.444] (II) config/udev: Adding input device AT keyboard (/dev/input/event5)
[ 64728.444] (**) AT keyboard: Applying InputClass "Evdev keyboard"
[ 64728.444] (**) AT keyboard: Applying InputClass "libinput keyboard catchall"
[ 64728.444] (II) Using input driver 'libinput' for 'AT keyboard'
[ 64728.444] (**) AT keyboard: always reports core events
[ 64728.444] (**) Option "Device" "/dev/input/event5"
[ 64728.444] (**) Option "_source" "server/udev"
[ 64728.445] (II) event5  - AT keyboard: is tagged by udev as: Keyboard
[ 64728.445] (II) event5  - AT keyboard: device is a keyboard
[ 64728.447] (II) event5  - AT keyboard: device removed
[ 64728.447] (**) Option "config_info" "udev:/dev/input/event5"
[ 64728.447] (II) XINPUT: Adding extended input device "AT keyboard" (type: KEYBOARD, id 10)
[ 64728.447] (**) Option "xkb_rules" "evdev"
[ 64728.448] (II) event5  - AT keyboard: is tagged by udev as: Keyboard
[ 64728.448] (II) event5  - AT keyboard: device is a keyboard
[ 64728.449] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event6)
[ 64728.449] (**) ETPS/2 Elantech Touchpad: Applying InputClass "libinput pointer catchall"
[ 64728.449] (**) ETPS/2 Elantech Touchpad: Applying InputClass "libinput touchpad catchall"
[ 64728.449] (**) ETPS/2 Elantech Touchpad: Applying InputClass "touchpad catchall"
[ 64728.449] (**) ETPS/2 Elantech Touchpad: Applying InputClass "Default clickpad buttons"
[ 64728.449] (II) LoadModule: "synaptics"
[ 64728.450] (II) Loading /usr/local/lib/xorg/modules/input/synaptics_drv.so
[ 64728.450] (II) Module synaptics: vendor="X.Org Foundation"
[ 64728.450]    compiled for 1.21.1.3, module version = 1.9.1
[ 64728.450]    Module class: X.Org XInput Driver
[ 64728.450]    ABI class: X.Org XInput driver, version 24.4
[ 64728.450] (II) Using input driver 'synaptics' for 'ETPS/2 Elantech Touchpad'
[ 64728.450] (**) ETPS/2 Elantech Touchpad: always reports core events
[ 64728.450] (**) Option "Device" "/dev/input/event6"
[ 64728.450] (EE) synaptics: ETPS/2 Elantech Touchpad: Synaptics driver unable to detect protocol
[ 64728.450] (EE) PreInit returned 11 for "ETPS/2 Elantech Touchpad"
[ 64728.450] (II) UnloadModule: "synaptics"
[ 64728.450] (II) config/udev: Adding input device ETPS/2 Elantech TrackPoint (/dev/input/event7)
[ 64728.450] (**) ETPS/2 Elantech TrackPoint: Applying InputClass "libinput pointer catchall"
[ 64728.450] (II) Using input driver 'libinput' for 'ETPS/2 Elantech TrackPoint'
[ 64728.450] (**) ETPS/2 Elantech TrackPoint: always reports core events
[ 64728.450] (**) Option "Device" "/dev/input/event7"
[ 64728.450] (**) Option "_source" "server/udev"
[ 64728.451] (II) event7  - ETPS/2 Elantech TrackPoint: is tagged by udev as: Mouse
[ 64728.452] (II) event7  - ETPS/2 Elantech TrackPoint: device is a pointer
[ 64728.453] (II) event7  - ETPS/2 Elantech TrackPoint: device removed
[ 64728.453] (**) Option "config_info" "udev:/dev/input/event7"
[ 64728.453] (II) XINPUT: Adding extended input device "ETPS/2 Elantech TrackPoint" (type: MOUSE, id 11)
[ 64728.453] (**) Option "AccelerationScheme" "none"
[ 64728.454] (**) ETPS/2 Elantech TrackPoint: (accel) selected scheme none/0
[ 64728.454] (**) ETPS/2 Elantech TrackPoint: (accel) acceleration factor: 2.000
[ 64728.454] (**) ETPS/2 Elantech TrackPoint: (accel) acceleration threshold: 4
[ 64728.454] (II) event7  - ETPS/2 Elantech TrackPoint: is tagged by udev as: Mouse
[ 64728.455] (II) event7  - ETPS/2 Elantech TrackPoint: device is a pointer
[ 64728.457] (II) config/udev: Adding input device ACPI video extension (/dev/input/event8)
[ 64728.457] (**) ACPI video extension: Applying InputClass "Evdev keyboard"
[ 64728.457] (**) ACPI video extension: Applying InputClass "libinput keyboard catchall"
[ 64728.457] (II) Using input driver 'libinput' for 'ACPI video extension'
[ 64728.457] (**) ACPI video extension: always reports core events
[ 64728.457] (**) Option "Device" "/dev/input/event8"
[ 64728.457] (**) Option "_source" "server/udev"
[ 64728.458] (II) event8  - ACPI video extension: is tagged by udev as: Keyboard
[ 64728.458] (II) event8  - ACPI video extension: device is a keyboard
[ 64728.459] (II) event8  - ACPI video extension: device removed
[ 64728.459] (**) Option "config_info" "udev:/dev/input/event8"
[ 64728.459] (II) XINPUT: Adding extended input device "ACPI video extension" (type: KEYBOARD, id 12)
[ 64728.459] (**) Option "xkb_rules" "evdev"
[ 64728.460] (II) event8  - ACPI video extension: is tagged by udev as: Keyboard
[ 64728.460] (II) event8  - ACPI video extension: device is a keyboard
[ 64728.653] (II) modeset(0): Disabling kernel dirty updates, not required.
[ 64737.334] (II) event0  - System mouse: device removed
[ 64737.334] (II) event1  - System keyboard multiplexer: device removed
[ 64737.335] (II) event2  - Power Button: device removed
[ 64737.335] (II) event4  - Sleep Button: device removed
[ 64737.335] (II) event5  - AT keyboard: device removed
[ 64737.335] (II) event7  - ETPS/2 Elantech TrackPoint: device removed
[ 64737.335] (II) event8  - ACPI video extension: device removed
[ 64737.335] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 64741.897] (II) UnloadModule: "libinput"
[ 64741.897] (II) UnloadModule: "libinput"
[ 64741.897] (II) UnloadModule: "libinput"
[ 64741.897] (II) UnloadModule: "libinput"
[ 64741.897] (II) UnloadModule: "libinput"
[ 64741.897] (II) UnloadModule: "libinput"
[ 64741.897] (II) UnloadModule: "libinput"
[ 64741.899] (II) Server terminated successfully (0). Closing log file.
evadot commented 1 year ago

Try after pkg install xf86-video-scfb xf86-video-ati

hurzl commented 1 year ago

same picture, the log has AMDGPU(0)instead of modeset(0) again

Xorg.1.log

evadot commented 1 year ago

What's in [ 65958.065] (==) Using config file: "/etc/X11/xorg.conf" ?

hurzl commented 1 year ago

Ok sorry but that's all commented lines. No content.

evadot commented 1 year ago

Can you also test a wayland compositor ? Easiest way is probably sway pkg install sway seatd dbus sysrc dbus_enable=YES sysrc seatd_enable=YES service dbus start service seatd start

export XDG_RUNTIME_DIR=/tmp sway
hurzl commented 1 year ago

I get the same picture but without mouse pointer , instead a moving colored rectangle

hurzl commented 1 year ago

Here's a Linux Live-CD Xorg.0.log where everything is working

Xorg.gparted.0.log

evadot commented 1 year ago

I get the same picture but without mouse pointer , instead a moving colored rectangle

Then it's likely a drm related problem and not an xorg one but I have no idea how to help more right now.

hurzl commented 1 year ago

So is there a difference to the Linux drm, since the same versions (DRM 3.40) behave differently, or where else?

hurzl commented 1 year ago

By accident I came across a hint to /boot/device.hints, and removed it because it contained some very outdated things like hint.fd and hint.sc. Now I have to kldload amdgpu by hand after boot, but the problem with X is gone. Haven't found out where the file came from ... is it a default file created when installing FreeBSD?

... it's the file /usr/src/sys/amd64/conf/GENERIC.hints. Something must be wrong with it.