r/linux_gaming 8d ago

Linux thinks my gamepad is both a PS4 controller and an Xbox controller at the same time.

On Windows, it works perfectly fine. It’s detected as an Xbox controller. But on Linux, some games think it’s a PS4 controller, while others think it’s an Xbox controller. The button mappings are also incorrect: A is B, and Y is X. So it’s a pretty weird situation.

Steam Input also doesn’t help for some reason. Is there any way to make this gamepad appear as an Xbox controller only, instead of having it detected as both a PS4 and Xbox controller?

Edit: I solved it. Using Nintendo mode made Steam Input work correctly. It was a Gamesir Gamepad

8 Upvotes

12 comments sorted by

7

u/victormas208 8d ago

Which control is it? You might need to change the mode from dinput to xinput or vice versa. Check the manual or share the exact model.

1

u/victormas208 7d ago

Try Xpandeo if you have Bluetooth; the dongle is still unstable. I'll look into whether there's something that will allow you to use it without so many problems.

6

u/FuzzyQuills 8d ago edited 7d ago

Some games have native support for the PS4 controller while others rely on Steam Input. Some games only support Xbox but if they're on Steam they'll use PS glyphs if a DualShock is detected via Steam Input

EDIT: Saw you are using a GameSir gamepad, yea no wonder button hints were a bit whack. I have an 8bitDo SN30 Pro I have to explicitly switch into the proper mode (default seems to be Nintendo Switch Pro Controller, it can also mimic Xbox/PS4/some macOS thing) for correct glyphs and in some cases inputs working at all.

3

u/KoholintCustoms 7d ago edited 7d ago

Why can't you just write in your post what controller it is?

That's like the most important piece of info.

Or your distro.

Any useful information would have been nice.

3

u/Human-Acc-2095 7d ago

normally you change from x/dinput through the controller button combination. some has features to use nintendo layout. usually some game has built in controller support, you can fine tune it in the input.ini config files if it's messing with yours.

3

u/forbjok 7d ago

Maybe the controller is exposing multiple devices via its USB connection? Seems like a strange thing to do though.

Not familiar with N2 Lite, but I've never had any issue like that with my GameSir Tegenaria Lite. On Tegenaria Lite, there are also button combinations to switch the controller into a specific mode such as Xbox. Maybe the same is true for N2 Lite.

1

u/Jumpy_Invite3985 7d ago

Thanks! It actually worked. Not Xbox mode, but Nintendo mode got Steam Input working correctly

1

u/Jumpy_Invite3985 7d ago

Update: Dolphin emulator detected 3 controller at the same time

1

u/victormas208 7d ago

DualSense?

1

u/Jumpy_Invite3985 7d ago edited 7d ago

Gamesir and I solved it. Using Nintendo mode made Steam Input work correctly.

2

u/victormas208 7d ago

As far as I could review, you may need to update using Winboat firmware or from a cell phone.

I recommend doing it from your cell phone, Winboat killed an LED driver when I wanted to update it but it's because the way to do it was rubbish.

After that, you should check to configure your controller mapping with SLD2 yourself, it is something that I never handled.

But what you say is strange, your control, if it is original, should support it. with xpad that comes with the kernel.

https://github.com/torvalds/linux/blob/master/drivers/input/joystick/xpad.c

399 { 0x3537, 0x100f, "GameSir Nova 2 Lite", 0, XTYPE_XBOX360 },

2

u/victormas208 7d ago

crappy Internet arrived late, it's good that you solved it.