Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DS4 controller not working in either lutris or steam
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
jerol
n00b
n00b


Joined: 12 Feb 2022
Posts: 64

PostPosted: Sat Feb 15, 2025 1:56 pm    Post subject: DS4 controller not working in either lutris or steam Reply with quote

I'm on void, just tried to adding myself to the input group, but it made no difference. Tried GE-Proton-20, GE-Proton-25, Wine-GE.

Usually it gets picked up on steam atleast, I also enabled the ps4 controller support on steam but it still didn't pick it up, tried big picture mode etc.

Lsusb picks it up: Sony Corp. DualShock 4 [CUH-ZCT2x]

dmesg | grep Controller = https://bpa.st/LBBA


Any help highly appreciated!


Side note: In pavucontrol it shows up as both and input and an output audio device :S

Edit: The correct module is being loaded, and I can use the touchpad still.
Back to top
View user's profile Send private message
Ralphred
l33t
l33t


Joined: 31 Dec 2013
Posts: 725

PostPosted: Sat Feb 15, 2025 3:59 pm    Post subject: Reply with quote

With steam not running, what is the output of ls -l /dev/input/js*?

EDIT: I have the same model, and it works fine over both USB and BT.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54875
Location: 56N 3W

PostPosted: Sat Feb 15, 2025 4:29 pm    Post subject: Reply with quote

jerol,

Does your kernel have
Code:
CONFIG_HID_SONY
set.
There is also a force feedback suboption
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54875
Location: 56N 3W

PostPosted: Sat Feb 15, 2025 4:29 pm    Post subject: Reply with quote

Moved from Gamers & Players to Unsupported Software as its a Void Linux question
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jerol
n00b
n00b


Joined: 12 Feb 2022
Posts: 64

PostPosted: Sat Feb 15, 2025 6:23 pm    Post subject: Reply with quote

Yeah it's weird because I too got it working on gentoo without any hassle after I loaded the module :S And I think I have used a controller on void before too without hassling with it.


CONFIG_HID_SONY is built as a it seems module.

grep CONFIG_HID_SONY /usr/src/kernel-headers-6.6.77_1/.config:
Code:

CONFIG_HID_SONY=m


lsmod | grep playstation
Code:

hid_playstation        45056  0



ls -l /dev/input/js* returns js0

Edit: I'm actually running 6.12.13_1 for some reason.
Ignore this last part ^ ....I somehow in my brain thought it was a smaller number :p


Last edited by jerol on Sat Feb 15, 2025 6:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2896

PostPosted: Sat Feb 15, 2025 6:31 pm    Post subject: Reply with quote

You might need games-util/game-device-udev-rules if not already, has some DS4-specific rules.

Edit:
wrt lutris, since wine-9.2 or so I forget, wine changed the default for DS4 to use hidraw directly rather than sdl2, which requires the above (and even then it may be flaky, I feel old default was better)

Not that I can really confirm anything, my old DS4 died few years ago and been using a xone controller which been giving me less trouble than the DS4 did back then.
Back to top
View user's profile Send private message
jerol
n00b
n00b


Joined: 12 Feb 2022
Posts: 64

PostPosted: Sat Feb 15, 2025 6:43 pm    Post subject: Reply with quote

Only package that could be I guess relevant that I found in the official repos is steam-udev-rules, and I have it already installed.

Searching for it in the void-packages or void-src whatever doesn't seem to return anything that significant either. grepped for both game and udev.

Edit:
And that's the weird thing, I've never really had trouble with my ds4 controller before. Yeah on gentoo I remember looking for the module, but aside that it has 95% of the time worked depending on the game.

I think it's down to udev rules, consulted chatgpt and made a file in: /etc/udev/rules.d/50-ds4.rules

Code:

SUBSYSTEM=="input", ATTRS{name}=="*Sony
Interactive Entertainment*", MODE="0666"
KERNEL=="uinput", MODE="0660", GROUP="input",
OPTIONS+="static_node=uinput"

It made it get recognized, but it acted in weird ways :p

Okay it might not have been the udev rules, because I deleted them and rebooted and it still gets recognized but acts weirdly, my mouse pops up etc. Before adding the rules I disabled the "audio device":
Code:

pactl list short cards
pactl set-card-profile <id> off


After disabling the udev rules it works?? Was it the audio device interfering afterall? But I remember on gentoo that I used the controller and at the same time I had the "audio device" on.

Okay after awhile in lutris it started detecting as an xbox controller ingame, and wine control panel in lutris calls it: "wireless controller", even though it's wired. In steam it's being recognized as a ds4 controller though. Although still in /dev/input/by-id/ it is a wireless controller :p
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum