Skip to content

Commit

Permalink
Merge pull request #14 from uejji/msiclaw
Browse files Browse the repository at this point in the history
Add MSI Claw support
  • Loading branch information
fewtarius authored Sep 27, 2024
2 parents 5cd2b8c + 6214fcf commit 376ea21
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 33 deletions.
19 changes: 19 additions & 0 deletions PKGBUILD/linux/0021-add-msi-claw-support-to-xpad.patch
Original file line number Diff line number Diff line change
@@ -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 */
28 changes: 0 additions & 28 deletions PKGBUILD/linux/0099-add-ayaneo-and-ayn-platform-drivers.patch

This file was deleted.

27 changes: 27 additions & 0 deletions PKGBUILD/linux/0099-add-external-device-drivers.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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:34:59.799737160 +0000
@@ -245,4 +245,10 @@ source "drivers/cdx/Kconfig"

source "drivers/dpll/Kconfig"

+# External device drivers
+
+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:35:10.632797513 +0000
@@ -193,3 +193,9 @@ 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/
+obj-$(CONFIG_HID_MSI_CLAW) += hid-msi-claw/
11 changes: 7 additions & 4 deletions PKGBUILD/linux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

pkgbase=linux
pkgver=6.11
pkgrel=5
pkgrel=6
pkgdesc="Linux Stable"
arch=(x86_64)
url="https://kernel.org/"
Expand Down Expand Up @@ -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
Expand All @@ -60,15 +61,15 @@ 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
'647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman
'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
Expand All @@ -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
Expand All @@ -88,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
'3b1dabc168e4884c6586720538014d6ef8955a0b783d6436dd4937af6622ee42' # 0099-add-external-device-drivers.patch
)

export KBUILD_BUILD_HOST=$(hostnamectl hostname)
Expand All @@ -104,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..."
Expand Down
1 change: 1 addition & 0 deletions PKGBUILD/linux/config
Original file line number Diff line number Diff line change
Expand Up @@ -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

#
Expand Down
2 changes: 1 addition & 1 deletion PKGBUILD/steamfork-device-support/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

# Temporary(?) hack to get special face buttons working.
setkeycodes e039 186
setkeycodes e03a 185
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
export GAMESCOPE_RES="-w 1280 -h 720"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
iwlmvm iwlwifi
1 change: 1 addition & 0 deletions rootfs/steamfork/presets/rel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@ export STEAMOS_PKGS="accounts-qml-module
smbclient
snappy
socat
sof-firmware
sord
sound-theme-freedesktop
source-highlight
Expand Down

0 comments on commit 376ea21

Please sign in to comment.