From owner-freebsd-current@freebsd.org Fri Jun 5 22:31:42 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8BD3533993C for ; Fri, 5 Jun 2020 22:31:42 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49dy713Cwcz430H for ; Fri, 5 Jun 2020 22:31:41 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1591396298; 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=gB+dM5llc2sQwwnjOJ7Her3lgGE+ykuRq/+JkeEhkVY=; b=mTVj5Q0We7L1ltY45XVdKeK5PqmqAIAhTINDmpMLTjl2p592bFc1apsK/i2hT8G/90O/TA 6LMQ25//Z5qBCoT5jfne30TteF0SiKly9YKhkCk6rZp2WpYJQrRmPPc0hEQFfQKmeJGwro LetErmahos27HiZPamwRdft0mJNBPtM= Received: from amy.home (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id b01a28f7 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 5 Jun 2020 22:31:38 +0000 (UTC) Date: Sat, 6 Jun 2020 00:31:38 +0200 From: Emmanuel Vadot To: Malcolm Matalka Cc: Hans Petter Selasky , "freebsd-current\@freebsd.org" Subject: Re: Resume almost never works Dell XPS 9370 Message-Id: <20200606003138.343cdc83c9fdfbc4300d4ac2@bidouilliste.com> In-Reply-To: <868sh1pt36.fsf@gmail.com> References: <86pnaejekn.fsf@gmail.com> <6726757c-82cd-b3bb-6554-f2617d92d8a2@selasky.org> <86lfl1kjfs.fsf@gmail.com> <20200605103722.835934106231159991a656fe@bidouilliste.com> <86img5kipf.fsf@gmail.com> <20200605105547.667d59612562e7f367c8840b@bidouilliste.com> <868sh1pt36.fsf@gmail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49dy713Cwcz430H X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=mTVj5Q0W; 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.12 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-0.98)[-0.984]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-0.63)[-0.630]; NEURAL_HAM_MEDIUM(-1.01)[-1.008]; 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-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2020 22:31:42 -0000 On Fri, 05 Jun 2020 14:58:37 +0200 Malcolm Matalka wrote: > > Emmanuel Vadot writes: > > > On Fri, 05 Jun 2020 10:41:48 +0200 > > Malcolm Matalka wrote: > > > >> > >> Emmanuel Vadot writes: > >> > >> > On Fri, 05 Jun 2020 10:25:59 +0200 > >> > Malcolm Matalka wrote: > >> > > >> >> > >> >> Hans Petter Selasky writes: > >> >> > >> >> > On 2020-06-05 06:56, Malcolm Matalka wrote: > >> >> >> I'm using the i915kms driver and resuming from suspend almost never > >> >> >> works. What I get is a blank screen with a rectangle cursor in the top > >> >> >> right, like what the screen looks like for that split second when X11 > >> >> >> starts. It is then stuck and I have to force shutdown with the physical > >> >> >> button. > >> >> >> > >> >> >> I am not sure but I feel like this happens more frequently after I've > >> >> >> been running bhyve but I can't guarantee that's actually causally > >> >> >> related. > >> >> >> > >> >> >> The only special thing I do that I'm aware of is I turn off my usb when > >> >> >> I suspend and back on when I resume, I don't know if this is possibly > >> >> >> related. > >> >> >> > >> >> >> usbconfig list | cut -f 1 -d ':' | xargs -n1 -I'{}' usbconfig '{}' power_save > >> >> >> > >> >> >> Any tips on what to do? > >> >> >> > >> >> > > >> >> > Which version of kernel and kms driver are you using? > >> >> > >> >> I am on 361660 and drm-current-kmod-4.16.g20200320. > >> >> > >> >> This is not a new problem, by the way, I finally just rebooted again > >> >> today and decided to ask. > >> > > >> > Resume could be due to TPM being active, try to disable it in the bios > >> > you should have an option (set it to disable, not discrete). > >> > If the problem is related to the drm driver (I doubt), you could > >> > always try drm-devel-kmod. > >> > >> What makes you think TPM is related? Note that this does work > >> sometimes, just hit or miss and mostly not. > > > > Because I got hit by this problem many times on most of my laptops. > > Looks like I had already disabled TPM. So sadly not the cause in my > case. What generation of intel is it ? Please share pciconf -vl and dmesg Also, can you ssh to the machine after it failed to resume or is it really hanged ? > > > > >> > > >> >> > > >> >> > --HPS > >> >> > >> _______________________________________________ > >> freebsd-current@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-current > >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- Emmanuel Vadot