On W*ndows I used DS4Wind*ws, and I have no issues with Steam, but how can I use it to play with RetoArch and Lutris?

Is DS4DRV the way?

17 points

I think you don’t need any special software, the linux kernel recognizes DS4 OOTB as a game controller, I tried it with Flycast (standalone, not libretro’s) and it was just plug and play

permalink
report
reply
5 points

Can confirm. Works out of the box with retroarch.

permalink
report
parent
reply
15 points

why are you censoring windows?

permalink
report
reply
-7 points

Bad word

permalink
report
parent
reply
11 points

weird

permalink
report
parent
reply
4 points

I dunno about that. It’s how I see stuff outside and let light into my house. I’d hate to not have them.

permalink
report
parent
reply
2 points

Those are windows not W*ndows

permalink
report
parent
reply
0 points

There’s no automod in this community removing posts or comments from people who say Wndows

permalink
report
parent
reply
8 points

According to this article on the Arch wiki PS4 controllers should work without doing anything. Just plug them in and start gaming 😉

permalink
report
reply
5 points

Thanks. I did try just PnP but it wouldn’t work. Could it be because Steam was running? I’ll have to try again after closing Steam

permalink
report
parent
reply
9 points

I’m sorry, I forgot to mention that you have to press the PS button once after plugging it in. Did you do that?

If that doesn’t work try restarting Steam and look into your controller settings if it works there, if it does you’re good to go

Keep in mind that many games don’t natively support Playstation controllers. You can work arround this by emulating an Xbox controller instead (enabling your PS4 controller in Steam should do just that for Steam games). Or alternatively do this regedit edit in your games Wineprefix to achieve the same in any launcher of your choice

If all else fails it might be worth trying out ds4drv

Good luck my guy and (hopefully) have fun gaming! :)

permalink
report
parent
reply
6 points

Oh, no I haven’t tried pushing the PS button, thanks for the tip! I’ll try it

permalink
report
parent
reply
7 points
*

My ds4 works out of the box— the touchpad even maps to the mouse cursor (I use libinput and Wayland).

Ds4drv, if you use it, will override the default kernel driver I believe. Make sure it’s not emulating an Xbox 360 controller, unless you want that.

ArchWiki also mentions that you need to disable hidraw in Wine. Maybe that’s related, if you have issues with Windows games?

permalink
report
reply
6 points
*

AFAIK, RetroArch is just a front-end for the emulators that actually use the controller, so getting this to work depends on the emulator you’ll be using.

I would expect any decent emulator on Linux to work with the standard Linux joystick and/or evdev APIs, which are supported by the Linux DualShock 4 driver. This driver is built in to the Linux kernel; nothing more should require installation. However:

It’s possible that your distro might not load that driver automatically. To check, connect the DS4, power it up with the Playstation button (if its light isn’t already on), and run lsmod |grep -E 'hid_sony|hid_playstation' in a terminal. If it responds with some lines containing hid_sony or hid_playstation, then the driver is loaded.

It’s possible that your distro might not have labeled the DS4 as a joystick device in udev, which isn’t strictly required, but some software expects to see. On the distros I’ve used, the easiest way to get this done is to install the steam-devices package. I think most desktop distros do it automatically these days, though.

You don’t want DS4Windows. That’s Windows software. There is a program (not a driver) called ds4linux, which creates a virtual Xbox controller alongside the real DS4, similar to what Steam Input does when you use it. You shouldn’t need this for games/emulators that were written properly for Linux, but it’s there for cases when a developer took a shortcut and assumed Microsoft game hardware is standard on our non-Microsoft OS. Alternatively, I think you can use Steam Input when launching non-Steam games in Steam.

There are various joystick test programs for linux, to give you an idea of whether the OS sees the controller. (This can be helpful when a game doesn’t appear to see it, to determine if it’s the game’s problem or a connection/driver problem.) KDE Plasma has one built in to the System Settings. There’s a also generic one called jstest-gtk, available with most desktop distros. There are probably more out there.

Keep in mind that test programs like that don’t necessarily know which inputs map to which buttons/sticks on the controller. Don’t panic if they look mixed up in a test program; try it in a game first. If they’re still mixed up, look for a way to remap the inputs.

permalink
report
reply

Linux Gaming

!linux_gaming@lemmy.world

Create post

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

Resources

WWW:

Discord:

IRC:

Matrix:

Telegram:

Community stats

  • 2K

    Monthly active users

  • 923

    Posts

  • 12K

    Comments

Community moderators