Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4026117imw; Thu, 7 Jul 2022 11:23:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uzhNJgfoUX2WlDz16EvwY4ev1YMXNJV5x0KD6nVIUBHaTrflreHXBI3hxYWnc/Xf+Lr+/1 X-Received: by 2002:a17:90b:396:b0:1ef:99a4:3737 with SMTP id ga22-20020a17090b039600b001ef99a43737mr6703707pjb.106.1657218210599; Thu, 07 Jul 2022 11:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657218210; cv=none; d=google.com; s=arc-20160816; b=sPdwVE+PVkZnAGSgN+zBhB28YIyha1f0x9aDCC6I/inQfVJWZTHu9mdBK0Xfede+r1 XJ6lZgfTBRUvWUvgj9UXqaE3sVj6s0VwFNh8bVapClheYNqPyLP1riZEde5Nee1/syLF epalAH3eFz9Fi0iO91kH1qwF5oswsV0kH+8gM6FovhOH5tfQjcghUBbjwFtM+TALivKF 2LUqDgaxiyUc8f0D/wBMPk/nmZrYVYP14n9dYGSJos2d90bezPserytoq+BoboKbKH5H 6Rp0bQWbAD5ZOcxvIWFMG+cIs4flxs1HGCgrUESe+wiHkQoa2DDXwpJcVLEaBDakokDK vI7g== 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:to:from:dkim-signature; bh=kMBEqF9Uek5WVqudFbZwBxKC5Zgh55aVoVNNRc9Vwzc=; b=jDE6vZMxpHLuAmht/BStMGCY5WNRysP6fe1Iwd8wCSV3mmLm6olYzTAkpToSxXJOnU 4g6kAT2SXE6paJCZYYQqXTNxi7gIoF5lYECC/XOGxq40YgUMHP8ZfcwHU8xYl/wrghHr 6q+KTYaz5vz6ej5IcSsuT2LNGlgKQ+/ye4L6qBAl2Fl/0cWhrUNqvO8tChT+CHuaFeDb jdILgS+JwVBOrxsT7iog6A/fUwQeOI2pTdiO7KlDP03Rbsw7lKTol9jtX17IIbrsEzEc ERmPeC9QffaU+V3ss5cM1Cmq3vkeslHiS4NzLSeE4wdYxmlUYghClRtbZDR1wnLSo05n SbSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=ivBvhIy7; 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=tuxedocomputers.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p22-20020a637416000000b0040d1dc77202si9044591pgc.22.2022.07.07.11.23.18; Thu, 07 Jul 2022 11:23:30 -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=@tuxedocomputers.com header.s=default header.b=ivBvhIy7; 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=tuxedocomputers.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235560AbiGGSKE (ORCPT + 99 others); Thu, 7 Jul 2022 14:10:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230313AbiGGSKC (ORCPT ); Thu, 7 Jul 2022 14:10:02 -0400 Received: from srv6.fidu.org (srv6.fidu.org [IPv6:2a01:4f8:231:de0::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 289571EAF8 for ; Thu, 7 Jul 2022 11:10:00 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id D29F8C800A4; Thu, 7 Jul 2022 20:09:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= tuxedocomputers.com; h=content-transfer-encoding:mime-version :x-mailer:message-id:date:date:subject:subject:from:from; s= default; t=1657217397; x=1659031798; bh=qyx0EQrTRsU7Bo70P6Wzkzjj g8zrPEsXSJnnrZRrt7A=; b=ivBvhIy7DLuBxS08XxbG8d7VAGWrbE8dft7CMLnw 2v+s7ubUfmy6IPB62Yux3Q7E5d10tj1RdGKKxUT6bFvngP427thAJCaY1F4c3XAJ u4iWAU/cHBisRJRsM4NiDxr+Lq75HaNtKHpIsYJARdSn5wGby+mj0pbJVJ8p5Lrc x+g= X-Virus-Scanned: Debian amavisd-new at srv6.fidu.org Received: from srv6.fidu.org ([127.0.0.1]) by localhost (srv6.fidu.org [127.0.0.1]) (amavisd-new, port 10026) with LMTP id kQAbY6PZhawQ; Thu, 7 Jul 2022 20:09:57 +0200 (CEST) Received: from wsembach-tuxedo.fritz.box (host-212-18-30-247.customer.m-online.net [212.18.30.247]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id 69B17C8009A; Thu, 7 Jul 2022 20:09:57 +0200 (CEST) From: Werner Sembach To: rafael@kernel.org, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ACPI: video: Force backlight native for some TongFang devices Date: Thu, 7 Jul 2022 20:09:52 +0200 Message-Id: <20220707180953.605246-1-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 The TongFang PF5PU1G, PF4NU1F, PF5NU1G, and PF5LUXG/TUXEDO BA15 Gen10, Pulse 14/15 Gen1, and Pulse 15 Gen2 have the same problem as the Clevo NL5xRU and NL5xNU/TUXEDO Aura 15 Gen1 and Gen2: They have 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: stable@vger.kernel.org --- drivers/acpi/video_detect.c | 51 ++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index becc198e4c22..cdde2e069d63 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -490,7 +490,56 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_BOARD_NAME, "NL5xNU"), }, }, - + /* + * The TongFang PF5PU1G, PF4NU1F, PF5NU1G, and PF5LUXG/TUXEDO BA15 Gen10, + * Pulse 14/15 Gen1, and Pulse 15 Gen2 have the same problem as the Clevo + * NL5xRU and NL5xNU/TUXEDO Aura 15 Gen1 and Gen2. See the description + * above. + */ + { + .callback = video_detect_force_native, + .ident = "TongFang PF5PU1G", + .matches = { + DMI_MATCH(DMI_BOARD_NAME, "PF5PU1G"), + }, + }, + { + .callback = video_detect_force_native, + .ident = "TongFang PF4NU1F", + .matches = { + DMI_MATCH(DMI_BOARD_NAME, "PF4NU1F"), + }, + }, + { + .callback = video_detect_force_native, + .ident = "TongFang PF4NU1F", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"), + DMI_MATCH(DMI_BOARD_NAME, "PULSE1401"), + }, + }, + { + .callback = video_detect_force_native, + .ident = "TongFang PF5NU1G", + .matches = { + DMI_MATCH(DMI_BOARD_NAME, "PF5NU1G"), + }, + }, + { + .callback = video_detect_force_native, + .ident = "TongFang PF5NU1G", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"), + DMI_MATCH(DMI_BOARD_NAME, "PULSE1501"), + }, + }, + { + .callback = video_detect_force_native, + .ident = "TongFang PF5LUXG", + .matches = { + DMI_MATCH(DMI_BOARD_NAME, "PF5LUXG"), + }, + }, /* * Desktops which falsely report a backlight and which our heuristics * for this do not catch. -- 2.34.1