Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 May 2022 10:29:23 +0200
From:      Maurizio Vairani <maurizio1018@gmail.com>
To:        freebsd-x11@freebsd.org
Subject:   Suspend/resume with graphics/drm-510-kmod on a Lenovo ThinkPad T450 minor issue
Message-ID:  <CAN0zgYWsyb0=SDC6aSuWMZsK0egRuUocPq%2BQTdvcqQeFdH60sQ@mail.gmail.com>

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

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

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

<div dir=3D"ltr">Hi all,<br>replacing the graphics/drm-fbsd13-kmod port wit=
h 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. Ru=
nning mpv and vlc before and after the suspend/resume cycle I obtain some e=
rror messages on the console after resuming the laptop.<br>Before suspendin=
g the laptop:<br>&gt; mpv Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Ch=
romecast\ Ultra\)\ only\ video\ 1920x1080.webm<br>=C2=A0(+) Video --vid=3D1=
 (*) (vp9 1920x1080 59.940fps)<br>VO: [gpu] 1920x1080 yuv420p<br>V: 00:00:1=
0 / 00:02:38 (7%) Dropped: 20<br><br>Exiting... (Quit)<br>&gt; vlc Real\ 4K=
\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ultra\)\ only\ video\ 19=
20x1080.webm<br>VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g4187=
8ff4f2)<br>[0000000800c5c060] main libvlc: Running vlc with the default int=
erface. Use &#39;cvlc&#39; to use vlc without interface.<br>libva info: VA-=
API version 1.14.0<br>libva info: Trying to open /usr/local/lib/dri/iHD_drv=
_video.so<br>libva info: va_openDriver() returns -1<br>libva info: Trying t=
o open /usr/local/lib/dri/i965_drv_video.so<br>libva info: Found init funct=
ion __vaDriverInit_1_14<br>libva info: va_openDriver() returns 0<br>[000000=
080fc8f060] avcodec decoder: Using Intel i965 driver for Intel(R) Broadwell=
 - 2.4.1 for hardware decoding<br>[vp9 @ 0x80fc41e00] get_buffer() failed<b=
r>[vp9 @ 0x80fc41e00] thread_get_buffer() failed<br>[vp9 @ 0x80fc42300] get=
_buffer() failed<br>[vp9 @ 0x80fc42300] thread_get_buffer() failed<br>QObje=
ct::~QObject: Timers cannot be stopped from another thread<br><br>After the=
 resume:<br>&gt; mpv Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromec=
ast\ Ultra\)\ only\ video\ 1920x1080.webm =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A009:56:08<br>=C2=A0(+=
) Video --vid=3D1 (*) (vp9 1920x1080 59.940fps)<br>libEGL warning: DRI2: fa=
iled to authenticate<br>[vo/gpu/opengl] Suspected software renderer or indi=
rect context.<br>[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device=
<br>[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will b=
e unavailable.<br>WARNING: Kernel has no file descriptor comparison support=
: No such file or directory<br>VO: [gpu] 1920x1080 yuv420p<br>V: 00:00:06 /=
 00:02:38 (4%)<br><br>&gt; vlc Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\=
 \(Chromecast\ Ultra\)\ only\ video\ 1920x1080.webm =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A009:56:19<=
br>VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)<br>[0=
000000800c5c060] main libvlc: Running vlc with the default interface. Use &=
#39;cvlc&#39; to use vlc without interface.<br>libGL error: failed to authe=
nticate magic 1<br>libGL error: failed to load driver: iris<br>libEGL warni=
ng: DRI2: failed to authenticate<br>libGL error: failed to authenticate mag=
ic 1<br>libGL error: failed to load driver: iris<br>Failed to open VDPAU ba=
ckend Shared object &quot;libvdpau_va_gl.so&quot; not found, required by &q=
uot;vlc&quot;<br>libEGL warning: DRI2: failed to authenticate<br>[vp9 @ 0x8=
2022ce00] get_buffer() failed<br>[vp9 @ 0x82022ce00] thread_get_buffer() fa=
iled<br><br><div>Note: after resuming the laptop mpv works only in full scr=
een.</div><div>--</div><div>Maurizio<br></div></div>

--00000000000060521e05de67c696--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN0zgYWsyb0=SDC6aSuWMZsK0egRuUocPq%2BQTdvcqQeFdH60sQ>