From nobody Tue Jan 31 12:52:56 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 4P5lMj53j0z3cQkK for ; Tue, 31 Jan 2023 12:53:05 +0000 (UTC) (envelope-from meka@tilda.center) Received: from c3po.tilda.center (c3po.tilda.center [108.61.164.129]) (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 4P5lMh4NrCz3Jyg for ; Tue, 31 Jan 2023 12:53:04 +0000 (UTC) (envelope-from meka@tilda.center) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tilda.center header.s=c3po header.b=qZ5kH6Yl; spf=pass (mx1.freebsd.org: domain of meka@tilda.center designates 108.61.164.129 as permitted sender) smtp.mailfrom=meka@tilda.center; dmarc=pass (policy=reject) header.from=tilda.center Received: from [192.168.111.186] (meka.rs [109.93.255.137]) by c3po.tilda.center (Postfix) with ESMTPSA id C9E0F16547 for ; Tue, 31 Jan 2023 13:52:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tilda.center; s=c3po; t=1675169532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9PVZzSdguV0rpNoHGtmzxggVkZyFWnjcnpBCb8GnNtQ=; b=qZ5kH6YlJgbjK0FlA1YgMfHrplrhAmb5rCTeA8KMWt4F3/vDaAfQYkRIMVKbXWC3MAz3hE MfvD1mN2cU56kJbbcrY/ShbR86q/9nMYssaA098TQIftWiEjsia7THWdf0mogM/VqmwmrL vCASj1GrQaWO9osBp1ornAOcX7DOPsk= Message-ID: Date: Tue, 31 Jan 2023 13:52:56 +0100 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: Could not change brightness anymore with i915kms & acpi_video modules c 202211 Content-Language: en-US To: freebsd-current@freebsd.org References: <6a997703-6f13-716d-d38d-1a2b910d52ec@shurik.kiev.ua> <202301311233.30VCX2qX079924@critter.freebsd.dk> From: =?UTF-8?Q?Goran_Meki=c4=87?= In-Reply-To: <202301311233.30VCX2qX079924@critter.freebsd.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[tilda.center,reject]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[tilda.center:s=c3po]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[tilda.center:+]; ASN(0.00)[asn:20473, ipnet:108.61.164.0/22, country:US]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4P5lMh4NrCz3Jyg X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On 1/31/23 13:33, Poul-Henning Kamp wrote: > 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"... > Actually, I think the problem is a bit deeper, as yet-to-come version of DRM 5.14 suffers from the similar problem: https://github.com/freebsd/drm-kmod/pull/226#issuecomment-1400399357. TL;DR: new DRM code sets brightness to 0% while backlight(8) reports 100%. Regards, meka