Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSI-Claw gamepad driver #363

Open
zezba9000 opened this issue Dec 21, 2024 · 5 comments
Open

MSI-Claw gamepad driver #363

zezba9000 opened this issue Dec 21, 2024 · 5 comments

Comments

@zezba9000
Copy link

zezba9000 commented Dec 21, 2024

A gamepad driver I helped some with was pushed into the latest kernel.
Both Bazzite and ChimeraOS will support this driver and settings for it to work.
So the question is will CachyOS?

ATM, CachyOS is the only distro that seems to have a work around to get around the black screen (possible gamescope issue) for sign in page showing using fallback, then rebooting into non-fallback mode after setup. So CachyOS might be the most well suited distro for MSI-Claw atm.

EDIT: Black screen issue is from bad docks and maybe Gamescope gets confused.

@ptr1337
Copy link
Member

ptr1337 commented Dec 21, 2024

https://lore.kernel.org/lkml/[email protected]/

Do you mean this commit?

@zezba9000
Copy link
Author

zezba9000 commented Dec 21, 2024

https://lore.kernel.org/lkml/[email protected]/

Do you mean this commit?

I would assume so. Thats the correct idVendor=0db0 & idProduct=1901 for the MSI-Claw gamepad.
I just did initial work on HID testing. Didn't do kernel driver patch.

FYI, ChimeraOS devs know more about whats needed for the special menu buttons. IDK if thats in this patch but I would assume so.

@zezba9000
Copy link
Author

Here is more info on the driver stuff.

https://aur.archlinux.org/packages/hid-msi-claw-dkms-git
https://github.com/pastaq/systemd/blob/c6dd8a39178c86ae1186996bb2fb7ad0fbaf5c61/hwdb.d/60-keyboard.hwdb
https://github.com/zezba9000/MSI-Claw-Gamepad-Mode

For some reason in my installer, system menu buttons do not work even though its using config stuff from ChimeraOS.

@ptr1337
Copy link
Member

ptr1337 commented Dec 22, 2024

Thanks, I have added this to my todo list.
Since I do not want to integrate this directly into the kernel I will create a hardware detection profile for the msi claw. This will provide a more clean solution instead of installing it system wide.

I expect working on this after christmas.

@zezba9000
Copy link
Author

So FYI, I figured while we're at it, you might want to fix the WiFi driving not working after sleep.
Hopefully the actual driver handles this later but for now this fixes the issue.

Reference: https://forum.manjaro.org/t/intel-wifi-not-working-after-resume-from-sleep/172219/6

#!/bin/bash

case "$1" in
  pre)
    /usr/sbin/modprobe -r iwlmvm iwlwifi
    ;;
  post)
    /usr/sbin/modprobe iwlwifi iwlmvm
    ;;
esac
sudo chmod +x /usr/lib/systemd/system-sleep/iwlwifi-sleep.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants