Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 May 2022 19:20:27 +0200
From:      Maurizio Vairani <maurizio1018@gmail.com>
To:        Emmanuel Vadot <manu@bidouilliste.com>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: Suspend/resume with graphics/drm-510-kmod on a Lenovo ThinkPad T450 minor issue
Message-ID:  <CAN0zgYXZ1wQnsjPmafieYekwNGKGHkmdSK51vs=SgAXkhKDwgg@mail.gmail.com>
In-Reply-To: <20220508115909.07a9f93a317dc102da1d5179@bidouilliste.com>
References:  <CAN0zgYWsyb0=SDC6aSuWMZsK0egRuUocPq%2BQTdvcqQeFdH60sQ@mail.gmail.com> <20220508115909.07a9f93a317dc102da1d5179@bidouilliste.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000081e3a305de834f2c
Content-Type: text/plain; charset="UTF-8"

Il giorno dom 8 mag 2022 alle ore 11:59 Emmanuel Vadot <
manu@bidouilliste.com> ha scritto:

>
>  Hi Maurizio,
>
> On Sat, 7 May 2022 10:29:23 +0200
> Maurizio Vairani <maurizio1018@gmail.com> wrote:
>
> > Hi all,
> > replacing the graphics/drm-fbsd13-kmod port with the
> > graphics/drm-510-kmod-5.10.0, compiled from ports, the suspend/resume
> cycle
> > works on a Lenovo ThinkPad T450. I have found only a minor issue. Running
> > mpv and vlc before and after the suspend/resume cycle I obtain some error
> > messages on the console after resuming the laptop.
> > Before suspending the laptop:
> > > mpv Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ultra\)\
> > only\ video\ 1920x1080.webm
> >  (+) Video --vid=1 (*) (vp9 1920x1080 59.940fps)
> > VO: [gpu] 1920x1080 yuv420p
> > V: 00:00:10 / 00:02:38 (7%) Dropped: 20
> >
> > Exiting... (Quit)
> > > vlc Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ultra\)\
> > only\ video\ 1920x1080.webm
> > VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)
> > [0000000800c5c060] main libvlc: Running vlc with the default interface.
> Use
> > 'cvlc' to use vlc without interface.
> > libva info: VA-API version 1.14.0
> > libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
> > libva info: va_openDriver() returns -1
> > libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
> > libva info: Found init function __vaDriverInit_1_14
> > libva info: va_openDriver() returns 0
> > [000000080fc8f060] avcodec decoder: Using Intel i965 driver for Intel(R)
> > Broadwell - 2.4.1 for hardware decoding
> > [vp9 @ 0x80fc41e00] get_buffer() failed
> > [vp9 @ 0x80fc41e00] thread_get_buffer() failed
> > [vp9 @ 0x80fc42300] get_buffer() failed
> > [vp9 @ 0x80fc42300] thread_get_buffer() failed
> > QObject::~QObject: Timers cannot be stopped from another thread
> >
> > After the resume:
> > > mpv Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ultra\)\
> > only\ video\ 1920x1080.webm
> >  09:56:08
> >  (+) Video --vid=1 (*) (vp9 1920x1080 59.940fps)
> > libEGL warning: DRI2: failed to authenticate
> > [vo/gpu/opengl] Suspected software renderer or indirect context.
> > [vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
> > [vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be
> > unavailable.
> > WARNING: Kernel has no file descriptor comparison support: No such file
> or
> > directory
> > VO: [gpu] 1920x1080 yuv420p
> > V: 00:00:06 / 00:02:38 (4%)
> >
> > > vlc Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ultra\)\
> > only\ video\ 1920x1080.webm
> >  09:56:19
> > VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)
> > [0000000800c5c060] main libvlc: Running vlc with the default interface.
> Use
> > 'cvlc' to use vlc without interface.
> > libGL error: failed to authenticate magic 1
> > libGL error: failed to load driver: iris
> > libEGL warning: DRI2: failed to authenticate
> > libGL error: failed to authenticate magic 1
> > libGL error: failed to load driver: iris
> > Failed to open VDPAU backend Shared object "libvdpau_va_gl.so" not found,
> > required by "vlc"
> > libEGL warning: DRI2: failed to authenticate
> > [vp9 @ 0x82022ce00] get_buffer() failed
> > [vp9 @ 0x82022ce00] thread_get_buffer() failed
> >
> > Note: after resuming the laptop mpv works only in full screen.
> > --
> > Maurizio
>
>  What hardware to do have ? (pciconf -lv vgapci0)
>  I can't reproduce here either on the console or from wayland, will try
> xorg later.
>
>  Cheers,
>
> --
> Emmanuel Vadot <manu@bidouilliste.com> <manu@FreeBSD.org>
>
Hi Emmanuel,
thank you for the reply. The laptop runs Xorg and the hardware is:
> pciconf -lv vgapci0
vgapci0@pci0:0:2:0: class=0x030000 rev=0x09 hdr=0x00 vendor=0x8086
device=0x1616 subvendor=0x17aa subdevice=0x5034
    vendor     = 'Intel Corporation'
    device     = 'HD Graphics 5500'
    class      = display
    subclass   = VGA

Regards
--
Maurizio

--00000000000081e3a305de834f2c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">Il giorno dom 8 mag 2022 alle ore 11:=
59 Emmanuel Vadot &lt;<a href=3D"mailto:manu@bidouilliste.com">manu@bidouil=
liste.com</a>&gt; ha scritto:<br></div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd=
ing-left:1ex"><br>
=C2=A0Hi Maurizio,<br>
<br>
On Sat, 7 May 2022 10:29:23 +0200<br>
Maurizio Vairani &lt;<a href=3D"mailto:maurizio1018@gmail.com" target=3D"_b=
lank">maurizio1018@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi all,<br>
&gt; replacing the graphics/drm-fbsd13-kmod port with the<br>
&gt; graphics/drm-510-kmod-5.10.0, compiled from ports, the suspend/resume =
cycle<br>
&gt; works on a Lenovo ThinkPad T450. I have found only a minor issue. Runn=
ing<br>
&gt; mpv and vlc before and after the suspend/resume cycle I obtain some er=
ror<br>
&gt; messages on the console after resuming the laptop.<br>
&gt; Before suspending the laptop:<br>
&gt; &gt; mpv Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ul=
tra\)\<br>
&gt; only\ video\ 1920x1080.webm<br>
&gt;=C2=A0 (+) Video --vid=3D1 (*) (vp9 1920x1080 59.940fps)<br>
&gt; VO: [gpu] 1920x1080 yuv420p<br>
&gt; V: 00:00:10 / 00:02:38 (7%) Dropped: 20<br>
&gt; <br>
&gt; Exiting... (Quit)<br>
&gt; &gt; vlc Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ul=
tra\)\<br>
&gt; only\ video\ 1920x1080.webm<br>
&gt; VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)<br>
&gt; [0000000800c5c060] main libvlc: Running vlc with the default interface=
. Use<br>
&gt; &#39;cvlc&#39; to use vlc without interface.<br>
&gt; libva info: VA-API version 1.14.0<br>
&gt; libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so<br>
&gt; libva info: va_openDriver() returns -1<br>
&gt; libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so<br>
&gt; libva info: Found init function __vaDriverInit_1_14<br>
&gt; libva info: va_openDriver() returns 0<br>
&gt; [000000080fc8f060] avcodec decoder: Using Intel i965 driver for Intel(=
R)<br>
&gt; Broadwell - 2.4.1 for hardware decoding<br>
&gt; [vp9 @ 0x80fc41e00] get_buffer() failed<br>
&gt; [vp9 @ 0x80fc41e00] thread_get_buffer() failed<br>
&gt; [vp9 @ 0x80fc42300] get_buffer() failed<br>
&gt; [vp9 @ 0x80fc42300] thread_get_buffer() failed<br>
&gt; QObject::~QObject: Timers cannot be stopped from another thread<br>
&gt; <br>
&gt; After the resume:<br>
&gt; &gt; mpv Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ul=
tra\)\<br>
&gt; only\ video\ 1920x1080.webm<br>
&gt;=C2=A0 09:56:08<br>
&gt;=C2=A0 (+) Video --vid=3D1 (*) (vp9 1920x1080 59.940fps)<br>
&gt; libEGL warning: DRI2: failed to authenticate<br>
&gt; [vo/gpu/opengl] Suspected software renderer or indirect context.<br>
&gt; [vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device<br>
&gt; [vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will =
be<br>
&gt; unavailable.<br>
&gt; WARNING: Kernel has no file descriptor comparison support: No such fil=
e or<br>
&gt; directory<br>
&gt; VO: [gpu] 1920x1080 yuv420p<br>
&gt; V: 00:00:06 / 00:02:38 (4%)<br>
&gt; <br>
&gt; &gt; vlc Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ul=
tra\)\<br>
&gt; only\ video\ 1920x1080.webm<br>
&gt;=C2=A0 09:56:19<br>
&gt; VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)<br>
&gt; [0000000800c5c060] main libvlc: Running vlc with the default interface=
. Use<br>
&gt; &#39;cvlc&#39; to use vlc without interface.<br>
&gt; libGL error: failed to authenticate magic 1<br>
&gt; libGL error: failed to load driver: iris<br>
&gt; libEGL warning: DRI2: failed to authenticate<br>
&gt; libGL error: failed to authenticate magic 1<br>
&gt; libGL error: failed to load driver: iris<br>
&gt; Failed to open VDPAU backend Shared object &quot;libvdpau_va_gl.so&quo=
t; not found,<br>
&gt; required by &quot;vlc&quot;<br>
&gt; libEGL warning: DRI2: failed to authenticate<br>
&gt; [vp9 @ 0x82022ce00] get_buffer() failed<br>
&gt; [vp9 @ 0x82022ce00] thread_get_buffer() failed<br>
&gt; <br>
&gt; Note: after resuming the laptop mpv works only in full screen.<br>
&gt; --<br>
&gt; Maurizio<br>
<br>
=C2=A0What hardware to do have ? (pciconf -lv vgapci0)<br>
=C2=A0I can&#39;t reproduce here either on the console or from wayland, wil=
l try<br>
xorg later.<br>
<br>
=C2=A0Cheers,<br>
<br>
-- <br>
Emmanuel Vadot &lt;<a href=3D"mailto:manu@bidouilliste.com" target=3D"_blan=
k">manu@bidouilliste.com</a>&gt; &lt;manu@FreeBSD.org&gt;<br></blockquote><=
div>Hi Emmanuel,</div><div>thank you for the reply. The laptop runs Xorg an=
d the hardware is:</div><div>&gt; pciconf -lv vgapci0<br>vgapci0@pci0:0:2:0=
:	class=3D0x030000 rev=3D0x09 hdr=3D0x00 vendor=3D0x8086 device=3D0x1616 su=
bvendor=3D0x17aa subdevice=3D0x5034<br>=C2=A0 =C2=A0 vendor =C2=A0 =C2=A0 =
=3D &#39;Intel Corporation&#39;<br>=C2=A0 =C2=A0 device =C2=A0 =C2=A0 =3D &=
#39;HD Graphics 5500&#39;<br>=C2=A0 =C2=A0 class =C2=A0 =C2=A0 =C2=A0=3D di=
splay<br>=C2=A0 =C2=A0 subclass =C2=A0 =3D VGA <br></div><div><br></div><di=
v>Regards<br></div><div>--</div><div>Maurizio</div><div><br></div></div></d=
iv>

--00000000000081e3a305de834f2c--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN0zgYXZ1wQnsjPmafieYekwNGKGHkmdSK51vs=SgAXkhKDwgg>