#PS4 controller not working

6 messages · Page 1 of 1 (latest)

shell mountain
#

I installed lutris and wine to play spider-man 2 but i can't seem to get my controller to function. It's recognized but none of the face buttons work, only the analog sticks. I also tried to install ds4drv but it doesn't work for some reason

#

heres the error i get when trying to use ds4drv

miingle@miingle-desktop:~$ ds4drv
Traceback (most recent call last):
File "/usr/local/bin/ds4drv", line 5, in <module>
from ds4drv.main import main
File "/usr/local/lib/python3.12/dist-packages/ds4drv/main.py", line 5, in <module>
from .actions import ActionRegistry
File "/usr/local/lib/python3.12/dist-packages/ds4drv/actions/init.py", line 1, in <module>
from ..action import ActionRegistry
File "/usr/local/lib/python3.12/dist-packages/ds4drv/action.py", line 1, in <module>
from .config import add_controller_option
File "/usr/local/lib/python3.12/dist-packages/ds4drv/config.py", line 15, in <module>
from .uinput import parse_uinput_mapping
File "/usr/local/lib/python3.12/dist-packages/ds4drv/uinput.py", line 6, in <module>
from evdev import UInput, UInputError, ecodes
File "/usr/local/lib/python3.12/dist-packages/evdev/init.py", line 7, in <module>
from evdev.device import DeviceInfo, InputDevice, AbsInfo
File "/usr/local/lib/python3.12/dist-packages/evdev/device.py", line 8, in <module>
from evdev import _input, _uinput, ecodes, util
File "/usr/local/lib/python3.12/dist-packages/evdev/ecodes.py", line 75, in <module>
keys.update(BTN)
^^^
NameError: name 'BTN' is not defined

formal cedar
#

sudo apt-get install python-pip
sudo apt-get install python-dev then sudo apt update

#

Try restarting PC after that.

#

7th gen controllers are bar none the hardest to get working on PC. With the older gens you can use a Mayflash adapter, or 8bitdo makes tons of retro controller variations. They work great on PC.