From nobody Sun May 8 09:59:09 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 B04FD1ADD39B for ; Sun, 8 May 2022 09:59:16 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kx0Bq4D3mz4WZ8 for ; Sun, 8 May 2022 09:59:15 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1652003948; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BNHYjfQm94qfJFbV+sdNyt1zXt8u7gRsKiNrxF8aq5Y=; b=LAraCoG5wa1qrQbxsqLD9WoBkXduU/+JicHJSr9V7iTpWs1EOgo2u1W5zo57kr9wIzWbhB aaDvazQDxyrTqc/SEQ/RfAM5iquUbf/Gxc2S6bCNPUMEWQB7xtc3RLgrNGNq8eT8Pp9tc6 wCqFgksBQ9s/fskzKPu1oPIMkoXBCWs= Received: from amy (lfbn-idf2-1-1518-133.w92-169.abo.wanadoo.fr [92.169.82.133]) by mx.blih.net (OpenSMTPD) with ESMTPSA id a0439f85 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 8 May 2022 09:59:08 +0000 (UTC) Date: Sun, 8 May 2022 11:59:09 +0200 From: Emmanuel Vadot To: Maurizio Vairani Cc: freebsd-x11@freebsd.org Subject: Re: Suspend/resume with graphics/drm-510-kmod on a Lenovo ThinkPad T450 minor issue Message-Id: <20220508115909.07a9f93a317dc102da1d5179@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Kx0Bq4D3mz4WZ8 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=LAraCoG5; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; FREEFALL_USER(0.00)[manu]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ip4:212.83.155.74/32]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-x11]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi Maurizio, On Sat, 7 May 2022 10:29:23 +0200 Maurizio Vairani 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