From nobody Tue Jan 31 13:09:39 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 4P5lks42xzz3cTHZ for ; Tue, 31 Jan 2023 13:09:41 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (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 4P5lks2qTqz3Q0y for ; Tue, 31 Jan 2023 13:09:41 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; none Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id BACA88929A; Tue, 31 Jan 2023 13:09:39 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.17.1/8.16.1) with ESMTPS id 30VD9d4R010473 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 31 Jan 2023 13:09:39 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.17.1/8.16.1/Submit) id 30VD9djG010472; Tue, 31 Jan 2023 13:09:39 GMT (envelope-from phk) Message-Id: <202301311309.30VD9djG010472@critter.freebsd.dk> To: Emmanuel Vadot cc: Oleksandr Kryvulia , freebsd-current@freebsd.org Subject: Re: Could not change brightness anymore with i915kms & acpi_video modules c 202211 In-reply-to: <20230131135526.a3e96ee0ac8479521a99514b@bidouilliste.com> From: "Poul-Henning Kamp" References: <6a997703-6f13-716d-d38d-1a2b910d52ec@shurik.kiev.ua> <202301311233.30VCX2qX079924@critter.freebsd.dk> <20230131135526.a3e96ee0ac8479521a99514b@bidouilliste.com> 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-ID: <10470.1675170579.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Tue, 31 Jan 2023 13:09:39 +0000 X-Rspamd-Queue-Id: 4P5lks2qTqz3Q0y X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N -------- 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=3De= 26ef41f79902991c772b59927c721aa7fa5fc64 > 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 -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= .