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

How to connect WSL2 Ubuntu 22.04 to Windows Joystick #935

Open
rbhodges opened this issue May 2, 2024 · 5 comments
Open

How to connect WSL2 Ubuntu 22.04 to Windows Joystick #935

rbhodges opened this issue May 2, 2024 · 5 comments

Comments

@rbhodges
Copy link

rbhodges commented May 2, 2024

I tried following directions posted for Ubuntu 20.04 but they don't seem to work. Is it possible to send detailed instructions for Ubuntu 22.04 running under WSL2 on Windows 10?

Thanks,
Richard
rbhodges@gmail.com

@dorssel
Copy link
Owner

dorssel commented May 2, 2024

usbipd-win is distribution independent. What specific instructions are you referring to?

@timmhayes
Copy link

@rbhodges / @dorssel I'm trying to do the same and have found that the WSL2 kernel doesn't support joysticks by default. You'll need to rebuild your kernel with different settings. There is a long conversation about this in this WSL issue. I was able to get this working for another user, but I'm still having issues since I can see the joystick is mounted, but don't receive events from it. But I've been looking for answers and ran into your issue.... so I hope you find it helpful.

@rbhodges
Copy link
Author

rbhodges commented Jun 4, 2024 via email

@timmhayes
Copy link

You could try following what we did in the linked issue, which was cloning the repo and rebuilding your WSL kernel. I'm having issues, but it worked for the other guy. You could try that right now if you want.

@timmhayes
Copy link

@rbhodges My Xbox controller still isn't working, but my old generic GameSir G3 seems to be functioning now and I'm going to roll with that. If you want to run through the steps I did, read the comment that I posted here:
microsoft/WSL#7747 (comment)

The gist is that I ran through the top steps of of the readme in this WSL2-Linux-Kernel fork. However that fork is old, so I made my own and applied the same changes. I'm not a Linux expert though, so use it at your own risk. Or better yet, have a look at the changes I made in my last commit. If you follow the directions properly, you can always revert the change by removing the configuration from your Window's .wslconfig file.

I hope this helps.

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

3 participants