From nobody Thu Nov 9 13:46:19 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 4SR3C15tZcz50y8y for ; Thu, 9 Nov 2023 13:46:21 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (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 4SR3C141jzz3GrP for ; Thu, 9 Nov 2023 13:46:21 +0000 (UTC) (envelope-from bacon4000@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qv1-xf30.google.com with SMTP id 6a1803df08f44-66cfd874520so5213756d6.2 for ; Thu, 09 Nov 2023 05:46:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699537581; x=1700142381; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jlOVfriarkhtqhJW7OV41HJU2FFrstXcYzyziIWQbu8=; b=mDWhHx8+DBwBQl9iojHvpbbEh97JD9Tp4H6FnZ7i7wS3TI21axjr9aBSjq2LHTD2O/ 73d/we4kXqVDoxdPFBkZxI4suMGGEe+8A8pptySFGvak6o0selNQxs64N2DQA8FDE1tB LZrVfmkKlbCmHlrqMhzM3mNf9Up1taUCBOQY7z+4p3DwLA2TGRj6u3WmwfDfdJV+P4EG 7+lUNuYQKh0NTrtAHA3SUahI4A9D77ObPuFmNW8JEmRCyA/acCrIkhpKUKiXhb0qawyH s0ZiK+VDdC5oH7nmUFr8+Ml8xDxfFzM2PFZqFAe20svTsg0gCJBAPZUE+VOPG6lmJreD QKgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699537581; x=1700142381; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jlOVfriarkhtqhJW7OV41HJU2FFrstXcYzyziIWQbu8=; b=rWyXSJM6O2oqw6ny8YYzr18c26/PFvDCPkEj0BEQwjgO1R37nnFe6OA1ZNXL0/PxAs Yb5tASxx50Iurx7UUxtEf9ndnV4FJfbvxCPLByZwbDAD1vRSlcLNLiKH7FmUweAa4rwT VmLxd8lt0q7LqgdAmsqLuL3qpn2Fpw4vr75zEMEdAIZODQNv6FIlh1gBBxHa5mB2FUJA a1n8o02fHI+EesiOHvCe5Yd0xVzdKfX7tLiot8osOkn6daZvTzkLUflOzOTuEcUwmBA1 fDeg/bk2awe7NooArVYVJhBzfXwHKqtgxArk06nJyRcYgBsnz2D6iMyB5efhCP/8qUEz rCAQ== X-Gm-Message-State: AOJu0YyyxhkbH1B6IE0NKCj63uwvVJLgx+Ruf8FxQsIGmM6b3LQ4/F6w 5FrtEyzq7QEjBVW9/Bw7mf0= X-Google-Smtp-Source: AGHT+IFqjZgtu/9kHmMQ1yT3A+ltxyGLzLV2zx/a1fJYqHhVtvYOU7BDVbI35XQLxAOmUs8vztTIxQ== X-Received: by 2002:a05:6214:1cc3:b0:656:3b4c:b98b with SMTP id g3-20020a0562141cc300b006563b4cb98bmr4615846qvd.11.1699537580807; Thu, 09 Nov 2023 05:46:20 -0800 (PST) Received: from [192.168.0.3] (cpe-184-58-230-200.wi.res.rr.com. [184.58.230.200]) by smtp.gmail.com with ESMTPSA id p4-20020a05620a22a400b007742218dc42sm2010881qkh.119.2023.11.09.05.46.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Nov 2023 05:46:20 -0800 (PST) Message-ID: <133fec17-1adf-4c89-8d80-63f9aa221635@gmail.com> Date: Thu, 9 Nov 2023 07:46:19 -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 Content-Language: en-US To: Emmanuel Vadot , "Dr. Amr Osman" Cc: freebsd-hackers@freebsd.org References: <20231109091931.983f45f8fad4305569faddcb@bidouilliste.com> From: Jason Bacon In-Reply-To: <20231109091931.983f45f8fad4305569faddcb@bidouilliste.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: 4SR3C141jzz3GrP On 11/9/23 02:19, Emmanuel Vadot wrote: > 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 can I do to fix this issue? > Please post if you find a solution. If FreeBSD is working as expected and it merely involves some additional tuning, I will consider updating sysutils/desktop-installer and/or sysutils/auto-admin so that such systems work out-of-the-box in the future. -- Life is a game. Play hard. Play fair. Have fun.