Hallo zusammen,
ich habe mir einen Pi Zero als Youtube Player zugelegt. Installiert ist OSMC. Bedienen möchte ich das Gerät mittels Dualshock 4 Controller.
Hierfür soll sich ds4drv eignen.
Ich habe mehrere Sachen installiert aber ich bekomme den Controller nicht mit dem Pi verbunden. Es scheitert an 2 Punkten.
Vorweg: installiert sind unter anderem: pyhton3.3-dev, pip, pyudev, bluez, evdev und setuptools also alles was laut der GitHub Seite von ds4drv benötigt wird.
1. Die Installation von ds4drv läuft bereits nicht richtig. Nun ist es zwar installiert aber fehlerhaft. Versuche ich das Programm zu öffnen erhalte ich folgende Meldung:
osmc@osmc:~$ ds4drv
Traceback (most recent call last):
File "/usr/local/bin/ds4drv", line 9, in <module>
load_entry_point('ds4drv==0.5.0', 'console_scripts', 'ds4drv')()
File "/usr/local/lib/python2.7/dist-packages/ds4drv/__main__.py", line 374, in main
thread = create_controller_thread(index + 1, controller_options)
File "/usr/local/lib/python2.7/dist-packages/ds4drv/__main__.py", line 343, in create_controller_thread
controller = DS4Controller(index, controller_options, dynamic=dynamic)
File "/usr/local/lib/python2.7/dist-packages/ds4drv/__main__.py", line 59, in __init__
self.load_options(self.options)
File "/usr/local/lib/python2.7/dist-packages/ds4drv/__main__.py", line 117, in load_options
self.fire_event("load-options", options)
File "/usr/local/lib/python2.7/dist-packages/ds4drv/__main__.py", line 62, in fire_event
self.loop.fire_event(event, *args)
File "/usr/local/lib/python2.7/dist-packages/ds4drv/eventloop.py", line 70, in fire_event
self.process_events()
File "/usr/local/lib/python2.7/dist-packages/ds4drv/eventloop.py", line 75, in process_events
callback(*args)
File "/usr/local/lib/python2.7/dist-packages/ds4drv/actions.py", line 282, in load_options
joystick = create_uinput_device(joystick_layout)
File "/usr/local/lib/python2.7/dist-packages/ds4drv/uinput.py", line 363, in create_uinput_device
device = UInputDevice(mapping)
File "/usr/local/lib/python2.7/dist-packages/ds4drv/uinput.py", line 227, in __init__
self.create_device(layout)
File "/usr/local/lib/python2.7/dist-packages/ds4drv/uinput.py", line 268, in create_device
product=layout.product, version=layout.version)
File "/usr/local/lib/python2.7/dist-packages/evdev/uinput.py", line 107, in __init__
_uinput.create(self.fd, name, vendor, product, version, bustype, absinfo)
IOError: [Errno 22] Invalid argument
Alles anzeigen
2. Die Bluetooth Verbindung klappt nicht.
Mittels hcitools kann ich den Controller bzw. die Mac finden aber scheinbar kann ich mit hcitools nicht pairen da diese Funktion nicht vorhanden ist.
Scanne ich mit bluetoothctl wird der Controller nicht gefunden. Grundsätzlich scheint bluetoothctl aber zu funktionieren, da es mein Smartphone scannen kann.
Könnt ihr mir vielleicht weiterhelfen?