#PS4 controller not working
6 messages · Page 1 of 1 (latest)
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
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.
aight thanks it wokrs now