Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2157266pxb; Fri, 25 Mar 2022 12:06:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwtkvxmfOJd9HkqMrioaxeNCf26DHkghsGIOlQ+Uovrp0fVMpBIgE90MqI7rUD5gzS+Zaq X-Received: by 2002:a17:90b:4f4b:b0:1c7:928d:1964 with SMTP id pj11-20020a17090b4f4b00b001c7928d1964mr14440668pjb.129.1648235196491; Fri, 25 Mar 2022 12:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648235196; cv=none; d=google.com; s=arc-20160816; b=sZqqeyZ+g0lzBLfaGMwsAMhHfIz87+Mi+1rvwYJ00OfVjhRpInHfIBG0Z+C8G/qHiR VO2Fk4Qzg3nLBBL0++JQbBTczWqa3DoN2jYUEBL85p6WKaeiN8itHqBGf38OVBOoJ3f3 xVW62ZF9v5zJJ+xHgayVc8yljfGC05lxtoqpv4UUYhcnU55b4imGaXFXQc1qNxgLU4tF jJU4aJ63tI6BAIzrDZFWjOZ+GuFLqtpMj/wzkjNiRzDjKwuwAlQ4QR+AkirQN3j60mEg PQ0XeAPTyHwGhHuq9pmmbdGuvOZ58ADJ/N6jz7/eAg0Bx1S8oYefjDb1UTwFKFZHxrSj UhfQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=We3fMDdZuhn/F7aVhTadherL9bs+pza0LkfKEaP2G0c=; b=pnHP3Q5R97XFpoUlYbVINTdbmRqihQrfFEV/AbaFn4foB+WC2vGdhJHfp00O+9l+6c wZ7VO4ohSfH7GIn/WXkevqnypCTImkaPQXPFVpb/i99fF3aQtwm8uEuYzePTIAmoKeJs nwYk3vZv1eI4xyoN2I9M3QmE8Fwn5TA/daImGyuGtLq7vi35fZGDd3eIORG4xQdnroBi nIWabeF8K37vs0g7VIK3ZUj0D035prWp0SX3Ffg5zIp/CPFlRhwjjm6xDDYQtnAGOhbh pvVpOPZW746cZj3ccDj6/2bQYeR2XsIjmz3XNmsnc99mslOBWYVwuTMk2RmoGVcQh+8E kYBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=w7tYT3F6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z37-20020a631925000000b003816043f062si3045337pgl.599.2022.03.25.12.06.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:06:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=w7tYT3F6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D69E020E973; Fri, 25 Mar 2022 11:17:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376371AbiCYPWp (ORCPT + 99 others); Fri, 25 Mar 2022 11:22:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376424AbiCYPU2 (ORCPT ); Fri, 25 Mar 2022 11:20:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBDF2E29FC; Fri, 25 Mar 2022 08:15:45 -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 ams.source.kernel.org (Postfix) with ESMTPS id CE7FCB82865; Fri, 25 Mar 2022 15:15:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E38DC340E9; Fri, 25 Mar 2022 15:15:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1648221339; bh=Ugr3Tis7R5v9mJReP/aoaxVEShg8W48rXk635+mcSrM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w7tYT3F6FgDfO68DCtO5PI870n83yU9KRCa2pPW7Q9PMCgRWiPIGm0/kEvspR3EEK W6jfOPvfEv1nVWnBfeKouO8g8I3A7hlUvOs1IYKj/8vcBgoFYKcoQiz8h0WxoK/iuU eNgyLp7prHIzCaVuGTRPDruNWq5vCkkKD7twS5kM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Werner Sembach , "Rafael J. Wysocki" Subject: [PATCH 5.15 26/37] ACPI: video: Force backlight native for Clevo NL5xRU and NL5xNU Date: Fri, 25 Mar 2022 16:14:27 +0100 Message-Id: <20220325150420.679985772@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220325150419.931802116@linuxfoundation.org> References: <20220325150419.931802116@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: Werner Sembach commit c844d22fe0c0b37dc809adbdde6ceb6462c43acf upstream. Clevo NL5xRU and NL5xNU/TUXEDO Aura 15 Gen1 and Gen2 have both a working native and video interface. However the default detection mechanism first registers the video interface before unregistering it again and switching to the native interface during boot. This results in a dangling SBIOS request for backlight change for some reason, causing the backlight to switch to ~2% once per boot on the first power cord connect or disconnect event. Setting the native interface explicitly circumvents this buggy behaviour by avoiding the unregistering process. Signed-off-by: Werner Sembach Cc: All applicable Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/video_detect.c | 75 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -409,6 +409,81 @@ static const struct dmi_system_id video_ DMI_MATCH(DMI_PRODUCT_NAME, "GA503"), }, }, + /* + * Clevo NL5xRU and NL5xNU/TUXEDO Aura 15 Gen1 and Gen2 have both a + * working native and video interface. However the default detection + * mechanism first registers the video interface before unregistering + * it again and switching to the native interface during boot. This + * results in a dangling SBIOS request for backlight change for some + * reason, causing the backlight to switch to ~2% once per boot on the + * first power cord connect or disconnect event. Setting the native + * interface explicitly circumvents this buggy behaviour, by avoiding + * the unregistering process. + */ + { + .callback = video_detect_force_native, + .ident = "Clevo NL5xRU", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"), + DMI_MATCH(DMI_BOARD_NAME, "NL5xRU"), + }, + }, + { + .callback = video_detect_force_native, + .ident = "Clevo NL5xRU", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "SchenkerTechnologiesGmbH"), + DMI_MATCH(DMI_BOARD_NAME, "NL5xRU"), + }, + }, + { + .callback = video_detect_force_native, + .ident = "Clevo NL5xRU", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Notebook"), + DMI_MATCH(DMI_BOARD_NAME, "NL5xRU"), + }, + }, + { + .callback = video_detect_force_native, + .ident = "Clevo NL5xRU", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"), + DMI_MATCH(DMI_BOARD_NAME, "AURA1501"), + }, + }, + { + .callback = video_detect_force_native, + .ident = "Clevo NL5xRU", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"), + DMI_MATCH(DMI_BOARD_NAME, "EDUBOOK1502"), + }, + }, + { + .callback = video_detect_force_native, + .ident = "Clevo NL5xNU", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"), + DMI_MATCH(DMI_BOARD_NAME, "NL5xNU"), + }, + }, + { + .callback = video_detect_force_native, + .ident = "Clevo NL5xNU", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "SchenkerTechnologiesGmbH"), + DMI_MATCH(DMI_BOARD_NAME, "NL5xNU"), + }, + }, + { + .callback = video_detect_force_native, + .ident = "Clevo NL5xNU", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Notebook"), + DMI_MATCH(DMI_BOARD_NAME, "NL5xNU"), + }, + }, /* * Desktops which falsely report a backlight and which our heuristics