{"action":"created","issue":{"url":"https://api.github.com/repos/chrippa/ds4drv/issues/66","repository_url":"https://api.github.com/repos/chrippa/ds4drv","labels_url":"https://api.github.com/repos/chrippa/ds4drv/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/chrippa/ds4drv/issues/66/comments","events_url":"https://api.github.com/repos/chrippa/ds4drv/issues/66/events","html_url":"https://github.com/chrippa/ds4drv/issues/66","id":134643267,"number":66,"title":"can't initialize ds4drv Erno 22","user":{"login":"invalidtruck","id":11415241,"avatar_url":"https://avatars.githubusercontent.com/u/11415241?v=3","gravatar_id":"","url":"https://api.github.com/users/invalidtruck","html_url":"https://github.com/invalidtruck","followers_url":"https://api.github.com/users/invalidtruck/followers","following_url":"https://api.github.com/users/invalidtruck/following{/other_user}","gists_url":"https://api.github.com/users/invalidtruck/gists{/gist_id}","starred_url":"https://api.github.com/users/invalidtruck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/invalidtruck/subscriptions","organizations_url":"https://api.github.com/users/invalidtruck/orgs","repos_url":"https://api.github.com/users/invalidtruck/repos","events_url":"https://api.github.com/users/invalidtruck/events{/privacy}","received_events_url":"https://api.github.com/users/invalidtruck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-18T17:29:25Z","updated_at":"2016-02-28T13:48:33Z","closed_at":null,"body":"Can someone tell me how to fix?\r\n\r\n`$ ds4drv\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/ds4drv\", line 9, in <module>\r\n    load_entry_point('ds4drv==0.5.0', 'console_scripts', 'ds4drv')()\r\n  File \"build/bdist.linux-x86_64/egg/ds4drv/__main__.py\", line 151, in main\r\n  File \"build/bdist.linux-x86_64/egg/ds4drv/__main__.py\", line 120, in create_controller_thread\r\n  File \"build/bdist.linux-x86_64/egg/ds4drv/__main__.py\", line 35, in __init__\r\n  File \"build/bdist.linux-x86_64/egg/ds4drv/__main__.py\", line 93, in load_options\r\n  File \"build/bdist.linux-x86_64/egg/ds4drv/__main__.py\", line 38, in fire_event\r\n  File \"build/bdist.linux-x86_64/egg/ds4drv/eventloop.py\", line 86, in fire_event\r\n  File \"build/bdist.linux-x86_64/egg/ds4drv/eventloop.py\", line 92, in process_events\r\n  File \"build/bdist.linux-x86_64/egg/ds4drv/actions/input.py\", line 79, in load_options\r\n  File \"build/bdist.linux-x86_64/egg/ds4drv/uinput.py\", line 425, in create_uinput_device\r\n  File \"build/bdist.linux-x86_64/egg/ds4drv/uinput.py\", line 234, in __init__\r\n  File \"build/bdist.linux-x86_64/egg/ds4drv/uinput.py\", line 290, in create_device\r\n  File \"/usr/local/lib/python2.7/dist-packages/evdev/uinput.py\", line 107, in __init__\r\n    _uinput.create(self.fd, name, vendor, product, version, bustype, absinfo)\r\nIOError: [Errno 22] Invalid argument\r\n`"},"comment":{"url":"https://api.github.com/repos/chrippa/ds4drv/issues/comments/189875102","html_url":"https://github.com/chrippa/ds4drv/issues/66#issuecomment-189875102","issue_url":"https://api.github.com/repos/chrippa/ds4drv/issues/66","id":189875102,"user":{"login":"MrPepperoni","id":5729371,"avatar_url":"https://avatars.githubusercontent.com/u/5729371?v=3","gravatar_id":"","url":"https://api.github.com/users/MrPepperoni","html_url":"https://github.com/MrPepperoni","followers_url":"https://api.github.com/users/MrPepperoni/followers","following_url":"https://api.github.com/users/MrPepperoni/following{/other_user}","gists_url":"https://api.github.com/users/MrPepperoni/gists{/gist_id}","starred_url":"https://api.github.com/users/MrPepperoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrPepperoni/subscriptions","organizations_url":"https://api.github.com/users/MrPepperoni/orgs","repos_url":"https://api.github.com/users/MrPepperoni/repos","events_url":"https://api.github.com/users/MrPepperoni/events{/privacy}","received_events_url":"https://api.github.com/users/MrPepperoni/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T13:48:33Z","updated_at":"2016-02-28T13:48:33Z","body":"Not a fix, but a workaround, that solved the issue for me:\r\ndowngrade evdev to 0.5.0\r\n`sudo pip install evdev==0.5.0`\r\nif you have a kernel version >= 4.4.0, apply the patch described here: https://github.com/gvalkov/python-evdev/issues/43#issuecomment-177664399\r\n`sudo pip install --upgrade git+https://github.com/gvalkov/python-evdev.git@631e2d32d7bdf38e3d7a5c850c9f5869d61e9183`"}}