From nobody Thu Nov 09 08:19:31 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 4SQvy74Bfkz50dwX for ; Thu, 9 Nov 2023 08:19:43 +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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SQvy70c2lz3Nql for ; Thu, 9 Nov 2023 08:19:42 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1699517974; 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=ttgzOelsbQINHHxv+OHqwsUX/BDxQNvBNj33fjQ6wb0=; b=Wc4RHfnWpMy7ZDlPra2D3o6wmjtILwMeOaM1K94aIs+G3dvtDlPwcpGrX98fXisUEp6KjL OUbJU/yM9sJ3tcgZYRKxfbvizkqwbQVjIg8RQTBPmKMAAtiwDTYbWBg0S/H1VxvLMNN7Tl OxkQC2WcPPnH6Mqi+Ocy3lT0xopnKmU= Received: from skull.home.blih.net (lfbn-lyo-1-2174-135.w90-66.abo.wanadoo.fr [90.66.97.135]) by mx.blih.net (OpenSMTPD) with ESMTPSA id c1fe92a6 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 9 Nov 2023 08:19:34 +0000 (UTC) Date: Thu, 9 Nov 2023 09:19:31 +0100 From: Emmanuel Vadot To: "Dr. Amr Osman" Cc: freebsd-hackers@freebsd.org Subject: Re: Brightness 100% when connect or disconnect charger Message-Id: <20231109091931.983f45f8fad4305569faddcb@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd15.0) 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 Content-Type: text/plain; charset=US-ASCII 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:12876, ipnet:212.83.128.0/19, country:FR] X-Rspamd-Queue-Id: 4SQvy70c2lz3Nql 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? -- Emmanuel Vadot