question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

can't initialize ds4drv Erno 22

See original GitHub issue

Can 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:closed
  • Created 8 years ago
  • Comments:13

github_iconTop GitHub Comments

4reactions
MrPepperonicommented, Feb 28, 2016

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-177664399 sudo pip install --upgrade git+https://github.com/gvalkov/python-evdev.git@631e2d32d7bdf38e3d7a5c850c9f5869d61e9183

0reactions
IrigoyenCarlosDamiancommented, Sep 1, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix DS4Windows Not Detecting Controller Error - YouTube
Here's how to Fix DS4Windows Not Detecting Controller Error. ... try restarting your device. Your browser can't play this video.
Read more >
My PS4 is getting the "Cannot start PS4" error loop, none of ...
So now I have two options left. Initialize the ps4, or factory reset it. This is what I'm asking about: how much will...
Read more >
Tutorial: RetroPie with DualShock 4 and Bluetooth
To do: – I have to see if running ds4drv in daemon mode is the best option. – More tests. Edited: Step 6:...
Read more >
If Steam doesn't detect your Dualshock PS4 (Ubuntu 18.04 ...
Due to that Steam can't access uinput and create Steam controller device. If you see this error in ~/.steam/error.log. Couldn't initialize ...
Read more >
PrintNormal() Issue 'It is not Initialized' - Stack Overflow
CheckHealth Utility that came with the Epson OPOS ADK results in exactly the same error. When using PrintNormal(PrinterStation.Receipt the exception is 'The ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found