-
Notifications
You must be signed in to change notification settings - Fork 245
Description
Hi!
I connected my PS4 Controller using bluetoothctl (BleuZ 5.66) to my Raspberry Pi4 (OS Lite), installed ds4drv using pip in virtual environment (python3.11-full). Added rules for permissions as described, reloaded the rules, got 'Failed to create input device "dev/uinput" cannot be opened for writing'. Loaded uinput (sudo modprobe uinput). And when I run $ ds4drv I get:
Traceback (most recent call last):
File "/home/afverschuur/venv/bin/ds4drv", line 8, in
sys.exit(main())
^^^^^^
File "/home/afverschuur/venv/lib/python3.11/site-packages/ds4drv/main.py", line 151, in main
thread = create_controller_thread(index + 1, controller_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afverschuur/venv/lib/python3.11/site-packages/ds4drv/main.py", line 120, in create_controller_thread
controller = DS4Controller(index, controller_options, dynamic=dynamic)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afverschuur/venv/lib/python3.11/site-packages/ds4drv/main.py", line 35, in init
self.load_options(self.options)
File "/home/afverschuur/venv/lib/python3.11/site-packages/ds4drv/main.py", line 93, in load_options
self.fire_event("load-options", options)
File "/home/afverschuur/venv/lib/python3.11/site-packages/ds4drv/main.py", line 38, in fire_event
self.loop.fire_event(event, *args)
File "/home/afverschuur/venv/lib/python3.11/site-packages/ds4drv/eventloop.py", line 86, in fire_event
self.process_events()
File "/home/afverschuur/venv/lib/python3.11/site-packages/ds4drv/eventloop.py", line 92, in process_events
callback(*args)
File "/home/afverschuur/venv/lib/python3.11/site-packages/ds4drv/actions/input.py", line 84, in load_options
joystick.device.device.fn)
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'InputDevice' object has no attribute 'fn'. Did you mean: 'fd'?
Is it something I did wrong? Or is it a bug?