From nobody Thu Oct 9 20:22:52 2025 Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (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 2002323B625 for ; Tue, 17 Jun 2025 05:20:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750137647; cv=none; b=OIlx1TwoSpyOKuccpHy/rvsN4rUlJXnAbfZkWUaCcvz6VenzQXqA0N+jWoGsu6eZcnS3N0nqSr3eSI7IrDUiUHJeSHKTHoX1YhyvLABYTw2yxjbr7gO4+l/GGsxYTEUQpPuyiU9kF8e9XoCsE60jHBGNY1w/yP1saSIYgDv4I0k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750137647; c=relaxed/simple; bh=mrGo0BcyHuPoyfNxUkOXPEoPr5srbAtdP96o3EhWhOE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lshSqZR2r4Xvt6rBAskx7T/7YyNXDf+gdQMeACaQ+2CG3hIk7x/RpN9a7PAnRL75ERuJdCOWZT9SeemLQiZmiy3/6B0/4vcD11gYdgFEVtLAbWa2wV2KZzx1QDPI+04BkySEMU1azbN9FM/7guq5WYu1GMGTsKBzx6H2d2971NQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=b9BC7uGd; arc=none smtp.client-ip=91.218.175.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="b9BC7uGd" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1750137644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=26Uo2/R6fJOZdLlswb8cEMxHzB7gPbjqKnTJui1PC8s=; b=b9BC7uGdK9mr0Zocwiy9gkc7Ca32Er38Kne1Gwc/MDYZaHb7XuL8zGbEiUrrJdDJ2kzuW7 IpSGx1fAUW3yotHggOHZxMuI1QLMkH0s2NmxjXvLHw0f38h2321vVVnjhvvTQGZxSKRc1j seY5WZLXFgfpfGt2Nqe7SBwrq0iAXrc= From: Matthew Schwartz To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Matthew Schwartz Subject: [PATCH 2/2] Input: i8042 - Disable keyboard wakeup from s2idle on MSI Claw devices Date: Mon, 16 Jun 2025 22:19:30 -0700 Message-ID: <20250617051930.3376981-3-matthew.schwartz@linux.dev> In-Reply-To: <20250617051930.3376981-1-matthew.schwartz@linux.dev> References: <20250617051930.3376981-1-matthew.schwartz@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" On MSI Claw handheld gaming PCs, the volume buttons are considered a part of an i8042 keyboard device and can wake the system from s2idle. This is not expected behavior on a handheld gaming device, as the volume buttons can easily be pressed while handling the device in its s2idle state. To avoid this behavior, enable the SERIO_QUIRK_NOKBDWAKEUP quirk for all=20 current MSI Claw models to disallow wakeup via the i8042 keyboard device while maintaining volume button functionality. Signed-off-by: Matthew Schwartz --- drivers/input/serio/i8042-acpipnpio.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/input/serio/i8042-acpipnpio.h b/drivers/input/serio/i8= 042-acpipnpio.h index 6dbe9d8523f49..c1874a309c69b 100644 --- a/drivers/input/serio/i8042-acpipnpio.h +++ b/drivers/input/serio/i8042-acpipnpio.h @@ -897,6 +897,30 @@ static const struct dmi_system_id i8042_dmi_quirk_tabl= e[] __initconst =3D { }, .driver_data =3D (void *)(SERIO_QUIRK_RESET_ALWAYS) }, + { + /* MSI Claw A1M */ + .matches =3D { + DMI_MATCH(DMI_BOARD_VENDOR, "Micro-Star International Co., Ltd."), + DMI_MATCH(DMI_PRODUCT_NAME, "Claw A1M"), + }, + .driver_data =3D (void *)(SERIO_QUIRK_NOKBDWAKEUP) + }, + { + /* MSI Claw 7 AI+ A2VM */ + .matches =3D { + DMI_MATCH(DMI_BOARD_VENDOR, "Micro-Star International Co., Ltd."), + DMI_MATCH(DMI_PRODUCT_NAME, "Claw 7 AI+ A2VM"), + }, + .driver_data =3D (void *)(SERIO_QUIRK_NOKBDWAKEUP) + }, + { + /* MSI Claw 8 AI+ A2VM */ + .matches =3D { + DMI_MATCH(DMI_BOARD_VENDOR, "Micro-Star International Co., Ltd."), + DMI_MATCH(DMI_PRODUCT_NAME, "Claw 8 AI+ A2VM"), + }, + .driver_data =3D (void *)(SERIO_QUIRK_NOKBDWAKEUP) + }, { /* MSI Wind U-100 */ .matches =3D { --=20 2.49.0