Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2087184lqb; Mon, 27 May 2024 07:29:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLE5ZvMUAf1hLDR+p63YL94UlwQ6p+0eBETFwSqW/mpUe5wuZKcgNPkh8NZNM5zS/DbMTRT/FK3nfo/Bwc5UUVNuDgubnS8oP4TivksQ== X-Google-Smtp-Source: AGHT+IF7k5rQOjV3bb0btxhILXS+hazBKysSYjj1Bks0XfJR8FChGyqitm4870xy7aYbUWyx4vo2 X-Received: by 2002:ac8:5a08:0:b0:43d:fc62:f0b4 with SMTP id d75a77b69052e-43fb0edfe50mr125552321cf.54.1716820195340; Mon, 27 May 2024 07:29:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716820195; cv=pass; d=google.com; s=arc-20160816; b=B+UoswfbtT2emfR1Q0F751UIpCbTwzYrfM3IBHBFU+b8VREGsaUwx4Fm19sOUrOsJI b3+Go6fz1WwrQ9ofzejuOpt54Dxm8KWbkkZINAMXmGvma43Z5IIrRGrJhcRgyBp0/vo4 /CdHGbbxDHNyhC0fm/wSx7gs8d7HjfGw/VuiVRbB6+kDEl6cHhPyBgooZS/oS035W6ND 43BYWAIPdfTxbHo9deGKNMFHIo7bVEoSaCagNFFi26z8IbzKHpPv3U304PE8H+8v5UZg 4LmWRvJaZW0oHZZ2MVVDtt5S1UpyokRCnA9z0sPls9RuBH9ovvVvgCKOzeAZXtSnRcVy iGuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ybG5f3BrPXRSSN5EfbbPSuyPhsQVgyf8iaADzdkYvEM=; fh=ZTJZ4d53UdFUbmUmZ8qn7mrdw685dfhGQBe+e/RR5OE=; b=MsGiXCu6zLelV+PrArbKoLevZlYjjnB9NAe51/umBRNVGD43DsdwY20fHnfEwKrm1+ 5oitb37QbJFGOkDXVsEt8f5hFS4VTSeq+TupTegySXMxsrxcgOK/12hcKpuVeb0R8uQY Oana2GhR14v9dpsn40rdFB3WYhZpPCy0Fkd/uyou3zfVzeX9SaYd1CttwpFT0+Zd4xMo 5T2oZj4sOYXNwYBF5Uj26rzDfv2nJrvUrM1em0GG7bINTH53t7nHNXUsceZ1QyDmIYEg iYlBraT1vIA210UgaWAuGqDV6OWh/jTDrZQ0WM0bIBNf8CMfUbTjQfrWAHC8QECP6z13 aYBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tua3JtTy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190866-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190866-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fb17ba894si92111671cf.154.2024.05.27.07.29.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 07:29:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190866-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tua3JtTy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190866-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190866-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 15F7E1C21660 for ; Mon, 27 May 2024 14:29:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2FAB18130C; Mon, 27 May 2024 14:15:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tua3JtTy" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AA32180A8B; Mon, 27 May 2024 14:15:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819318; cv=none; b=cRQpXqVu+RaNUn5S9TAILKY9eFg6+7O2uscaQ5g+pzY4BodJ9JIdxV8WLUtR0+kXvoRhroDCNJKxTsd0uLL1DqXQ45/7l+upzUwQBrNi2e7m2VWpaTCpzYfhXbmCXG+AuEbIN9ufxRKJl0QPJpEf8hYGbRxb87rhF4I9qmeJKrw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819318; c=relaxed/simple; bh=40t4tHjWFDuMpxRmW027bCl5BGzQoCTq6GRC2BpRg8Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P0AIaCShq1r0TPSqK2gzgZNmfMl4gMKqOpPcxL5bD+PDb2sqUqMFOAQlDu8qg524X5gWKoxVaEZqfxiWdkFJaaN+5UopR4PgaLy52OuJzgXZZDmgtO4lQxUOlcxVy3430m+0MhSsI85S/epG7J4uZg+U2WVAgVT2W5QC96pYmFU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tua3JtTy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0EF1C4AF0A; Mon, 27 May 2024 14:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716819317; bh=40t4tHjWFDuMpxRmW027bCl5BGzQoCTq6GRC2BpRg8Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Tua3JtTylt0nCWFisdjQYB2MgtgaqSBrL9wp/JVuJcwXxvYiMRL+2YxJIsVwSlh6S X+6FC45bHl4djHV4HoS4Zgix7I6LtczP8UzQH1e8/FIv3Ib7LUM62Fx/iesSfMFAJa x69kkwNuHhxbkWYYBl6A1HopCKNJmpjh6Q++9JK9sdDALEyNAeabQVxTxjKKLnTqh0 /wozJ/YYSHTgp7JKPTqBMw6hUeEkAzqN2kn9SraSzD6Wni5WFz3bs34ssS5X0th3rC l7YCTeiX8PbjCc9T7coD9Rkwrs/HqKeXQ5vosraw2nS9XUvCI7p5e7t2CkidwHrWJR bZ1PEVTDS0sLQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Takashi Iwai , "Rafael J . Wysocki" , Sasha Levin , rafael@kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 6.8 26/30] ACPI: video: Add backlight=native quirk for Lenovo Slim 7 16ARH7 Date: Mon, 27 May 2024 10:13:35 -0400 Message-ID: <20240527141406.3852821-26-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240527141406.3852821-1-sashal@kernel.org> References: <20240527141406.3852821-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.11 Content-Transfer-Encoding: 8bit From: Takashi Iwai [ Upstream commit c901f63dc142c48326931f164f787dfff69273d9 ] Lenovo Slim 7 16ARH7 is a machine with switchable graphics between AMD and Nvidia, and the backlight can't be adjusted properly unless acpi_backlight=native is passed. Although nvidia-wmi-backlight is present and loaded, this doesn't work as expected at all. For making it working as default, add the corresponding quirk entry with a DMI matching "LENOVO" "82UX". Link: https://bugzilla.suse.com/show_bug.cgi?id=1217750 Signed-off-by: Takashi Iwai Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/video_detect.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index 9fdcc620c6524..2cc3821b2b16e 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -497,6 +497,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "82BK"), }, }, + { + .callback = video_detect_force_native, + /* Lenovo Slim 7 16ARH7 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "82UX"), + }, + }, { .callback = video_detect_force_native, /* Lenovo ThinkPad X131e (3371 AMD version) */ -- 2.43.0