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 ?
 
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
 
Back
Top