From nobody Fri Nov 10 16:17:40 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 4SRkWC2MQqz5006w for ; Fri, 10 Nov 2023 16:17: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 4SRkWC04blz3S8k for ; Fri, 10 Nov 2023 16:17: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=1699633061; 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=1fFMdsb5HdDbHaEwtm59Xw+ErVP5ZcPWYv+L2NbVJtM=; b=HUGiw6c42xQ+kkFou+yi6yF8vVXGPZbVceQpVjk6Ucvvtk/w42hvHiIVHf+Nrq2KjP7B+L Q7LabKoxxeXRrvxWRHLv34HaWsInRAiYXUU+3QqeJBIL3fyWWIXzA3xImeSampdPuWms6S +RSS2KoSmq6WqHgL62Behg4CitP5OOo= 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 b0e8cceb (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 10 Nov 2023 16:17:41 +0000 (UTC) Date: Fri, 10 Nov 2023 17:17:40 +0100 From: Emmanuel Vadot To: Bertrand Petit Cc: "Dr. Amr Osman" , freebsd-hackers@freebsd.org Subject: Re: Brightness 100% when connect or disconnect charger Message-Id: <20231110171740.b45e269881c39eb86128908f@bidouilliste.com> In-Reply-To: <20231110161111.GB5382@memo2.memo.frmug.org> References: <20231109091931.983f45f8fad4305569faddcb@bidouilliste.com> <20231110121053.42e78f4b7f44eba5e91da898@bidouilliste.com> <20231110165057.7e55ad6c62354294219fa980@bidouilliste.com> <20231110161111.GB5382@memo2.memo.frmug.org> 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: 4SRkWC04blz3S8k On Fri, 10 Nov 2023 17:11:11 +0100 Bertrand Petit wrote: > On Fri, Nov 10, 2023 at 04:50:57PM +0100, Emmanuel Vadot wrote: > > > > The theory that I have now is that the value set back when an event > > happen is the one that was set with the keyboard keys, for me it's 100% > > as this is how it's set at boot and since my keys don't work it stays > > that way. Can someone with functional keys for brightness can confirm ? > > Your theory is correct, this is exactly what I observe on an > X230 running 12.4. Brightness level set with intel_backlight is reset to the > latest keyboard-set level (Fn-F8 & Fn-F9) when the machine is resumed or > when it gets out of DPMS, whichever comes first.. Thanks for confirming. Also please update to 13 or higher and stop using intel_backlight :) Cheers, > -- > %!PS -- Bertrand Petit > /D{def}def/E{exch}D/G{get}D/I{2 div}D/U{dup}D/L{roll}D/Y{setgray}D/N{newpath}D > /O{N 0 0 moveto}D/P{pop}D/T{translate}D currentpagedevice/PageSize G U 0 G/w E > D 1 G /h E D w I h I T 0 Y 1 setlinewidth 0 1 2 { P 120 rotate 2 4 w U mul h U > mul add sqrt I 50 add {N 50 0 3 2 L 0 360 arc stroke}for}for/s{O true charpath > pathbbox exch 4 -1 L E sub I 3 1 L sub I} D /l(bp)D 0.94 Y /Helvetica findfont > 22 scalefont setfont l s P(x)s exch P T O l show showpage > -- Emmanuel Vadot