From nobody Tue Jan 31 12:55:26 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 4P5lQh5GqHz3cRKm for ; Tue, 31 Jan 2023 12:55:40 +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" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P5lQh1rChz3KyB for ; Tue, 31 Jan 2023 12:55:40 +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=1675169731; 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=m2RQmFShHwOMF0MNufigIXiW2nnhyDyfEIAxyI4GG3w=; b=TgNudU+9ah3jkpzNsO3wrZA/BGq2Jxi7Pbuq8CbQ04G6TjB4JcysmiIsUiXCcNOu0t1H0V GrBIU7JXXxjsY10qGm64RkMb11U7DAeaI+JW3LCK9YMl3N+ZCRjMGbVDmNsOCFR/v+3bpa RsFUCcZdp8w6kXlhw9h6nGxpGdMiHyQ= 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 24107037 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 31 Jan 2023 12:55:31 +0000 (UTC) Date: Tue, 31 Jan 2023 13:55:26 +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: <20230131135526.a3e96ee0ac8479521a99514b@bidouilliste.com> In-Reply-To: <202301311233.30VCX2qX079924@critter.freebsd.dk> References: <6a997703-6f13-716d-d38d-1a2b910d52ec@shurik.kiev.ua> <202301311233.30VCX2qX079924@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: 4P5lQh1rChz3KyB 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 12:33:02 +0000 "Poul-Henning Kamp" wrote: > -------- > Oleksandr Kryvulia 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 > > -- > 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. > -- Emmanuel Vadot