From ecb6a6c9e274905e957b181a65968c17e8a5cf9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=B1=E3=83=83=E3=82=B8?= Date: Sun, 15 Sep 2024 22:35:22 -0500 Subject: [PATCH 1/5] MSI Claw quirks --- PKGBUILD/steamfork-device-support/PKGBUILD | 2 +- .../boot.d/001-setkeycodes | 5 +++++ .../hardware_quirks.sh | 2 ++ .../Micro-Star-International-Co.,-Ltd.-Claw-A1M/modules.bad | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 PKGBUILD/steamfork-device-support/src/etc/lib/steamfork_hwsupport/devicequirks/Micro-Star-International-Co.,-Ltd.-Claw-A1M/boot.d/001-setkeycodes create mode 100644 PKGBUILD/steamfork-device-support/src/etc/lib/steamfork_hwsupport/devicequirks/Micro-Star-International-Co.,-Ltd.-Claw-A1M/hardware_quirks.sh create mode 100644 PKGBUILD/steamfork-device-support/src/etc/lib/steamfork_hwsupport/devicequirks/Micro-Star-International-Co.,-Ltd.-Claw-A1M/modules.bad diff --git a/PKGBUILD/steamfork-device-support/PKGBUILD b/PKGBUILD/steamfork-device-support/PKGBUILD index 4a17b285..1731e182 100644 --- a/PKGBUILD/steamfork-device-support/PKGBUILD +++ b/PKGBUILD/steamfork-device-support/PKGBUILD @@ -2,7 +2,7 @@ pkgname=steamfork-device-support pkgver=2024.09.22 -pkgrel=2 +pkgrel=3 pkgdesc='Hardware support provider for PC handhelds.' arch=('any') url='http://www.steamfork.org' diff --git a/PKGBUILD/steamfork-device-support/src/etc/lib/steamfork_hwsupport/devicequirks/Micro-Star-International-Co.,-Ltd.-Claw-A1M/boot.d/001-setkeycodes b/PKGBUILD/steamfork-device-support/src/etc/lib/steamfork_hwsupport/devicequirks/Micro-Star-International-Co.,-Ltd.-Claw-A1M/boot.d/001-setkeycodes new file mode 100644 index 00000000..58bf0c20 --- /dev/null +++ b/PKGBUILD/steamfork-device-support/src/etc/lib/steamfork_hwsupport/devicequirks/Micro-Star-International-Co.,-Ltd.-Claw-A1M/boot.d/001-setkeycodes @@ -0,0 +1,5 @@ +#!/bin/bash + +# Temporary(?) hack to get special face buttons working. +setkeycodes e039 186 +setkeycodes e03a 185 diff --git a/PKGBUILD/steamfork-device-support/src/etc/lib/steamfork_hwsupport/devicequirks/Micro-Star-International-Co.,-Ltd.-Claw-A1M/hardware_quirks.sh b/PKGBUILD/steamfork-device-support/src/etc/lib/steamfork_hwsupport/devicequirks/Micro-Star-International-Co.,-Ltd.-Claw-A1M/hardware_quirks.sh new file mode 100644 index 00000000..3af480b1 --- /dev/null +++ b/PKGBUILD/steamfork-device-support/src/etc/lib/steamfork_hwsupport/devicequirks/Micro-Star-International-Co.,-Ltd.-Claw-A1M/hardware_quirks.sh @@ -0,0 +1,2 @@ +#!/bin/bash +export GAMESCOPE_RES="-w 1280 -h 720" diff --git a/PKGBUILD/steamfork-device-support/src/etc/lib/steamfork_hwsupport/devicequirks/Micro-Star-International-Co.,-Ltd.-Claw-A1M/modules.bad b/PKGBUILD/steamfork-device-support/src/etc/lib/steamfork_hwsupport/devicequirks/Micro-Star-International-Co.,-Ltd.-Claw-A1M/modules.bad new file mode 100644 index 00000000..b01378df --- /dev/null +++ b/PKGBUILD/steamfork-device-support/src/etc/lib/steamfork_hwsupport/devicequirks/Micro-Star-International-Co.,-Ltd.-Claw-A1M/modules.bad @@ -0,0 +1 @@ +iwlmvm iwlwifi From d35672bca4c6f01da3cccf28199eb9bcf0f0c06e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=B1=E3=83=83=E3=82=B8?= Date: Mon, 16 Sep 2024 11:08:01 -0500 Subject: [PATCH 2/5] Add sof-firmware to release build --- rootfs/steamfork/presets/rel.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/rootfs/steamfork/presets/rel.sh b/rootfs/steamfork/presets/rel.sh index 72376a02..899a3cb8 100644 --- a/rootfs/steamfork/presets/rel.sh +++ b/rootfs/steamfork/presets/rel.sh @@ -803,6 +803,7 @@ export STEAMOS_PKGS="accounts-qml-module smbclient snappy socat + sof-firmware sord sound-theme-freedesktop source-highlight From 5a8b0ca67cbd040c5c5a877c6d4ee8cf78e7c0da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=B1=E3=83=83=E3=82=B8?= Date: Sun, 15 Sep 2024 22:01:40 -0500 Subject: [PATCH 3/5] xpad: add msi-claw xbox controller to xpad https://github.com/NeroReflex/linux/commit/0476349fd76911304e4d447a1df7b249531f75d3 --- .../0021-add-msi-claw-support-to-xpad.patch | 19 +++++++++++++++++++ PKGBUILD/linux/PKGBUILD | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 PKGBUILD/linux/0021-add-msi-claw-support-to-xpad.patch diff --git a/PKGBUILD/linux/0021-add-msi-claw-support-to-xpad.patch b/PKGBUILD/linux/0021-add-msi-claw-support-to-xpad.patch new file mode 100644 index 00000000..0dda1e14 --- /dev/null +++ b/PKGBUILD/linux/0021-add-msi-claw-support-to-xpad.patch @@ -0,0 +1,19 @@ +diff -rupN linux-6.10.10.orig/drivers/input/joystick/xpad.c linux-6.10.10/drivers/input/joystick/xpad.c +--- linux-6.10.10.orig/drivers/input/joystick/xpad.c 2024-09-12 09:13:13.000000000 +0000 ++++ linux-6.10.10/drivers/input/joystick/xpad.c 2024-09-16 02:50:37.275238764 +0000 +@@ -218,6 +218,7 @@ static const struct xpad_device { + { 0x0c12, 0x8810, "Zeroplus Xbox Controller", 0, XTYPE_XBOX }, + { 0x0c12, 0x9902, "HAMA VibraX - *FAULTY HARDWARE*", 0, XTYPE_XBOX }, + { 0x0d2f, 0x0002, "Andamiro Pump It Up pad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX }, ++ { 0x0db0, 0x1901, "Micro Star International Xbox360 Controller for Windows", 0, XTYPE_XBOX360 }, + { 0x0e4c, 0x1097, "Radica Gamester Controller", 0, XTYPE_XBOX }, + { 0x0e4c, 0x1103, "Radica Gamester Reflex", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX }, + { 0x0e4c, 0x2390, "Radica Games Jtech Controller", 0, XTYPE_XBOX }, +@@ -492,6 +493,7 @@ static const struct usb_device_id xpad_t + XPAD_XBOX360_VENDOR(0x07ff), /* Mad Catz Gamepad */ + XPAD_XBOXONE_VENDOR(0x0b05), /* ASUS controllers */ + XPAD_XBOX360_VENDOR(0x0c12), /* Zeroplus X-Box 360 controllers */ ++ XPAD_XBOX360_VENDOR(0x0db0), /* Micro Star International X-Box 360 controllers */ + XPAD_XBOX360_VENDOR(0x0e6f), /* 0x0e6f Xbox 360 controllers */ + XPAD_XBOXONE_VENDOR(0x0e6f), /* 0x0e6f Xbox One controllers */ + XPAD_XBOX360_VENDOR(0x0f0d), /* Hori controllers */ diff --git a/PKGBUILD/linux/PKGBUILD b/PKGBUILD/linux/PKGBUILD index 7b36bc21..4b724b65 100644 --- a/PKGBUILD/linux/PKGBUILD +++ b/PKGBUILD/linux/PKGBUILD @@ -49,6 +49,7 @@ source=( 0012-HACK-add-KConfig-to-enable-driver-specific-color-mgm.patch 0013-Don-t-create-color_mgmt_properties-on-asics-SIENNA_C.patch 0020-add-devices-to-oxp-sensors.patch + 0021-add-msi-claw-support-to-xpad.patch 0031-IIO-add-aya-neo-tablet-identifier.patch 0032-iio-imu-Add-driver-for-Bosch-BMI260-IMU.patch 0033-Codec-Add-aw87xxx-codec-with-partial-acpi-implementa.patch @@ -77,6 +78,7 @@ sha256sums=('SKIP' 'f45ba5d7dbc004474314c9e0329014e8c9d6b111f1e00397b1072b1bde581761' # 0012-HACK-add-KConfig-to-enable-driver-specific-color-mgm.patch '683128d044f4df12dcb0a7b2858075f510d870460dc71f0d60f69df89cf62419' # 0013-Don-t-create-color_mgmt_properties-on-asics-SIENNA_C.patch 'b42fa6bb0e3d93aa8a81f61543c2058fa6f8412b9ad190110ffb49c46e81d5ce' # 0020-add-devices-to-oxp-sensors.patch +'a3b3d61c66d4a1c147e5e4e6d8404004435deba3b08788e59de6cd8ee30f570b' # 0021-add-msi-claw-support-to-xpad.patch 'd4bc9044e7e3290d6885d08b8360b61744dc4227a723aa178f9041284e062f08' # 0031-IIO-add-aya-neo-tablet-identifier.patch 'dc8218b5cf4b505a51c77712e54b944f01560d37a0e7630160d5f5776023cfda' # 0032-iio-imu-Add-driver-for-Bosch-BMI260-IMU.patch '5508dedc920022b728489eb3ebbf7235fe48a7822d3c654cd678388c743442b9' # 0033-Codec-Add-aw87xxx-codec-with-partial-acpi-implementa.patch From bc8ebf0c090b74c122ffb0924ec51eddb1944be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=B1=E3=83=83=E3=82=B8?= Date: Fri, 27 Sep 2024 15:37:43 -0500 Subject: [PATCH 4/5] Refactor external device drivers patch --- ...-add-ayaneo-and-ayn-platform-drivers.patch | 28 ------------------- .../0099-add-external-device-drivers.patch | 25 +++++++++++++++++ PKGBUILD/linux/PKGBUILD | 4 +-- 3 files changed, 27 insertions(+), 30 deletions(-) delete mode 100644 PKGBUILD/linux/0099-add-ayaneo-and-ayn-platform-drivers.patch create mode 100644 PKGBUILD/linux/0099-add-external-device-drivers.patch diff --git a/PKGBUILD/linux/0099-add-ayaneo-and-ayn-platform-drivers.patch b/PKGBUILD/linux/0099-add-ayaneo-and-ayn-platform-drivers.patch deleted file mode 100644 index 5ace0586..00000000 --- a/PKGBUILD/linux/0099-add-ayaneo-and-ayn-platform-drivers.patch +++ /dev/null @@ -1,28 +0,0 @@ -From c16838eeade4789341c3a8fc26beaa08e40a535a Mon Sep 17 00:00:00 2001 -From: fewtarius -Date: Fri, 24 May 2024 17:38:14 +0000 -Subject: [PATCH] Add Ayaneo and Ayn platform drivers to kernel. - ---- -diff -rupN linux-6.9.1.orig/drivers/Kconfig linux-6.9.1/drivers/Kconfig ---- linux-6.9.1.orig/drivers/Kconfig 2024-05-21 20:38:58.279988325 -0400 -+++ linux-6.9.1/drivers/Kconfig 2024-05-21 20:40:55.336654955 -0400 -@@ -245,4 +245,8 @@ source "drivers/cdx/Kconfig" - - source "drivers/dpll/Kconfig" - -+source "drivers/ayaneo-platform/Kconfig" -+ -+source "drivers/ayn-platform/Kconfig" -+ - endmenu -diff -rupN linux-6.9.1.orig/drivers/Makefile linux-6.9.1/drivers/Makefile ---- linux-6.9.1.orig/drivers/Makefile 2024-05-21 20:38:58.279988325 -0400 -+++ linux-6.9.1/drivers/Makefile 2024-05-21 20:54:06.723321500 -0400 -@@ -198,3 +198,6 @@ obj-$(CONFIG_CDX_BUS) += cdx/ - obj-$(CONFIG_DPLL) += dpll/ - - obj-$(CONFIG_S390) += s390/ -+ -+obj-$(CONFIG_AYANEO_PLATFORM) += ayaneo-platform/ -+obj-$(CONFIG_AYN_PLATFORM) += ayn-platform/ diff --git a/PKGBUILD/linux/0099-add-external-device-drivers.patch b/PKGBUILD/linux/0099-add-external-device-drivers.patch new file mode 100644 index 00000000..b6864c98 --- /dev/null +++ b/PKGBUILD/linux/0099-add-external-device-drivers.patch @@ -0,0 +1,25 @@ +diff -rupN linux-6.11.orig/drivers/Kconfig linux-6.11/drivers/Kconfig +--- linux-6.11.orig/drivers/Kconfig 2024-09-27 20:25:26.382542648 +0000 ++++ linux-6.11/drivers/Kconfig 2024-09-27 21:19:35.970920618 +0000 +@@ -245,4 +245,9 @@ source "drivers/cdx/Kconfig" + + source "drivers/dpll/Kconfig" + ++# External device drivers ++ ++source "drivers/ayaneo-platform/Kconfig" ++source "drivers/ayn-platform/Kconfig" ++ + endmenu +diff -rupN linux-6.11.orig/drivers/Makefile linux-6.11/drivers/Makefile +--- linux-6.11.orig/drivers/Makefile 2024-09-27 20:25:26.382542648 +0000 ++++ linux-6.11/drivers/Makefile 2024-09-27 21:19:43.898965876 +0000 +@@ -193,3 +193,8 @@ obj-$(CONFIG_CDX_BUS) += cdx/ + obj-$(CONFIG_DPLL) += dpll/ + + obj-$(CONFIG_S390) += s390/ ++ ++# External device drivers ++ ++obj-$(CONFIG_AYANEO_PLATFORM) += ayaneo-platform/ ++obj-$(CONFIG_AYN_PLATFORM) += ayn-platform/ diff --git a/PKGBUILD/linux/PKGBUILD b/PKGBUILD/linux/PKGBUILD index 4b724b65..e6147866 100644 --- a/PKGBUILD/linux/PKGBUILD +++ b/PKGBUILD/linux/PKGBUILD @@ -61,7 +61,7 @@ source=( 0041-cpufreq_amd-pstate-Add-the-missing-cpufreq_cpu_put.patch 0051-drm-amd-display-let-update_planes_and_stream_state-d.patch 0060-asus-patch-series.patch - 0099-add-ayaneo-and-ayn-platform-drivers.patch + 0099-add-external-device-drivers.patch ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds @@ -90,7 +90,7 @@ sha256sums=('SKIP' 'f39edf5b175d4290f528512605bd9250e864c4a4579bb84b7e8a993cae2284eb' # 0041-cpufreq_amd-pstate-Add-the-missing-cpufreq_cpu_put.patch '7c7df8d4427c807e2cea0f1e147efcdfb1e7c1c5271823cc6bb49f10b1846d19' # 0051-drm-amd-display-let-update_planes_and_stream_state-d.patch '802f1f4b3f446f60120df87c13b4d3cdb3ed490384b4f0e5ea1c43c24dbc4153' # 0060-asus-patch-series.patch -'23673c33ea69f3508ff9265d27171e2e58899950d563a1726a6049afe9e92067' # 0099-add-ayaneo-and-ayn-platform-drivers.patch +'d9ddeeb2ed2b16f9e275796ba7a331800bcb34fe2f8861ecaf57d098794c47e2' # 0099-add-external-device-drivers.patch ) export KBUILD_BUILD_HOST=$(hostnamectl hostname) From 6214fcf0140c3bd68f97503c51b0ebd5a928dde8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=B1=E3=83=83=E3=82=B8?= Date: Fri, 27 Sep 2024 15:27:34 -0500 Subject: [PATCH 5/5] Add hid-msi-claw --- PKGBUILD/linux/0099-add-external-device-drivers.patch | 10 ++++++---- PKGBUILD/linux/PKGBUILD | 7 ++++--- PKGBUILD/linux/config | 1 + 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/PKGBUILD/linux/0099-add-external-device-drivers.patch b/PKGBUILD/linux/0099-add-external-device-drivers.patch index b6864c98..1ab7005b 100644 --- a/PKGBUILD/linux/0099-add-external-device-drivers.patch +++ b/PKGBUILD/linux/0099-add-external-device-drivers.patch @@ -1,7 +1,7 @@ diff -rupN linux-6.11.orig/drivers/Kconfig linux-6.11/drivers/Kconfig --- linux-6.11.orig/drivers/Kconfig 2024-09-27 20:25:26.382542648 +0000 -+++ linux-6.11/drivers/Kconfig 2024-09-27 21:19:35.970920618 +0000 -@@ -245,4 +245,9 @@ source "drivers/cdx/Kconfig" ++++ linux-6.11/drivers/Kconfig 2024-09-27 21:34:59.799737160 +0000 +@@ -245,4 +245,10 @@ source "drivers/cdx/Kconfig" source "drivers/dpll/Kconfig" @@ -9,12 +9,13 @@ diff -rupN linux-6.11.orig/drivers/Kconfig linux-6.11/drivers/Kconfig + +source "drivers/ayaneo-platform/Kconfig" +source "drivers/ayn-platform/Kconfig" ++source "drivers/hid-msi-claw/Kconfig" + endmenu diff -rupN linux-6.11.orig/drivers/Makefile linux-6.11/drivers/Makefile --- linux-6.11.orig/drivers/Makefile 2024-09-27 20:25:26.382542648 +0000 -+++ linux-6.11/drivers/Makefile 2024-09-27 21:19:43.898965876 +0000 -@@ -193,3 +193,8 @@ obj-$(CONFIG_CDX_BUS) += cdx/ ++++ linux-6.11/drivers/Makefile 2024-09-27 21:35:10.632797513 +0000 +@@ -193,3 +193,9 @@ obj-$(CONFIG_CDX_BUS) += cdx/ obj-$(CONFIG_DPLL) += dpll/ obj-$(CONFIG_S390) += s390/ @@ -23,3 +24,4 @@ diff -rupN linux-6.11.orig/drivers/Makefile linux-6.11/drivers/Makefile + +obj-$(CONFIG_AYANEO_PLATFORM) += ayaneo-platform/ +obj-$(CONFIG_AYN_PLATFORM) += ayn-platform/ ++obj-$(CONFIG_HID_MSI_CLAW) += hid-msi-claw/ diff --git a/PKGBUILD/linux/PKGBUILD b/PKGBUILD/linux/PKGBUILD index e6147866..8d2cadf8 100644 --- a/PKGBUILD/linux/PKGBUILD +++ b/PKGBUILD/linux/PKGBUILD @@ -7,7 +7,7 @@ pkgbase=linux pkgver=6.11 -pkgrel=5 +pkgrel=6 pkgdesc="Linux Stable" arch=(x86_64) url="https://kernel.org/" @@ -69,7 +69,7 @@ validpgpkeys=( 'A2FF3A36AAA56654109064AB19802F8B0D70FC30' # Jan Alexander Steffens (heftig) ) sha256sums=('SKIP' -'fd52d3262f33ad5e72804cc9f5da600a1f14e4cbc2e98a6d8549c75d382c356c' # config +'ea0ae3d4cb3fd2289e2e8ac8b79ee5bbed22f5a363c6adfc317aa4ac7c37d9b8' # config '69fa4d553a092c90a5dd1138b9a335c1f6cfe0a0e3bfc9031cf220194373228b' # 0001-drm-panel-orientation-quirks.patch '71d093c5c95d7bd594dd8dcd804eabe2f6b95398c519ded42b7d8994f384e4d8' # 0002-drm-amdgpu-always-allocate-cleared-VRAM-for-GEM-allo.patch '783da391e0f45635eefb583b8b3acc29cd62a0c9eeefedf7f790dc2f89c7e279' # 0006-Ayaneo-geek-headset-patch.patch @@ -90,7 +90,7 @@ sha256sums=('SKIP' 'f39edf5b175d4290f528512605bd9250e864c4a4579bb84b7e8a993cae2284eb' # 0041-cpufreq_amd-pstate-Add-the-missing-cpufreq_cpu_put.patch '7c7df8d4427c807e2cea0f1e147efcdfb1e7c1c5271823cc6bb49f10b1846d19' # 0051-drm-amd-display-let-update_planes_and_stream_state-d.patch '802f1f4b3f446f60120df87c13b4d3cdb3ed490384b4f0e5ea1c43c24dbc4153' # 0060-asus-patch-series.patch -'d9ddeeb2ed2b16f9e275796ba7a331800bcb34fe2f8861ecaf57d098794c47e2' # 0099-add-external-device-drivers.patch +'3b1dabc168e4884c6586720538014d6ef8955a0b783d6436dd4937af6622ee42' # 0099-add-external-device-drivers.patch ) export KBUILD_BUILD_HOST=$(hostnamectl hostname) @@ -106,6 +106,7 @@ prepare() { cd ${_srcname}/drivers git clone https://github.com/SteamFork/ayaneo-platform.git git clone https://github.com/SteamFork/ayn-platform.git + git -c advice.detachedHead=false clone -b 20240922 --depth=1 https://github.com/uejji/hid-msi-claw.git cd .. echo "Setting version..." diff --git a/PKGBUILD/linux/config b/PKGBUILD/linux/config index 2db63285..ebd52f90 100644 --- a/PKGBUILD/linux/config +++ b/PKGBUILD/linux/config @@ -10407,6 +10407,7 @@ CONFIG_HTE=y CONFIG_DPLL=y CONFIG_AYANEO_PLATFORM=m CONFIG_AYN_PLATFORM=m +CONFIG_HID_MSI_CLAW=m # end of Device Drivers #