Re: Xorg fails after update system to 16.0

From: Tomoaki AOKI <junchoon_at_dec.sakura.ne.jp>
Date: Sun, 18 Oct 2026 13:01:50 UTC
On Sun, 18 Oct 2026 14:16:54 +0200
Matthias Apitz <guru@unixarea.de> wrote:

> 
> Hello,
> 
> I've updated an ASUS laptop from
> 
> 15.0-CURRENT #0 main-n275738-7ee310c80ea7
> 
> to
> 
> 16.0-CURRENT #1 main-n290177-6866177454ac
> 
> the usual way: git and compiling world and kernel in /usr/src.
> The OS boots fine and the older installed ports (compiled with
> poudriere) work also, at least what I've used until now.
> 
> Xorg fails to start and perhaps the main problem is this line:
> 
> [ 11871.356] (EE) open /dev/dri/card0: No such file or directory
> 
> in Xorg.0.log. Luckily I saved the last working Xorg.0.log from 15.0
> before starting Xorg the first time in 16.0. Perhaps I have to reinstall
> one of the graphics ports...
> 
> I'm attaching the good and the bad Xorg.0.log file. 
> 
> Thanks for any hint.
> 
> 	matthias
> 
> 
> -- 
> Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
> Public GnuPG key: http://www.unixarea.de/key.pub

Hi.

You've NOT mentioned that you've rebuilt / reinstalled
graphics/drm-*-kmod in use.

(Your "working" log, the latter one, clearly shows
 that modesetting driver is sanely initialized and used.)

So unless you have PORTS_MODULES variable set and including
the graphics/drm-*-kmod you've installed in /etc/src.conf
or /etc/make.conf, the breakage is PROMISSING.

Any kernel modules (regardless in-base and in-ports) that
depend on LinuxKPI like graphics/drm-*-kmod needs at least
to be rebuilt if LinuxKPI is somehow updated to be safe.
And worse, your previous commit, 7ee310c80ea7, is too
outdated (2025-02-26 18:15:38 +0000).

  https://cgit.freebsd.org/src/commit/?id=7ee310c80ea7b336972f53cc48b8c3d03029941e

So, update your ports tree and rebuild / reinstall
your graphics/drm-*-kmod port would likely help.
(Maybe it would be graphics/drm-66-kmod at the moment,
 but FYI, current default for main is graphics/drm-612-kmod.)

Regards.

-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>