From nobody Thu Nov 9 19:15:34 2023 X-Original-To: freebsd-hackers@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 4SRBVx6HY7z504SN for ; Thu, 9 Nov 2023 19:15:37 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) (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 4SRBVx1cmgz3Hty for ; Thu, 9 Nov 2023 19:15:37 +0000 (UTC) (envelope-from bacon4000@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qt1-x836.google.com with SMTP id d75a77b69052e-41cd52c51abso8061051cf.2 for ; Thu, 09 Nov 2023 11:15:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699557336; x=1700162136; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gCoZ/2j0UW5azXqvLQ89Crkyxfy35iWH+YragITe8Gk=; b=O4txcd8/HflSJg/CBr+HrTcme2qLxoPXpIYJTwEpqTHBDyqkFWOWSRuhadGITfUaF/ LGro5fAZVhXKcQdBysHnE13rC6wEnAt2s3K9Z+dZprQM25hXgsOUNXYbawWs0j5JSbLi 7r6ZXQR4tvo3z3AzEypCE25xsoCEniPoZkR6BwbYgBA08aHwmlLK4lC36dNDwz9d06qR UAmL3vZxVkjH6awBHU0BVNlmUPyex8SMGTsO2K6eoxm2A6AkwcKH0lkVPo2Sa5bOnQwL ziyVzIBnJ+KLFNtzg747MDDUCytEt+3ISSxIoR42RKgb4bvfABars+k3KUuexoDuQwxY AWkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699557336; x=1700162136; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gCoZ/2j0UW5azXqvLQ89Crkyxfy35iWH+YragITe8Gk=; b=ixWIlJdhQQttEsyD4RFXAfPeES+RbjDN/nOhtVC1jCBiCCImA1Plc32RM95BaDJbP2 l9nmjQ58ayAEDT4TavUirWxmLycbrs7wqMaYcP2/6wn5twCVwkO094zIS8aoZ5cXqQDy uXTk/jBbKiM6OcNJiaKu5t3h7Dqpl7PYNUskdFha7DMoIUqqlTk796VxSH6zE6AZLzAI cvUQ6drMhnrnGBlFrPzdtnMdNxQpcr8Y/pCWpARR2yyA4qqa46Y4oAzuGlXINmhtFwwo Ws5m3LbgHiaC/wMqp0/RJE2NgAyE7S6hMrcO1rnFQwaHOD4+iNvOo9fm0ISJOGNQZ3i3 5LkA== X-Gm-Message-State: AOJu0YzafFIZ0ig8J3uoCvei6Py3MqU1ZRV8H063Ki7GMytB9uKB8npl x1d0GQGvuQZwLDxfOnrT0OMKV5ktpK0= X-Google-Smtp-Source: AGHT+IE3JVUB//CeAI/fow2Mtx3q4WyUSeZef1IE8rU5hdGzw33lAzuvsU62sutT5Mpew2T1QZUErA== X-Received: by 2002:ac8:5a8b:0:b0:417:a74f:69b6 with SMTP id c11-20020ac85a8b000000b00417a74f69b6mr6049270qtc.65.1699557335883; Thu, 09 Nov 2023 11:15:35 -0800 (PST) Received: from ?IPV6:2603:6000:a401:3a00:6e88:14ff:fea7:590c? (2603-6000-a401-3a00-6e88-14ff-fea7-590c.res6.spectrum.com. [2603:6000:a401:3a00:6e88:14ff:fea7:590c]) by smtp.gmail.com with ESMTPSA id n5-20020ac86745000000b0041977932fc6sm2184967qtp.18.2023.11.09.11.15.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Nov 2023 11:15:35 -0800 (PST) Message-ID: <745ddec4-e2eb-48a6-a903-33821e80d73a@gmail.com> Date: Thu, 9 Nov 2023 13:15:34 -0600 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Brightness 100% when connect or disconnect charger To: Cy Schubert , Emmanuel Vadot Cc: "Dr. Amr Osman" , freebsd-hackers@freebsd.org References: <20231109091931.983f45f8fad4305569faddcb@bidouilliste.com> <20231109161317.2F063245@slippy.cwsent.com> Content-Language: en-US From: Jason Bacon In-Reply-To: <20231109161317.2F063245@slippy.cwsent.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4SRBVx1cmgz3Hty On 11/9/23 10:13, Cy Schubert wrote: > In message <20231109091931.983f45f8fad4305569faddcb@bidouilliste.com>, > Emmanuel > Vadot writes: >> On Wed, 8 Nov 2023 21:57:21 +0200 >> "Dr. Amr Osman" wrote: >> >>> Hello, >>> I have installed freeBSD 14rc4 on Lenovo Thinkpad x270 and xfce desktop and >>> when I >>> 1) connect the charger >>> 2) disconnect the charger >>> 3) resume from suspend >>> The LCD brightness is 100% which is really disturbing specially when I am >>> in dark room >> >> I don't have the issue on my Thinkpad X390 with suspend/resume but I >> do have it with the charger. >> I'm pretty sure that it's a hardware thing and we can't do anything >> about it without having some framework for sensors that can handle >> power supply connection/disconnection and events. >> >>> hw.acpi.video.lcd0.economy: 20 >>> hw.acpi.video.lcd0.fullpower: 30 >>> I have loaded acpi_video and acpi_ibm >>> and if I tried to adjust brightness it goes suddenly from 100 to 20 if I >>> press fn +f5/f6 >> >> You shouldn't need to load acpi_video on modern laptop, backlight(9) >> and backlight(8) is enought (if you have drm loaded). > > What I'm about to discuss is not a backlight issue but a unplug the power > supply and plug it back in issue on my Acer 4752. > > When 9a4bc5208fad (acpica: Import ACPICA 20221020) was committed, WOL no > longer worked on my Acer 4752. > > Howerver after I unplugged it from the power supply and plugged it back in, > only then would it recognize the WOL packet. This was a regression in > 9a4bc5208fad. (I did create a local patch to revert part of 9a4bc5208fad.) > > Probably not a FreeBSD issue per se but acpica contrib issue. > > Just to be thorough, is the BIOS fully up-to-date? -- Life is a game. Play hard. Play fair. Have fun.