No screens found - Xorg

Suddenly after restart i have no more Xorg with AMD gpu.Have to use scfb to get X working.

drm-515-kmod, xf86-video-amdgpu, firmware-kmod - all instaleld, all worked but after restart - NO.

No screens found. - i know i did messed a bit with pkg latest and quarterly , but i changed everything, reinstalled drm-515-kmod, xf86-video-amdgpu installed whole firmware-kmod.
I have 4 gpu`s. (2 nvidia - but no drivers installed as its for bhyve, aspeed from motherboard and AMD Radeon Pro W5500 )
AMD worked fine as i was able to do things in X. last package was intel-microcode, deluge, ca_roots_nss, nerd-fonts.
Attached my amd.conf from /usr/local/etc/X``/xorg.conf.d/
and my old Xorg.log
Tried in many ways to pplay with ramd conf file for Device names. Device0 ,Card0 - same issues.
amdgpu module is loaded.
sometimes says xauth not found(.serverauth.XXXX) - i know its installed but im sure this is not the problem.
drm-510-kmod, drm-61-kmod does not work ( tested a while ago )
So what did i doooo ?
 

Attachments

Ok, after a bit of research ... i did messed up something.
Deleted .Xauthority - could not start X , created - started (scfb)
So im guessing i have issues with Xorg creating .serverauth.XXXXX file ? as it shows - failed on this part.
 
Suddenly after restart i have no more Xorg with AMD gpu.Have to use scfb to get X working.
I have a similar problem. I saw the "No screen founded" message while trying to install the NVidia driver.

Without configuration file, Xorg works by default with its scfb driver with a default screen size (800x600 on the HDMI NVidia card and 1600x900 on the onboard intel one).

xrandr has not a correct comportment - here on Intel :
Bash:
# xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1600 x 900, current 1600 x 900, maximum 1600 x 900
default connected 1600x900+0+0 0mm x 0mm
   1600x900       0.00*
Same thing for NVidia

Xorg config or not, there is a message saying "GLX Missing on :0"
GLX is loaded but failed just after.
Of course, the NVidia driver doesn' t work, I verified and I use the one corresponding to my card and I can use either a card or the other - no xinerama.

All is loaded, kldload nvidia trigs the NVidia card... but in the better scenario, Xorg stays suspend, startx doesn' t end to launch the desktop but I can Ctrl+c Xorg from the tty then it terminates gracefully.

In my case, the problem seems to come from GLX.
 
Tried nvidia card only ... removed amd.
Same problems, but amd had better resolution.
Tried all dmr-kmods - nothing.
Ok, Xorg has vulnerabilities but i dont think its an issue.
Is there a way to install older xorg version ?
 
drm-515-kmod, xf86-video-amdgpu, firmware-kmod - all instaleld, all worked but after restart - NO.
I have 4 gpu`s. (2 nvidia - but no drivers installed as its for bhyve, aspeed from motherboard and AMD Radeon Pro W5500 )
What does pkg query -x '%v-%n' '^drm-(515|61)-kmod' show?
 
What does pkg query -x '%v-%n' '^drm-(515|61)-kmod' show?
➜ ~ pkg query -x '%v-%n' '^drm-(515|61)-kmod'
5.15.160.1401000_2-drm-515-kmod

I just deleted everything ( xorg, drivers ) installed 515.
Its very interesting as when nvidia loads - my font goes smaller when boot process is going - now there are no font changes.

I tried Hyprland - amd launched but crashes when trying to open any app ( terminal, wofi etc ) and nvidia does not even start on it.

EDIT: How to purge all the xorg and kmod files once i uninstall them ?
 
You're half way there.

As you've mentioned, I relate my reaction only to your AMD graphics.

With such a nice AMD PRO W5500, why are you using as your Xorg driver amdgpu(4)?

