From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.195 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796044471; b=vtaIkYwfkvQfDmMwnx6Gf7O2ZMDIMfy/GRs3oJe+OuIJl1bcfry+ZkE7Ut73iiSiRyTH Kb9Ia5cyCery7Vmvbeq1knox0E/6bS0KkAJRe68vLsC5UVmXnsAuDE8vqNF4vUy/iJ3Mg rt70KzsOB8s/LbRI0MZiOWJPvaLZIzB6YBWyjaVV51g+gHkuopSEDdyVp4pxnRFW7Vo7L z/d9QlVkKVLhX0o/5wkSZna/DwbJjKczzf9zKeFIdMWoRc0KWUTeL9oCkk/oy9T2EIYd9 BBjGKPUGrfn8d45FhH+oaDhHt2UxzLi2AnUwZVhJM+PynuEdO5e1MoOqagIkySa8nLA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796044471; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=2gwLtw3nH5g8LkxvbuOEvErCyd/iNvS6KmoPzH6BL2o=; b=USDis2619znH9Hif/0EjbOKF+0vgnGiAM9kzWUYBdFRWZJhwP1ZYQM8w/XDc5i7EuJMb 8GEAyyRUFnPVN4Xp2Cqofd9EdiFUgY0pvd34URQSwAcYhc7bJnewAzavEUg6i/IPhuWgK DHBbp5uTmWMe9pkiUo46o4R+9tcYJOkhrc+W7o84H+cJiFlQT8HEiSef/bZGjqjK6AxQs ttNxbjThwP3EIOE0bOtUg2r7NoH0NeeETCtXztmDRSuc0Iirn/x4mNZc/LFNe+pADNi4p atBRmQYVBQzy8urOWsyncoPIZJ+m5mkqRo7iu1LbMn4cQqXvKE997BUEk696yBei9Sg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=QE65MX9l; arc=none smtp.remote-ip=74.125.82.195 Received: from mail-dy1-f195.google.com (mail-dy1-f195.google.com [74.125.82.195]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2BD6E606A320 for ; Mon, 30 Nov 2026 13:14:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2BD6E606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=QE65MX9l Received: by mail-dy1-f195.google.com with SMTP id 5a478bee46e88-386c336eab8so7573788eec.0 for ; Mon, 30 Nov 2026 05:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796044470; x=1796649270; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=2gwLtw3nH5g8LkxvbuOEvErCyd/iNvS6KmoPzH6BL2o=; b=QE65MX9lPWIctE8oGwWe2Q2USPPf+UW06EAwSKjglyu+J1DXPgQ60upl9HXyVEOYlC CvLlR9sVqv6cq5++XeqCBDU+7B+Vv/lPslj2f2siGLCKGKMBYZ8Bq8tTTiN1NJ3gGfIO 2XMMu0J5njj7ilpMBZtBDYCEy2UoJ3khwxe9o+piiK+rLk9QH0zk6hTbdZ8SRW8oJYoc +pLcxTyS8/Sq3IQaI9Rx4h+U1nk+WIdQuGkoKXNQd8QSzsvIJbN6RmNkuYIHhtJym3Kx MS9+4NFGRrh3Uyy0L7YzlkuLRwXu4A3A/wmf67cINF3QTqGPQCN3efC+SQPlsqaFzAkk 7jtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796044470; x=1796649270; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=2gwLtw3nH5g8LkxvbuOEvErCyd/iNvS6KmoPzH6BL2o=; b=tlqozQtX67lkHFcwteQZWcpIgXAAHSCe+asFzOl+Y6PlDRhkL1WzqeWgveElKyNKDA qFRvZxFrrjLRZ+55fMP9aVBuoJKyyItX5BQzFsvEAKECti9khfPEQrM6lJQp2jtn5oBB eaW191Vt0JIo9JmTyjMXRKu+t6FzFRWEc32aFvMhYoMzgo6JkpkP73aNpLF4dybR8pod sX7U49OJmXOo2y01jyKXOz283o/kkxJbFQX8tgJ7SK3cwCroJ+CuEoJtddEfM/PhCkOM w2fD+4JqU0g/UaCk+Q5gEC4xyniZ2bqKIgQILbAZvu5DHvjXpik5fI5UpvYtJbwHvF+h J6/Q== X-Forwarded-Encrypted: i=1; AL+hErGrECMhkR/kw0l8toszNCItIKWfwqnWE3Ey6SL7k/zhClSQKiPQqQtGTgqkuK8jag7CF0Rn/Nzt6oZqE6Q=@vger.kernel.org X-Gm-Message-State: APuU4Z/95RNhu059umfCZPqp/ZGnB1tTfGjNR/ULRi4PhI7Jx2KgZ9JL nBe8V2jxqdC0IjFKoEq63brEbY1qy6Ezh0VrWv3akkftpeHQEM8Gpg1x X-Gm-Gg: AZFdTZdP5wHJ/JZ30JCz/rXqF1fgY9qawSfGyxbXj6PQtk4H/L4wB6SLaO184yM38xA TA5C0mjJhx1KSdfHwFRv8RbtcpxCD++TGeSRaEolD1Vh63qHu/iZYTv/BUKQgqwOZu9DGdCaZ6i KoU/n/VY0tpCIRPQ4Df/iWCYdth1/m6arRt9Ft9Mmc5DBpuoPJAnSCijDMEYXls+uh83EP22PtH 42bFuv6Wib/bBi2D0LSe5XXBKUPfwX3e2FBBvBqASU7hynodswYo9lKyb/DvzL9Gwus4axieDfM 13T/V3WAPGXK2N6gen+99WsKww1UBCKMldYmTvWbqCscmeh6yTnOoWHFEC6Lf2xUX7HIpQTR9k0 c3uif7FnjHJFftIx81Mvp7Tyd0u8Uspbs2ayuO0xqlpDhnZkj1Gnj84FSOzaRLtAZ/bm5+owGSG y9tm8z0DInuo79qht2eU1Ng0bSEhxIxlb8qjlg/wktYryPiRRwgvqnb+XNe4wcxc5ZcpckNvPMK DoDFubfc98m0PG0zYkF9SffAEhmkAh5JUeX7hJpMqFTxXZIusMZmz+ohxQxF86xL2/c1Dx2tZU+ wDa2KSLx9+5HfxqwjPipFc0nLy4L X-Received: by 2002:a05:7301:d804:b0:386:b076:a940 with SMTP id 5a478bee46e88-386b076a9e4mr24061757eec.26.1796044470174; Mon, 30 Nov 2026 05:14:30 -0800 (PST) Received: from ThinkPad ([192.220.23.71]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-386992b404bsm84150401eec.1.2026.11.30.05.14.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 05:14:29 -0800 (PST) From: Qiling Zhu To: Mark Pearson , "Derek J. Clark" , Rong Zhang , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Henrique de Moraes Holschuh Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, ibm-acpi-devel@lists.sourceforge.net, Lee Jones , Pavel Machek , Griffin Kroah-Hartman , linux-leds@vger.kernel.org, vishnuocv@gmail.com, vsankar@lenovo.com, Andrea Rabbaglietti Subject: [PATCH v5 0/6] platform/x86: thinkpad_acpi: Add a keyboard backlight auto-mode trigger Date: Mon, 30 Nov 2026 21:12:46 +0800 Message-ID: <20261130131252.80436-1-kmatzkaczor244@gmail.com> X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi all, On supported ThinkPads, Fn+Space can select automatic keyboard backlight control. This series exposes that mode through the private LED trigger "tpacpi-kbd-auto". The first patch fixes an out-of-range brightness value that was reported to make UPower stop tracking hotkey changes on a ThinkPad X9-14 Gen 1. This is v5 of the series. Thank you, Rong and Mark, for reviewing v4. The changes are small: the code at the end of the series is the same as in v4 apart from one comment dropped in 5/6, and what moved is in the patch boundaries and the commit messages. For reference, v4 is here: https://lore.kernel.org/r/20261125084644.137506-1-kmatzkaczor244@gmail.com/ Changes since v4: - 2/6 now contains the two changes that 4/6 used to make to the notify helpers, which let them work in EC levels, as Rong suggested while reviewing 4/6. The commit message describes how this differs from the original inline code: a change between off and the auto mode is reported through brightness_hw_changed when the cached value holds the EC level, and a failed read of the level sends no notification. - 4/6 is smaller accordingly and no longer touches the helpers; its commit message is adjusted to match. - 5/6 drops the comment that repeated the one above TPACPI_KBD_LIGHT_AUTO_CAPABLE_BIT, as Rong suggested. - 1/6, 3/6 and 6/6 are unchanged in code. On the Reviewed-by tags: I have added the tags that Rong and Mark gave on v4 and on earlier versions to the patches they reviewed, and kept them where a patch changed a little afterwards. My understanding is that small changes do not invalidate a tag. If a tag does not fit the patch it is on now, please tell me and I will remove it. As the end result is unchanged, I have not repeated the hardware tests from v4: they cover s2idle and S4 on a ThinkPad X1 Carbon Gen 14, from manual levels and from auto mode. S3-capable models and other models are still untested, and testing there would be very welcome. Each commit of this version builds without warnings. The checkpatch.pl --strict warnings I see are for three commit IDs that are missing from my shallow clone. This series was developed with LLM assistance; I reviewed every design decision against the framework sources and validated the behavior on real hardware myself. Regards, Qiling Zhu