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

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Jan,

Thanks for your suggestions, but this is not looking good.

On Tue, Apr 4, 2023 at 1:10 AM Jan Beich <jbeich@freebsd.org> wrote:

> Kevin Oberman <rkoberman@gmail.com> writes:
>
> >> VA-API is separate from OpenGL. VA-API on Alder Lake needs
> >> libva-intel-media-driver
> >> but the actual support depends on PCI ID e.g., may require newer version
> >> than then one packaged.
> >>
> >
> > OK. I am now running libva-intel-media-driver. Still not seeing the video
> > acceleration that I would expect. 12 threads running and hte total CPU
> > usage is 9& to play a 1392x1072 video.
>
> Try running vainfo from libva-utils directly on KMS console like
> /dev/ttyv0.
> If it prints a list of supported formats you can proceed with mpv e.g.,
>

Looks like VA-API may just be a non-starter on this system. Here is what I
get grom vainfo on the KMS screen:
Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Trying display: x11
error: can't connect to X server!
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
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

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

This has worked fine for many years, but reading up on XDG_RUNTIME_DIR
makes me suspicious that this may not be adequate.
-- 
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

[-- Attachment #2 --]
<div dir="ltr"><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Jan,</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Thanks for your suggestions, but this is not looking good.<br></div><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 4, 2023 at 1:10 AM Jan Beich &lt;<a href="mailto:jbeich@freebsd.org">jbeich@freebsd.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Kevin Oberman &lt;<a href="mailto:rkoberman@gmail.com" target="_blank">rkoberman@gmail.com</a>&gt; writes:<br>
<br>
&gt;&gt; VA-API is separate from OpenGL. VA-API on Alder Lake needs<br>
&gt;&gt; libva-intel-media-driver<br>
&gt;&gt; but the actual support depends on PCI ID e.g., may require newer version<br>
&gt;&gt; than then one packaged.<br>
&gt;&gt;<br>
&gt;<br>
&gt; OK. I am now running libva-intel-media-driver. Still not seeing the video<br>
&gt; acceleration that I would expect. 12 threads running and hte total CPU<br>
&gt; usage is 9&amp; to play a 1392x1072 video.<br>
<br>
Try running vainfo from libva-utils directly on KMS console like /dev/ttyv0.<br>
If it prints a list of supported formats you can proceed with mpv e.g.,<br></blockquote><div><br></div><div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Looks like VA-API may just be a non-starter on this system. Here is what I get grom vainfo on the KMS screen:</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">Trying display: wayland<br>error: XDG_RUNTIME_DIR is invalid or not set in the environment.<br>Trying display: x11<br>error: can&#39;t connect to X server!<br>Trying display: drm<br>libva info: VA-API version 1.18.0<br>libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so<br>libva info: Found init function __vaDriverInit_1_18<br>libva error: /usr/local/lib/dri/iHD_drv_video.so init failed<br>libva info: va_openDriver() returns 1<br>libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so<br>libva info: va_openDriver() returns -1<br>vaInitialize failed with error code -1 (unknown libva error),exit</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">I am interested by hte first error. Is this possibly a side effect of starting X from the console with the following .xinitrc:</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">xset fp rehash<br>exec ck-launch-session dbus-launch --exit-with-session mate-session</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">This has worked fine for many years, but reading up on XDG_RUNTIME_DIR makes me suspicious that this may not be adequate.<br></div></div></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Kevin Oberman, Part time kid herder and retired Network Engineer<br>E-mail: <a href="mailto:rkoberman@gmail.com" target="_blank">rkoberman@gmail.com</a><br></div><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div></div></div></div></div>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1vs590_H61i%2B%2BU0krAJWqU79bB-9UJKDUy5y2OymVDrHg>