I presume that you have installed a 14-STABLE version that is up-to-date, that is at least equal or greater than 14.2R, right?
(I can't see that outright from your hash-id in your Xorg log file.)

I see no particular reason to prefer drm-515-kmod over drm-61-kmod.
According to AMD Radeon Pro W5500 has
Release Date: Feb 10th, 2020
As well, look at your Radeon Pro W5000 series in relation to Radeon HD 7000 series ending April 2013. Further, also compare with pkg-2.0.0-problems - #209. Thus, use modesetting(4) as your Xorg driver (not amdgpu(4)).

You can enable the kmods repository, see: comment #36 of the thread Possible solution to the drm-kmod kernel mismatch after upgrade from Bapt. Other posts in the same (2nd) page would be helpful, too.

When 'kmods' are enabled, you'll see:
Code:
[1-0] # pkg rquery -x '%v-%n'  '^drm-(515|61)-kmod'
5.15.160.1401000_3-drm-515-kmod
6.1.128.1401000_1-drm-61-kmod
5.15.160.1402000_3-drm-515-kmod
6.1.128.1402000_2-drm-61-kmod
[2-0] #
You need a 'minor-version' specific (that is actually a kernel-specific) version for your 14-STABLE (having a version number higher or equal than 1402); that means one of the last two packages; as suggested before, I'd try drm-61-kmod.

If you decide NOT to use/enable the kmods repository, then build the meta graphics/drm-kmod (which will give you drm-61-kmod, amongst others) yourself; you'll see the 1402 there also.

Change you Xorg .conf file and activate the line:
Driver "modesetting"
Keep your BusID!
 
I removed all gpu`s and kept only nVidia Titan V. Deleted all xorg, drm`s , drivers, firmware.
Compiled drm61 as i posted my last post
6.1.128.1402504_1-drm-61-kmod
Still same issue... but what i noted is if i use pkg i get 1401xxx instead of 1402xxxx.
Another thing i noted - drm and drivers where updated yesterday [ Last Update: 2025-03-13 20:42:41 ... others a bit earlier but same day ] and yesterday i was munching around and i was changing Quarterly to Latest and vice versa ... which i suspect - just suspecting "Something wrong with drivers/drm`s" both amd and nvidia... but ive been wrong more times than right.
I done this many times.
pkg install xorg
pkg install nvidia-driver nvidia-drm61-kmod
Add nvidia-modeset to /etc/rc.conf
Add 20-nvidia.conf in /usr/local/etc/X11/xorg.conf.d containing bus id, driver module.
Reboot.
copy xinit file to ~/.xinitrc - add exec my wm and vuola.

If i use only xorg-server - i have to install xinit and xauth otherwise no go.
I have fresh install of FreeBSD 14.2STABLE [ FreeBSD kodasBSD 14.2-STABLE FreeBSD 14.2-STABLE stable/14-n270695-057409d0259f GENERIC amd64 ]
Which is maybe 3-4 days old only :)
I even compiled xorg same issue .. deleted, used pkg again .. maybe i try to compile xorg again as i compiled nvidia drivers.
i really dont want to flush everything i installed and do from scratch and also i didnt made snapshot :(
 
So added back my AMD gpu.
Trying now to use drm-510-kmod, could not compile but pkg install successful but still same.
My resolution on loading changed but still no screens, but does it mean module is being loaded and its doing its job ?
Now i can start Hyprland but also it still crashes if i try to open a terminal or anything ...
Nvidia - module is loaded but does not work and no screens found in Xorg and will not start Hyprland.
AMD - module is loaded and looks like it works but still no screens found in Xorg and starts Hyprland but crashes when im trying to open an app.

Im loosing my mind ...
 
I have 4 gpu`s. (2 nvidia - but no drivers installed as its for bhyve, aspeed from motherboard and AMD Radeon Pro W5500 )
AMD worked fine as i was able to do things in X. last package was intel-microcode, deluge, ca_roots_nss, nerd-fonts.
Attached my amd.conf from /usr/local/etc/X``/xorg.conf.d/
and my old Xorg.log
[...]
So what did i doooo ?
I don't know.
You have 2 Nvidia graphics cards and one AMD Radeon Pro W5500.

Few persons here have that mix of 2 different Nvidia cards and this AMD card.
Don't throw everything at once in the mix, build this, then that.

If you need the nvdia cards with Wayland (Hyprland ) and thus therefore you probably need graphics/nvidia-drm-kmod: that is a mixed port of a Nvidia proprietary drivers and Open Source drivers, I cannot help you in any way, because I don't have any experience with that mixed driver, or with Wayland for that matter; there are other long threads about Wayland. Note also there are some things going on with this mixed port: PR 285139

Which Nvidia graphics cards exactly do you have?
(please don't count on readers picking them of your signature, clearly state them in your message)

Still same issue... but what i noted is if i use pkg i get 1401xxx instead of 1402xxxx.
I suggest you setup the 'kmods' repository (see also message #36) and my earlier link of that thread.

See the following sequence of what happens when you have the kmods enabled or disabled:
Rich (BB code):
[1-0] # pkg -vv | sed -n '/^Repositories:/,$ p'
Repositories:
  FreeBSD: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-kmods: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/kmods_latest_2",
    enabled         : no,    # kmods disabled
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
[2-0] # pkg install drm-61-kmod
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        drm-61-kmod: 6.1.128.1401000_2 [FreeBSD]

Number of packages to be installed: 1

The process will require 17 MiB more space.

Proceed with this action? [y/N]: n
[3->1<] #               # enabling 'kmods'
[4-0] # pkg -vv | sed -n '/^Repositories:/,$ p'
Repositories:
  FreeBSD: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-kmods: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/kmods_latest_2",
    enabled         : yes,    # kmods enabled
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
[5-0] # pkg install drm-61-kmod
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        drm-61-kmod: 6.1.128.1402000_2 [FreeBSD-kmods]

Number of packages to be installed: 1

The process will require 17 MiB more space.

Proceed with this action? [y/N]: n
[6->1<] #



I suggest that you consider starting with just the AMD graphics card in the same physical PCIe slot, and as I mentioned in my mesage #8 earlier use the settings mentioned there. Get/install the correct drm-61-kmod-6.1.128.1402000_2, either by:
  • building graphics/drm-kmod from source (verify that you have the latest source)
  • or by using the kmods repository

Then:
  • cat /var/log/Xorg.0.log | nc termbin.com 9999 and your Xorg .conf setting file(s)
  • post the output of pkg query '%n-%v' 'drm-61-kmod'
 
Wayland works fine on AMD ( currently using Hyprland ) , nVidia is P600 and Titan V. (Currently took out P600 ) and Titan V is now dedicated for gpu passtrough,
I will try later to get Xorg going again - going to recompile everything again and see where it gets me.
 
drm-61-kmod does not work on my gpu it gets blank screen as soon as amdgpu module get enabled.
I dont have Xorg.conf file as you dont need one, i have only 20-amdgpu.conf file in /usr/local/etc/X11/Xorg/xorg.cond.d/20-amdgpu.conf
This is Xorg.0.log link: --> https://termbin.com/70kx
 
drm-61-kmod does not work on my gpu it gets blank screen as soon as amdgpu module get enabled.
I dont have Xorg.conf file as you dont need one, i have only 20-amdgpu.conf file in /usr/local/etc/X11/Xorg/xorg.cond.d/20-amdgpu.conf
This is Xorg.0.log link: --> https://termbin.com/70kx
Then:
  • [...]
  • post the output of pkg query '%n-%v' 'drm-61-kmod'
"I dont have Xorg.conf file as you dont need one, i have only 20-amdgpu.conf file in /usr/local/etc/X11/Xorg/xorg.cond.d/20-amdgpu.conf"
That file is also an Xorg .conf file* (note the <space> between 'Xorg' and '.conf'), xorg.conf(5):
Rich (BB code):
NAME
       xorg.conf, xorg.conf.d -	configuration files for	Xorg X server
   [..]
DESCRIPTION
       Xorg uses a configuration file called xorg.conf and files ending	in the
       suffix .conf from the directory xorg.conf.d for its initial setup.
Please post /usr/local/etc/X11/xorg.conf.d/20-amdgpu.conf and any other .conf files in that directory that you may have here.

___
* See also, 5.4. Xorg Configuration but not as clearly written as it could be IMHO.
 
"I dont have Xorg.conf file as you dont need one, i have only 20-amdgpu.conf file in /usr/local/etc/X11/Xorg/xorg.cond.d/20-amdgpu.conf"
That file is also an Xorg .conf file* (note the <space> between 'Xorg' and '.conf'), xorg.conf(5):
Rich (BB code):
NAME
       xorg.conf, xorg.conf.d -    configuration files for    Xorg X server
   [..]
DESCRIPTION
       Xorg uses a configuration file called xorg.conf and files ending    in the
       suffix .conf from the directory xorg.conf.d for its initial setup.
Please post /usr/local/etc/X11/xorg.conf.d/20-amdgpu.conf and any other .conf files in that directory that you may have here.

___
* See also, 5.4. Xorg Configuration but not as clearly written as it could be IMHO.
➜ ~ pkg query '%n-%v' 'drm-515-kmod'
drm-515-kmod-5.15.160.1402504_2

20-amdgpu.conf
Code:
Section "Device"
        Identifier      "Device0"
        Driver          "amdgpu"
#       Driver          "scfb"
        BusID           "pci0:4:0:0"
EndSection

The problem is - it was working and then when i changed pkg to latest - stopped to work, changed back to quarterly - did not fixed the issue.
I done this many times.
Xorg log does not show but there is also a complaint about .serverauth.xxxx file
If i run startx with scfb drivers -i can get into Xorg.
in 20-amdgpu.conf file changing Driver to modeseting - blank screen.
Also i tried to change Identifier to "Card0" - same outcome - no Xorg.
 
drm-61-kmod does not work on my gpu it gets blank screen as soon as amdgpu module get enabled.
I dont have Xorg.conf file as you dont need one, i have only 20-amdgpu.conf file in /usr/local/etc/X11/Xorg/xorg.cond.d/20-amdgpu.conf
This is Xorg.0.log link: --> https://termbin.com/70kx
Based on your Xorg log file, it seems that the Xorg at start up cannot find any (KMS) devices.

20-amdgpu.conf
Section "Device"
Identifier "Device0"
Driver "amdgpu"
# Driver "scfb"
BusID "pci0:4:0:0"
EndSection
Part of the next info you'll also see at x11-drivers/xf86-video-amdgpu:
Rich (BB code):
[0-0] # pkg list drm-515-kmod
/boot/modules/amdgpu.ko
/boot/modules/dmabuf.ko
/boot/modules/drm.ko
/boot/modules/i915kms.ko
/boot/modules/radeonkms.ko
/boot/modules/ttm.ko
/usr/local/share/licenses/drm-515-kmod-5.15.160.1402000_3/BSD2CLAUSE
/usr/local/share/licenses/drm-515-kmod-5.15.160.1402000_3/GPLv2
/usr/local/share/licenses/drm-515-kmod-5.15.160.1402000_3/LICENSE
/usr/local/share/licenses/drm-515-kmod-5.15.160.1402000_3/MIT
/usr/local/share/licenses/drm-515-kmod-5.15.160.1402000_3/catalog.mk
[1-0] # pkg query '%n++%v\nWWW:\n%w\n\nDescription:\n%e' xf86-video-amdgpu
xf86-video-amdgpu++22.0.0_2
WWW:
https://www.x.org/wiki/RadeonFeature/

Description:
This package contains the X.Org xf86-video-amdgpu driver.

The amdgpu driver supports AMD Radeon chipsets: OLAND, HAINAN, TAHITI, PITCAIRN,
VERDE, BONAIRE, KABINI, MULLINS, KAVERI, HAWAII, TOPAZ, TONGA, CARRIZO, FIJI,
STONEY, POLARIS11, POLARIS10

On FreeBSD requires amdgpu KMS driver from graphics/drm-kmod.
[3-0] # pkg list xf86-video-amdgpu
/usr/local/lib/xorg/modules/drivers/amdgpu_drv.so
/usr/local/share/X11/xorg.conf.d/10-amdgpu.conf
/usr/local/share/licenses/xf86-video-amdgpu-22.0.0_2/LICENSE
/usr/local/share/licenses/xf86-video-amdgpu-22.0.0_2/MIT
/usr/local/share/licenses/xf86-video-amdgpu-22.0.0_2/catalog.mk
/usr/local/share/man/man4/amdgpu.4x.gz
You are using as (DRM-)KMS driver amdgpu* (file: /boot/modules/amdgpu.ko) contained in graphics/drm-(515|61)-kmod.
In xorg/ RadeonFeature and using as Xorg kernel driver amdgpu (and not radeon), you'll see (near-top row in the tables) that only the architecture groups of the "Volcanic Islands" (labelled as "V.Islands") and the Arctic Islands (labelled as "A.Islands") are covered by the Xorg amdgpu driver.

I find it rather unlikely that the Xorg amdgpu driver, that is /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so is the right driver for your AMD Radeon Pro w5500:
Rich (BB code):
Release Date:     Feb 10th, 2020
GPU Name: Navi 14
As seen above your "Navi 14" isn't part of those GPU codenames/architectures listed.



"drm-61-kmod does not work on my gpu it gets blank screen as soon as amdgpu module get enabled."
IMO drm-61-kmod is still your best option** to try and get things working for your AMD Radeon Pro W5500.

I suggest you try the following first--not starting X:
  1. build graphics/drm-kmod from source
    - verify that you have deleted any installed 'package files' by de-installing the relevant packages like drm-515-kmod
    - this should give you drm-61-kmod and more stuff
  2. remove amdgpu from rc.conf's kld_list="amdgpu"
  3. reboot
  4. post the ouput of pkg query '%n-%v' 'drm-61-kmod'
  5. kldload amdgpu
  6. post the output of dmesg -a
There should be something in the dmesg output as a result of the manual kldload that says amdgpu kernel modesetting is enabled.

___
* Note that there are two distinct drivers referenced by the same label amdgpu:
  • amdgpu - referencing /boot/modules/amdgpu.ko as in
    kld_list="amdgpu"" in etc/rc.conf
  • amdgpu - referencing /boot/modules/amdgpu.ko as in:
    Driver "amdgpu" in a Xorg .conf file, like 20-amdgpu.conf.
Thus, two different files representing two drivers that each have a distinct function in the graphics stack.

** Given the release date of your w5500 (seems 'the right age' wrt FreeBSD), IF that cannot be made to work, then that is reason to submit a PR, IMO.
 
well, i did full OS reinstall ... same issues so i didnt do anything wrong in my previous install.
Based on your Xorg log file, it seems that the Xorg at start up cannot find any (KMS) devices.
Can you show me the line where it states ?
i Want to see it before i submit PR
 
As seen above your "Navi 14" isn't part of those GPU codenames/architectures listed.
drm-515-kmod does not have right things, but xf86-video-amdgpu does !
Problem is - i was using Xorg with this gpu this is why i need xf86-video-amdgpu (otherwise is blank screen ). im not sure navi14 vs navi14pro difference.
Update. I managed to get to my WM with startx ... but now checking what caused, but it looks like 20-amdgpu.conf file needed to be edited.
Updated Xorg to latest still works ... need to dig deeper...

after changin drm-515-kmod to older:
kodasBSD% pkg query -x '%v-%n' '^drm-(515|61)-kmod'
5.15.160.1402504_2-drm-515-kmod
 
Have you tried without creating a 20-amdgpu.conf file? That solved the problem for me in 14.1, and I still don't need one in 14.2 (I have a different graphics card but I am using the amdgpu module and drm-61-kmod).

Modesetting happened automatically during startup:
[drm] amdgpu kernel modesetting enabled.
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
[drm] initializing kernel modesetting (SIENNA_CICHLID 0x1002:0x73AF 0x1043:0x04FC 0xC0).
 
Have you tried without creating a 20-amdgpu.conf file? That solved the problem for me in 14.1, and I still don't have one in 14.2 (I have a different graphics card but I am using the amdgpu module and drm-61-kmod).

Modesetting happened automatically during startup:
[drm] amdgpu kernel modesetting enabled.
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
[drm] initializing kernel modesetting (SIENNA_CICHLID 0x1002:0x73AF 0x1043:0x04FC 0xC0).
I was typing while you writing ...
If i delete Driver "amdgpu" - i can launch Xorg now.
Going to update drm-515-kmod to 3rd revision and see what is what.
P.s. i cant delete 20-amdgpu.conf file as i have multiple gpu`s. One is integrated into my motherboard so i need to create it and have BusID.
 
drm-61-kmod does not work on my gpu it gets blank screen as soon as amdgpu module get enabled.
I dont have Xorg.conf file as you dont need one, i have only 20-amdgpu.conf file in /usr/local/etc/X11/Xorg/xorg.cond.d/20-amdgpu.conf
This is Xorg.0.log link: --> https://termbin.com/70kx
Based on your Xorg log file, it seems that the Xorg at start up cannot find any (KMS) devices.

well, i did full OS reinstall ... same issues so i didnt do anything wrong in my previous install.

Can you show me the line where it states ?
i Want to see it before i submit PR
Just to be clear, that is with an installed drm-515-kmod:
Rich (BB code):
   [...]
[   330.247] (II) LoadModule: "amdgpu"
[   330.247] (II) Loading /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so
[   330.248] (II) Module amdgpu: vendor="X.Org Foundation"
[   330.248] 	compiled for 1.21.1.14, module version = 22.0.0
[   330.248] 	Module class: X.Org Video Driver
[   330.248] 	ABI class: X.Org Video Driver, version 25.2
[   330.248] (II) AMDGPU: Driver for AMD Radeon:
	All GPUs supported by the amdgpu kernel driver
[   330.248] (--) Using syscons driver with X support (version 2.0)
[   330.248] (--) using VT number 9

[   331.255] (EE) No devices detected.
   [...]
 
Back
Top