From owner-freebsd-current@freebsd.org Wed Sep 16 09:06:30 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 3715D3DEC2B for ; Wed, 16 Sep 2020 09:06:30 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BrvNM6v2Kz4Tpq for ; Wed, 16 Sep 2020 09:06:27 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id D79CD260184; Wed, 16 Sep 2020 11:06:18 +0200 (CEST) Subject: Re: Wake from sleep kinda broken-ish? (ThinkPad Carbon X1 6th gen) To: =?UTF-8?Q?Eirik_=c3=98verby?= , freebsd-current@freebsd.org References: <0b2f0f19-490b-4bb5-52b3-201e24ebeaee@anduin.net> <8f160583-47bb-3090-9713-ba0857be9b3e@FreeBSD.org> <39ceba1e-3e9e-a861-ab71-d376969990c4@FreeBSD.org> <73d1a651-c3b1-5e6d-2af8-f5bc1049bca8@anduin.net> From: Hans Petter Selasky Message-ID: Date: Wed, 16 Sep 2020 11:05:45 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <73d1a651-c3b1-5e6d-2af8-f5bc1049bca8@anduin.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4BrvNM6v2Kz4Tpq X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.35 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.04)[-1.041]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.04)[-1.040]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.97)[-0.965]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-current]; SUBJECT_HAS_QUESTION(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: Wed, 16 Sep 2020 09:06:30 -0000 On 2020-09-16 10:51, Eirik Øverby wrote: > On 9/16/20 9:07 AM, Li-Wen Hsu wrote: >> On Wed, Sep 16, 2020 at 2:30 PM Andriy Gapon wrote: >>> >>> On 15/09/2020 23:13, Eirik Øverby wrote: >>>> On 9/15/20 9:50 PM, Andriy Gapon wrote: >>>>> On 15/09/2020 22:36, Eirik Øverby wrote: >>>>>> Now, since I updated from r365358 to r365688, I have not once been able to wake from sleep. >>>>> >>>>> Is that the only thing that changed? >>>>> Any port / package upgrades? >>>> >>>> There have been updates to packages, yes - but it didn't even occur to me that these could impact the resume process at such an early stage. Not sure which that would be; obviously the drm module has been rebuilt each time I upgraded, but I don't have any other kernel modules installed from packages. >> >> Which version of drm module are you using? > > 13.0-CURRENT FreeBSD 13.0-CURRENT #7 r365688 > drm-devel-kmod-5.4.62.g20200905_1 > > Built against the running kernel sources, of course. > > >>> Yes, I specifically had drm modules in mind. >> >> I also use X1C 6th and it was working perfectly after updating BIOS to >> 1.30 (which I'm currently using) in Sep. 2018 [1]. I don't remember >> any suspend/resume failures. But since late 2019, it has exactly the >> same symptom as yours. Suspending is fine, but upon resuming, there is >> about a 50% probability that the power LDE continues pulsating with >> all other LDEs like FnLock and CapsLock are on like the machine is >> awake. > > Right-o. To make sure suspend/resume is not blocked by USB you can try setting: sysctl hw.usb.no_suspend_wait=1 --HPS