can't initialize ds4drv Erno 22
See original GitHub issueCan someone tell me how to fix?
$ 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 "build/bdist.linux-x86_64/egg/ds4drv/__main__.py", line 151, in main File "build/bdist.linux-x86_64/egg/ds4drv/__main__.py", line 120, in create_controller_thread File "build/bdist.linux-x86_64/egg/ds4drv/__main__.py", line 35, in __init__ File "build/bdist.linux-x86_64/egg/ds4drv/__main__.py", line 93, in load_options File "build/bdist.linux-x86_64/egg/ds4drv/__main__.py", line 38, in fire_event File "build/bdist.linux-x86_64/egg/ds4drv/eventloop.py", line 86, in fire_event File "build/bdist.linux-x86_64/egg/ds4drv/eventloop.py", line 92, in process_events File "build/bdist.linux-x86_64/egg/ds4drv/actions/input.py", line 79, in load_options File "build/bdist.linux-x86_64/egg/ds4drv/uinput.py", line 425, in create_uinput_device File "build/bdist.linux-x86_64/egg/ds4drv/uinput.py", line 234, in __init__ File "build/bdist.linux-x86_64/egg/ds4drv/uinput.py", line 290, in create_device 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
Issue Analytics
- State:
- Created 8 years ago
- Comments:13
Top GitHub Comments
Not a fix, but a workaround, that solved the issue for me: downgrade evdev to 0.5.0
sudo pip install evdev==0.5.0
if you have a kernel version >= 4.4.0, apply the patch described here: https://github.com/gvalkov/python-evdev/issues/43#issuecomment-177664399sudo pip install --upgrade git+https://github.com/gvalkov/python-evdev.git@631e2d32d7bdf38e3d7a5c850c9f5869d61e9183
when I run the following command I get the following error python3 -m ds4drv --hidraw --udp [info][controller 1] Created devices /dev/input/js2 (joystick) /dev/input/event259 (evdev) [info][controller 1] Connected to USB Controller (A4:53:85:21:1A:22 A4:53:85:21:1A:22 hidraw8) Traceback (most recent call last): File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main return _run_code(code, main_globals, None, File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code exec(code, run_globals) File “/home/carlos/.local/lib/python3.10/site-packages/ds4drv/main.py”, line 222, in <module> main() File “/home/carlos/.local/lib/python3.10/site-packages/ds4drv/main.py”, line 219, in main thread.controller.setup_device(device) File “/home/carlos/.local/lib/python3.10/site-packages/ds4drv/main.py”, line 79, in setup_device self.device.set_led(*self.options.led) File “/home/carlos/.local/lib/python3.10/site-packages/ds4drv/device.py”, line 98, in set_led self._control() File “/home/carlos/.local/lib/python3.10/site-packages/ds4drv/device.py”, line 87, in _control self.control(led_red=self._led[0], led_green=self._led[1], File “/home/carlos/.local/lib/python3.10/site-packages/ds4drv/device.py”, line 148, in control self.write_report(report_id, pkt) File “/home/carlos/.local/lib/python3.10/site-packages/ds4drv/backends/hidraw.py”, line 67, in write_report self.fd.write(hid + data) TimeoutError: [Errno 110] Connection timed out
my specification linux mint 21 python 3.10 Kernel: 5.15.0-46