From nobody Tue Jan 31 13:20:55 2023 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 4P5lzt0vrFz3cVYs for ; Tue, 31 Jan 2023 13:20:58 +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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P5lzs5xhgz3jhN for ; Tue, 31 Jan 2023 13:20:57 +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=1675171256; 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=qh5iTwkdoaItg6EbBKCK+7r+csWDEyhOEStguQ82Gpo=; b=DtGcQfQCkQrcp2PB85u2Qont9wWUw6M2nW7KyCo8emEPkZLgR6uNBde8mIqGWDiDA2FOAV oKAljgO0AKLOoTABV9WMtt0LjRPFnAaeomtu/0VKyP7dYP5DnsV1pCKlzcGY2zIyuGdRHD ZoE3IUNp6qZtKfp5r4bLa/PeHuwFW2Y= Received: from amy.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 62673fb9 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 31 Jan 2023 13:20:56 +0000 (UTC) Date: Tue, 31 Jan 2023 14:20:55 +0100 From: Emmanuel Vadot To: "Poul-Henning Kamp" Cc: Oleksandr Kryvulia , freebsd-current@freebsd.org Subject: Re: Could not change brightness anymore with i915kms & acpi_video modules c 202211 Message-Id: <20230131142055.aa32f00d89d286053513348d@bidouilliste.com> In-Reply-To: <202301311309.30VD9djG010472@critter.freebsd.dk> References: <6a997703-6f13-716d-d38d-1a2b910d52ec@shurik.kiev.ua> <202301311233.30VCX2qX079924@critter.freebsd.dk> <20230131135526.a3e96ee0ac8479521a99514b@bidouilliste.com> <202301311309.30VD9djG010472@critter.freebsd.dk> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4P5lzs5xhgz3jhN X-Spamd-Bar: ---- 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-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Tue, 31 Jan 2023 13:09:39 +0000 "Poul-Henning Kamp" wrote: > -------- > Emmanuel Vadot writes: > > > > > Does backlight(8) works for you? > > > > > > Speaking of backlight(8): On my T14s, I see the following: > > > > > > If I set the light with backlight(8) to something, say 30%, and then > > > change the power-situation, for instance by unplugging the charger, > > > the backlight goes up to 100%. > > > > > > If I then try to set it back to 30% with backlight(8), nothing happens. > > > > > > If I use any other value, for instance 31%, backlight(8) does the job. > > > > > > I guess somewhere some code says "It's always 30%, just return" ? > > > > > > This might be a bit confusing if you have the intensity encoded in > > > some script, which then "sometimes does not work"... > > > > Smells like > > https://cgit.freebsd.org/src/commit/sys/dev/backlight/backlight.c?id=e26ef41f79902991c772b59927c721aa7fa5fc64 > > It's not in 13.1 but will be in 13.2 > > I'm running > > 14.0-CURRENT #0 main-n260119-7f2109f240c2: Mon Jan 16 22:54:18 UTC 2023 What does backlight reports after you've unplugged the AC adaptor ? -- Emmanuel Vadot