Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Apr 2023 20:02:34 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Kevin Oberman <rkoberman@gmail.com>
Cc:        multimedia@freebsd.org
Subject:   Re: Poor performance with Alder Lake graphics (ThinkPad T16)
Message-ID:  <7cun-605h-wny@FreeBSD.org>
In-Reply-To: <CAN6yY1vs590_H61i%2B%2BU0krAJWqU79bB-9UJKDUy5y2OymVDrHg@mail.gmail.com> (Kevin Oberman's message of "Wed, 5 Apr 2023 09:59:03 -0700")
References:  <CAN6yY1uvk5QdAcfnqoUVDH-sO6t9sJ4OWCBjB2pQee%2B8MqDCPQ@mail.gmail.com> <bkk6-5itr-wny@FreeBSD.org> <CAN6yY1vAvV4nWh91XtP3hrhPoDHcbyWgxOpWYUhVJEaO7rNBAQ@mail.gmail.com> <h6tw-130s-wny@FreeBSD.org> <CAN6yY1vs590_H61i%2B%2BU0krAJWqU79bB-9UJKDUy5y2OymVDrHg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Kevin Oberman <rkoberman@gmail.com> writes:

> Trying display: drm
> libva info: VA-API version 1.18.0
> libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
> libva info: Found init function __vaDriverInit_1_18
> libva error: /usr/local/lib/dri/iHD_drv_video.so init failed
> libva info: va_openDriver() returns 1

Can you show "pciconf -l | fgrep vga" output? 22.4.3 has some Gen12
support (including Alder Lake) but probably not your iGPU.

libva-intel-media-driver update is currently out-of-date due to
complication when rebasing patches for FreeBSD support. I still
use Skylake iGPU, so it is low priority.

> Trying display: wayland
> error: XDG_RUNTIME_DIR is invalid or not set in the environment.
[...]
> I am interested by hte first error. Is this possibly a side effect of
> starting X from the console with the following .xinitrc:
> xset fp rehash
> exec ck-launch-session dbus-launch --exit-with-session mate-session

It's part of probing Wayland connection. X11 hardcodes /tmp/.X11-unix
as the directory for its unix(4) sockets but Wayland uses XDG_RUNTIME_DIR.
For example,
- DISPLAY=:0 refers to /tmp/.X11-unix/X0
- WAYLAND_DISPLAY=wayland-0 refers to $XDG_RUNTIME_DIR/wayland-0

See also https://cgit.freebsd.org/ports/commit/?id=2d487a43aa14



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7cun-605h-wny>