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>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000008e646205f899b664 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Jan, Thanks for your suggestions, but this is not looking good. On Tue, Apr 4, 2023 at 1:10=E2=80=AFAM 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 versi= on > >> than then one packaged. > >> > > > > OK. I am now running libva-intel-media-driver. Still not seeing the vid= eo > > 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. --=20 Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --0000000000008e646205f899b664 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div style=3D"font-family:tahoma,sans-serif;font-size:smal= l" class=3D"gmail_default">Jan,</div><div style=3D"font-family:tahoma,sans-= serif;font-size:small" class=3D"gmail_default"><br></div><div style=3D"font= -family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">Thanks f= or your suggestions, but this is not looking good.<br></div><div dir=3D"ltr= "><div class=3D"gmail_default" style=3D"font-family:tahoma,sans-serif;font-= size:small"><br></div></div><div class=3D"gmail_quote"><div dir=3D"ltr" cla= ss=3D"gmail_attr">On Tue, Apr 4, 2023 at 1:10=E2=80=AFAM Jan Beich <<a h= ref=3D"mailto:jbeich@freebsd.org">jbeich@freebsd.org</a>> wrote:<br></di= v><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde= r-left:1px solid rgb(204,204,204);padding-left:1ex">Kevin Oberman <<a hr= ef=3D"mailto:rkoberman@gmail.com" target=3D"_blank">rkoberman@gmail.com</a>= > writes:<br> <br> >> VA-API is separate from OpenGL. VA-API on Alder Lake needs<br> >> libva-intel-media-driver<br> >> but the actual support depends on PCI ID e.g., may require newer v= ersion<br> >> than then one packaged.<br> >><br> ><br> > OK. I am now running libva-intel-media-driver. Still not seeing the vi= deo<br> > acceleration that I would expect. 12 threads running and hte total CPU= <br> > usage is 9& 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=3D"font-family:tahoma,sans-seri= f;font-size:small" class=3D"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 scree= n:</div><div style=3D"font-family:tahoma,sans-serif;font-size:small" class= =3D"gmail_default">Trying display: wayland<br>error: XDG_RUNTIME_DIR is inv= alid or not set in the environment.<br>Trying display: x11<br>error: can= 9;t connect to X server!<br>Trying display: drm<br>libva info: VA-API versi= on 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: /us= r/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 er= ror code -1 (unknown libva error),exit</div><div style=3D"font-family:tahom= a,sans-serif;font-size:small" class=3D"gmail_default"><br></div><div style= =3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">= I am interested by hte first error. Is this possibly a side effect of start= ing X from the console with the following .xinitrc:</div><div style=3D"font= -family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">xset fp = rehash<br>exec ck-launch-session dbus-launch --exit-with-session mate-sessi= on</div><div style=3D"font-family:tahoma,sans-serif;font-size:small" class= =3D"gmail_default"><br></div><div style=3D"font-family:tahoma,sans-serif;fo= nt-size:small" class=3D"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=3D"gmail_signature_prefix">-- <= /span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div>= <div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr">Kevin Oberman,= Part time kid herder and retired Network Engineer<br>E-mail: <a href=3D"ma= ilto:rkoberman@gmail.com" target=3D"_blank">rkoberman@gmail.com</a><br></di= v><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683</div></div= ></div></div></div></div></div></div></div> --0000000000008e646205f899b664--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1vs590_H61i%2B%2BU0krAJWqU79bB-9UJKDUy5y2OymVDrHg>