From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA7A4349AF7 for ; Wed, 7 Jan 2026 15:22:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767799348; cv=none; b=HeJQohOOGQK3ZaS/u/6mn4gjrT1GG+orQUya4btdiiZR4aoAdf/+E+jBzcZVaJ/DB7BrFLQ90WxIKT4xEwMnH9iQ7hxsW8JRbHEihobXckONPHMCP/A8dV8O7ZFNWR/rmR4SB+09oPxsd2azklq7qSfxoJyt3Npd6IX2N9uSkf4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767799348; c=relaxed/simple; bh=TNIw7idB9f8vqNAo1codFH1r9kYlRtD5HtAhCcHhGdo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HrBT3mnihqWzFVJsNan1xqCwnaS17oSTtzVl5/Tf+qlvHd8ptN6fHqOuVFki14dUlFPvQkKzyz+U0wUkmOz7esmwO1P6Mn11+EqCjc/FJyC1fl6R9MzQHjfpS7mf4EohxKmV5uNKQt9z58WZmOIgL1PcdKHN/AzBVaOrZ8QNQjk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=j5aalhyb; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="j5aalhyb" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-47d59da3d81so4495385e9.0 for ; Wed, 07 Jan 2026 07:22:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767799345; x=1768404145; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VVaJRCzTZZTAjHpNsxUAqwAiKKlV7lFUL6ciZVsebV0=; b=j5aalhybN9i1OzRj9va6jb82HurBMESGr9skMfQNBjhMKzNESJmCQiLchh7ZpyPEy6 qDgaCmW6rOIf+qWWHyuzt0pcc+S+bcZEZU/iV4WqE4hfz4a4fqRPTaeBdjZDvKUvRVO8 J+HYYW10ryg5Y52BqQvw4HvT62EbWs6dA789ShcpplGYeIggzGbxDBzlIPn3Tcm7gyge 2+mz2XAnICoxmVkD28vZjNmTEhh36uq9oM6aUeauStujA72UpR6hOKWl41bwzmj0rJlc /mQrX9MNqCfwYcc6pnz6RNUaDXtiAW8FRq7WkinZj7wsQCUs3ytjO72Mc0W4CK/CLPKJ /FoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767799345; x=1768404145; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VVaJRCzTZZTAjHpNsxUAqwAiKKlV7lFUL6ciZVsebV0=; b=c6dNb5uGJM2Wce/TLV3dCMH8+rKE8YJI9BfmK3vsY4EcXlnlM0V/5pPRFj6uCt9f1S msmyZ5mfXCOYzgwdqFZOk232JdVBZmMmmHfyOgXy+PfklbClavBDb93BlmyRYBZSh46l q8VaicOb2cltqzAdNAZI+w8kbkjDj0Z0rtpsQeDZ8nwWp7nxtT9yHSV+A3YuiXmLzvpQ TN1oWAxw1wetDf4FKJwNh5ju9eapujlo78xQ366UG31ruotYTqWXTOIv2XxQgmgXuoC6 liokhPrdMApQMb0z8bItK87bgzQWSKheCscsrSP7i3NfzU/s31zCSrS7Z+sOxD1b4NQ4 OryA== X-Forwarded-Encrypted: i=1; AJvYcCXXPB17ImUjt25xY0StL1754BB/MTLTrghioiEC5pTIBq4TIsxkUPTNkNgVtOXZ5oT8JIdyO4HFtuZK16Q=@vger.kernel.org X-Gm-Message-State: AOJu0YxLVLwfcL1nexV17zXRnkpAmNZqcEZBtfCfasoCVGl3hTMEk1YR XrgunuV6PvhiUavaf8TA5XtA5bwxocyLI4/RX6jBkUPfCMsZoShbnZJU X-Gm-Gg: AY/fxX6fmAAP8IfxrQzLikjRvWzvWJt3wum0wNW1W92NrrwiJ3WF96m7SdhOtZf4F22 Ql9dli1/FROpglepD60iUjFhKDOj2x8xTmI4HHJ40FlnkqZtvRG7Wskdm2RDYG8CnJ9c8sxhnCK RxVfr1ZLf17fb1F0jyJNra4qcK/kvqqR/7iD1HiwUfj/wf+DWlz2k5WVNgHvbSdyfraU+mPECBp jfdKtaqIgzJEnuwpr/rcvPwZwWbBRymV03bgHE5a23XqVhG3MVSIepxH/FTmv+oKUSLRpRDvhVb ueTfz52aSZkw1JMH/C+2L9TAevRLor6KVWKWOCF+reY7fK9USheKejg83hq0nDtTe8VL1kaiR5E 4Anb08gNV62QWlN0Z8aNxNAN2HBZYMv6jQYXsroCl0dXw3KX1Z6904Y705kHgvRYc0PG+ukj+6I PAXe9TZYqIhA3ISQATsq6mHIpoggCxAy7H/fOQHRY= X-Google-Smtp-Source: AGHT+IE5Ck64NUBjWIexM4nnRTKNnugE/RCZRKXw6KvBDscQBu8DpmpfjSexdf51x/mYNguJEWG27w== X-Received: by 2002:a05:600c:3ba9:b0:477:9d88:2da6 with SMTP id 5b1f17b1804b1-47d847d0f30mr41715775e9.0.1767799344902; Wed, 07 Jan 2026 07:22:24 -0800 (PST) Received: from ionutnechita-arz2022.local ([2a02:2f0e:ca09:7000:33fc:5cce:3767:6b22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47d7f410c6csm112064125e9.1.2026.01.07.07.22.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jan 2026 07:22:24 -0800 (PST) From: "Ionut Nechita (Sunlight Linux)" To: benato.denis96@gmail.com, jikos@kernel.org, bentiss@kernel.org Cc: ionut_n2001@yahoo.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, sunlightlinux@gmail.com, superm1@kernel.org Subject: [PATCH v3 0/4] HID: asus: Add Fn+F5 fan control key support for ROG laptops Date: Wed, 7 Jan 2026 17:22:10 +0200 Message-ID: <20260107152213.143247-2-sunlightlinux@gmail.com> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Ionut Nechita This series adds support for the Fn+F5 fan control key on Asus ROG laptops and addresses spurious HID vendor codes that cause kernel log spam on these devices. The series introduces: 1. Code cleanup by replacing a magic number with an existing constant 2. Filtering of spurious HID vendor usage codes on ROG laptops 3. Infrastructure for HID-to-WMI communication with proper build guards 4. Fn+F5 fan control key handler with userspace fallback support The Fn+F5 key handler attempts to forward events to asus-wmi when available. If asus-wmi is unavailable or fails, the event is passed to userspace via evdev, allowing userspace fan control implementations. Tested on Asus ROG series laptops. Changes in v3: - Added IS_REACHABLE(CONFIG_ASUS_WMI) conditional compilation guards to prevent build failures when asus-wmi is not compiled (patch 3) - Modified Fn+F5 handler to pass events to userspace when asus-wmi is unavailable or fails, enabling userspace fan control (patch 4) - Updated comments and commit message to reflect that spurious codes affect all ROG laptops, not just G14/G15, and occur during normal operation, not just on keypresses (patch 2) - Simplified commit message for WMI infrastructure patch (patch 3) - Added Reviewed-by tag from Denis Benato - Removed Change-Id tags Changes in v2: - Split the original patch into a logical series of 4 patches - Improved code organization and commit messages Ionut Nechita (4): HID: asus: Replace magic number with HID_UP_ASUSVENDOR constant HID: asus: Filter spurious HID vendor codes on ROG laptops HID: asus: Add WMI communication infrastructure HID: asus: Implement Fn+F5 fan control key handler drivers/hid/hid-asus.c | 80 +++++++++++++++++++++- include/linux/platform_data/x86/asus-wmi.h | 1 + 2 files changed, 80 insertions(+), 1 deletion(-) -- 2.52.0