Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3801622rwe; Mon, 17 Apr 2023 03:55:17 -0700 (PDT) X-Google-Smtp-Source: AKy350b2QD91+QGwoR7aB9KPuA6knd1oQqXLKkqqiVAOzW4zggLYrIo1iHJfztp+dTx9LgxO/qhm X-Received: by 2002:a17:903:11cc:b0:1a6:bbf4:ed79 with SMTP id q12-20020a17090311cc00b001a6bbf4ed79mr8313896plh.20.1681728917335; Mon, 17 Apr 2023 03:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681728917; cv=none; d=google.com; s=arc-20160816; b=H+73zUlG42/1t1XI5wGQEMMxw7a935lsOF/+YIOJ4HLchEKO5tLayky5E0bflzIf2/ oV0ohOo7c7QPYEQfFylfWJGrhKYXarfuICIX5crJV3hiZZ8aKNHys4/aZupmuLhzj4yc cjalG3dbMGU8Lg7F3qwZPE8O8gDx70F8F3a9SwGD8JUcAeNpY3RwI9+UdEd7P8e5z3JA e69ILfAgMFFablCLRaEu6MNJmUiJ5q3U1drzm9U9mPxx95oC7ChKzBDL+lQo8W6m3eFU DGNUzDVgh9vOA2Ogpvne1/hhzWMXYpYa3vixeZ0kmSwmR9xqULrYQMgGjq6TgWmIDVWE HU1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=WmHlD4Gr9waAk6A3Y7B8f9tT++JPXofewPocSJ7Xg6k=; b=sDZR27+iXaPEDHL99YJUshR7nPNSlB1iwlrktqZ3n4ckwasZJIXZ1uGHpQAJRxFylR oT7u2NWlywJBUIkJChVVdTy1OXtXW8CraIow50PvApsSZkibbGn4h/Sfs0XBEt7/AxSE bxBTBqmVxavB6MPp7Bw52s+XSCo/kiAEZPrFfnk3d8rHa1w+3GuXfYJP2m1q8kzk53YB 1mjG6XkV5mnTKpw3z0+HK749O/O1A0JKVATPd/hk6ViNzozrcEBkZvPJjFnvJs8nE1Dc i0Idh+ih7ruDvKZesyAB1ZF/X1sjcXaiWm3VdCMkOHo8FJdrIHVJgFTGii4b000M1ioe QHqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sKuIA6Nb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n88-20020a17090a5ae100b00246ac322e18si10655657pji.51.2023.04.17.03.55.03; Mon, 17 Apr 2023 03:55:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sKuIA6Nb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231157AbjDQKxY (ORCPT + 99 others); Mon, 17 Apr 2023 06:53:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230282AbjDQKwg (ORCPT ); Mon, 17 Apr 2023 06:52:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D69985FE8 for ; Mon, 17 Apr 2023 03:51:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 63FE96223B for ; Mon, 17 Apr 2023 10:48:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92A31C433EF; Mon, 17 Apr 2023 10:48:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681728500; bh=Myep5m/XBEvKs0wTrDcqM9pMLIWqZt/FGVgHVGRjfRc=; h=From:To:Cc:Subject:Date:From; b=sKuIA6NbgHFxeW93bS9xscAlZLOFvfHBeWJTCp57Q/68f7zXp8Gt3M1e/OetfJXmu XgcUowxWisA+5dWAyouBeaTyVoRx/OavvtTrjd6aSaAsf0zD8SdsQHcrDMRdBa811u D2bsidQsP6y1e1BFr0jKSoDOXUPdkqZ1uaNhEKhXsPbeIlG+Y1LH4uT/vooprljnjC QR9pbi3oWwh5tJ84W39B8+00gKAjzFTaR/oUwfReYZ/ncjn5nTPcxBJrKb3ZPm5ADc OfGU1++Y9/T0dTS6tBGWC3isR9n0irXPqmbwhl9J/K4/pK+zqVdeBBFUiMrvgSDkNy MwesziC/6ETCw== From: "Jiri Slaby (SUSE)" To: rafael@kernel.org Cc: linux-kernel@vger.kernel.org, Hans de Goede , Jiri Slaby , "Rafael J . Wysocki" Subject: [PATCH] ACPI: video: Add backlight=native DMI quirk for Lenovo Ideapad Z470 Date: Mon, 17 Apr 2023 12:48:17 +0200 Message-Id: <20230417104817.30254-1-jirislaby@kernel.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede The Lenovo Ideapad Z470 predates Windows 8, so it defaults to using acpi_video for backlight control. But this is not functional on this model. Add a DMI quirk to use the native backlight interface which works. Link: https://bugzilla.suse.com/show_bug.cgi?id=1208724 Signed-off-by: Jiri Slaby (SUSE) Cc: Hans de Goede Cc: Rafael J. Wysocki --- drivers/acpi/video_detect.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index 69ef2d9710c2..af5cea005f54 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -459,6 +459,15 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_BOARD_NAME, "Lenovo IdeaPad S405"), }, }, + { + /* https://bugzilla.suse.com/show_bug.cgi?id=1208724 */ + .callback = video_detect_force_native, + /* Lenovo Ideapad Z470 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_VERSION, "IdeaPad Z470"), + }, + }, { /* https://bugzilla.redhat.com/show_bug.cgi?id=1187004 */ .callback = video_detect_force_native, -- 2.40.0