From nobody Wed May 21 14:00:13 2025 X-Original-To: freebsd-current@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 4b2Y345jKWz5vxlN for ; Wed, 21 May 2025 14:00:16 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4b2Y3451tfz3NtD for ; Wed, 21 May 2025 14:00:16 +0000 (UTC) (envelope-from garga@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747836016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=stXq1mT+ctDZoUWN9c1EFJi6SbfbDq6g6tOnr/bi83w=; b=M5R8nNOd2ZoFCRAPLRMH0HnvARRpcoO8DCL+NjQemVjOAmoXZLOQZABzCGPCW3O0kvmfpz t8C9XaJNbcGuCezCvUenDgDNRIISPnhcJ5+waQsE2qyJY+K3VbXnuHyKDkSaHlTMT9I4dt G/yvco+kXvTEpqwnXxiVv+80NpnyasP9vhEWlUE+ZH/CcPbEZ+rxxrbQiGl2EqU93AUhXk x1TWQ8GYwnMueoVZIbikZsUpsB/n6TSgVWp48wNvAc5oDiRp63IWs55GDphuek+C9iShgR 7ftEms64BakAbhIOqWXY+SZYMeLU04wEJaoiwFQHqRs7jA1iX2QcituW6nh9cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747836016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=stXq1mT+ctDZoUWN9c1EFJi6SbfbDq6g6tOnr/bi83w=; b=TUta+1GM5AVxqDWfCcKDPYf1v+RD5CU3d0UI5pov5UQS2GgQ2kF1IV6lL6nNcxxl/dSd3O 24r7cc73pvIODKP5Mix03xZ0rSGY5nqqVtwCj+Lx55zdfZdbZzaCIa6zXYHY9Vx+MbvLjT jjfhMJOkjY8eumBcRGpfjIGvJFjLiGWR81/68CsaFqrj8FDbC/KZPfAzmRiant94bPdXDn 8933FdHOXoxKKcb3Z3kpiEEzL6ACixZA2lN21w/4JcCOUlpGBodGfU8tWN69Me4bXqgU+i JVUllL9zzFm/emVT5bhZx2JUsp0Hxn5uzTllc8Ln8PQLE6Ivt5Hhj5k//DBEtg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1747836016; a=rsa-sha256; cv=none; b=pK/oPn6HNgYvbButZZW+XkTqpYsQV/EY4XaN5knhx5jYKwcIXl8QIVl6sEwDpZAqAuIM03 PYbTsANblwFuA62ZWJMBUjq5Gsbpmc2LnVB90pZaUmm9WVWOXkxW3eCs+J0/AV1mXcZFxs ejsTTKdeW/dWhbRrtRn5vRQJD4qBMBNJV/WNgPlfSmI7xcXnJy4wMHL0qoNJD6OOEMXCJT NMk6irXdgGveez+gyGXF274eWyNEO21NOw1AwNRC78DVXF4u75vjQ2YmUPijIofn+KDMsQ ZTJSxGQCKuMroMqTqY20IY03FT10Xxb3esoLFiCRTASLeWvOj/k3uGRABzt0MQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from [IPV6:2804:f1c:3c:b01:cd55:904c:d339:c978] (unknown [IPv6:2804:f1c:3c:b01:cd55:904c:d339:c978]) (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 did not present a certificate) (Authenticated sender: garga) by smtp.freebsd.org (Postfix) with ESMTPSA id 4b2Y341k8Kz485 for ; Wed, 21 May 2025 14:00:16 +0000 (UTC) (envelope-from garga@FreeBSD.org) Message-ID: Date: Wed, 21 May 2025 11:00:13 -0300 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: lid state stop changing after suspend/resume From: Renato Botelho To: Current FreeBSD References: <7c6bea8b-b16f-41a0-88d1-65d9980bc378@FreeBSD.org> Content-Language: en-US Autocrypt: addr=garga@FreeBSD.org; keydata= xsBNBGStavwBCACjNlp/9+Y+VFe9ieR2h/WWbdvjz4Mb2z/f22bGoaskzCfvVNbo/v3i34I9 H6OdgZkGqheQEAD2jNfRbmPr4z40xDMUpYGLds+1Mvg7G3Hms3j5Ef8KaLSWUNWIfwKdfSVR Qs35ccSJxAdRW5YdI6J3xZgika+3Bc4eJ05YE/nWW+PNTYevt5rqD50N3zybVYIcLoqVPpBi AZE/sf5SLiLACIJb1t/s4x+pi8vgWevxVVT9u8V1f8zYErmHSLSqjxii0B3eRZphX9NCJOv9 +tfFZhnENInhn9gT7H4e2YumUltEy3jacONHJF3CC1pvvWEa6lEyypclMOkHQwNON7DLABEB AAHNLFJlbmF0byBCb3RlbGhvIChGcmVlQlNEKSA8Z2FyZ2FARnJlZUJTRC5vcmc+wsCXBBMB CgBBAhsDBQkFo5qABQsJCAcDBRUKCQgLBRYDAgEAAh4FAheAFiEERL7Dxegbnh7xTiQ5Ob6P xxJcZXoFAmSta78CGQEACgkQOb6PxxJcZXrYlggAgaZmr6c1yIWzN8VksHrHpwt/uxONEP+h ljy3yfrMsgfS5wx5Uzgfih1xYZUFC6jiI63CetqBqJpp3g1klRS1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a0-88d1-65d9980bc378@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 19/05/25 11:33, Renato Botelho wrote: > Hello! > > I have a ThinkPad E14 2nd gen and recenly installed FreeBSD 15-CURRENT > on it.  I noticed a problem with lid state not changing and started to > collect more information about it.  Here is what I got. > > I changed hw.acpi.lid_switch_state to none so the laptop doesn't sleep > when I open/close the lid and after booting it I can see the sysctl > dev.acpi_lid.0.state changing to 0 and back to 1 when I close/open the > lid.  It works just like it's expected. > > Then I put the system to sleep using `acpiconf -s 3` and resumed it. > After that, dev.acpi_lid.0.state doesn't change anymore to 0 when I > close the lid, it keeps its value as 1 until the next boot. > > I've updated BIOS to most recent version provided by Lenovo (1.64) and > configured sleep to the value `Linux S3` on BIOS setup utility. > > Attached you can see a full dmesg output.  If you need any other data > just let me know. I've created a bugzilla ticket to track this and attached acpidump -dt output. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286974 -- Renato Botelho