From nobody Sat May 7 08:29:23 2022 X-Original-To: freebsd-x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0AAFF11CF1DC for ; Sat, 7 May 2022 08:29:36 +0000 (UTC) (envelope-from maurizio1018@gmail.com) Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KwLFq2c5nz4Zd2 for ; Sat, 7 May 2022 08:29:35 +0000 (UTC) (envelope-from maurizio1018@gmail.com) Received: by mail-oo1-xc35.google.com with SMTP id s12-20020a4aeacc000000b0035ebb6d1a5fso1652539ooh.3 for ; Sat, 07 May 2022 01:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=UtTWdvhr0jJ3zsRzeuYlraKyZ69sW3nQwVjLdaEVY+M=; b=ZrFZT4ZHn2iJIF55ORqcOSMF/7gZKNTJSLi+QU0tSLui9egSqO7H3R+ihehrso3s4V Ls3TErywc2B6Z5nkANOQR7sTODzrZZu8jSVlwmTpgMdUKOUrbcF85Ep/E5dI1IBToVYD NmV2RIexMV69dre+EJcjdj97joV6KGB0v23I6aA13l1bIJEqBLPwEIsyNBo+MRskauVa X8kUC9CPmDv9U0WrCCiDDwzaNMUkqwz0wlqk1z2QeGHWGa99ENyb8yO3Nja6v5fitOsv 6SeXfWNnPOuXxtKzLO5wXIH+CiLe389boRZte7ye7zxuuvdNJpzmxWStZKQrnT6S+StT tDGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=UtTWdvhr0jJ3zsRzeuYlraKyZ69sW3nQwVjLdaEVY+M=; b=vwfazWT/BShVomF1nZY4eWwUz7+W2/DGJvzaCTmQ2JholTOI/AobdHIdboqwK7XSkf aFaV2rwKUfWniPS1m3vKb1lrrTUFFJ8FqT/a9TArm/uqGlafzlzN+P9EO3Y1y7k/x3aX vUpAgsq+sVd8+/q1PYyrAvhbKKfrIUeq+xd9OGmy3xolFvJzZ/4gmk4+pjGNL4XgOWM0 6eA28tpcA/RY+pIf6xY7sUuqg34XlZ4PkJfqXOMs6y2AuayZ27mM+LVVCQxlqD2Ebrrp YSXAM/PI2sMED+yZxBcvdmF0MzjHmdCBIu8SYxZZeLmAx227xAUn2YnrzJlvGDnRyaeG d5wA== X-Gm-Message-State: AOAM532kTc/2O9KEkyVDGL3UcDZCOFbduCQ3hqzPUuQIacpkS9u6FjET 5xHHZ328JNi1nX/WAPiHxjSO39tEIcno3c73IZV6ol6BWxU= X-Google-Smtp-Source: ABdhPJwhQKuaxUP3vg4Z+RYqyhM8kPJ1E5nbc+GmtcLpie6SWNyXBgI+GVKCTPFdb8TcKQ1UaDerqLYy9wrc9DE5gWA= X-Received: by 2002:a4a:55c8:0:b0:35e:9ab1:89e5 with SMTP id e191-20020a4a55c8000000b0035e9ab189e5mr2508091oob.24.1651912174751; Sat, 07 May 2022 01:29:34 -0700 (PDT) List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 From: Maurizio Vairani Date: Sat, 7 May 2022 10:29:23 +0200 Message-ID: Subject: Suspend/resume with graphics/drm-510-kmod on a Lenovo ThinkPad T450 minor issue To: freebsd-x11@freebsd.org Content-Type: multipart/alternative; boundary="00000000000060521e05de67c696" X-Rspamd-Queue-Id: 4KwLFq2c5nz4Zd2 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZrFZT4ZH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of maurizio1018@gmail.com designates 2607:f8b0:4864:20::c35 as permitted sender) smtp.mailfrom=maurizio1018@gmail.com X-Spamd-Result: default: False [-3.97 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::c35:from]; NEURAL_HAM_SHORT(-0.97)[-0.973]; MLMMJ_DEST(0.00)[freebsd-x11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --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
Hi all,
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.
Before suspendin= g the laptop:
> mpv Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Ch= romecast\ Ultra\)\ only\ video\ 1920x1080.webm
=C2=A0(+) Video --vid=3D1= (*) (vp9 1920x1080 59.940fps)
VO: [gpu] 1920x1080 yuv420p
V: 00:00:1= 0 / 00:02:38 (7%) Dropped: 20

Exiting... (Quit)
> vlc Real\ 4K= \ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ultra\)\ only\ video\ 19= 20x1080.webm
VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g4187= 8ff4f2)
[0000000800c5c060] main libvlc: Running vlc with the default int= erface. 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 t= o open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init funct= ion __vaDriverInit_1_14
libva info: va_openDriver() returns 0
[000000= 080fc8f060] 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
QObje= ct::~QObject: Timers cannot be stopped from another thread

After the= resume:
> 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
=C2=A0(+= ) Video --vid=3D1 (*) (vp9 1920x1080 59.940fps)
libEGL warning: DRI2: fa= iled to authenticate
[vo/gpu/opengl] Suspected software renderer or indi= rect context.
[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device=
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will b= e 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 =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)
[0= 000000800c5c060] main libvlc: Running vlc with the default interface. Use &= #39;cvlc' to use vlc without interface.
libGL error: failed to authe= nticate magic 1
libGL error: failed to load driver: iris
libEGL warni= ng: DRI2: failed to authenticate
libGL error: failed to authenticate mag= ic 1
libGL error: failed to load driver: iris
Failed to open VDPAU ba= ckend Shared object "libvdpau_va_gl.so" not found, required by &q= uot;vlc"
libEGL warning: DRI2: failed to authenticate
[vp9 @ 0x8= 2022ce00] get_buffer() failed
[vp9 @ 0x82022ce00] thread_get_buffer() fa= iled

Note: after resuming the laptop mpv works only in full scr= een.
--
Maurizio
--00000000000060521e05de67c696--