Closed Ape closed 8 years ago
Hitting that issue as well on Arch Linux. Can't find a way around it.
Same problem on Manjaro/Archlinux. Maybe the workaround is to get back on the 0.5.0 version of python-evdev, but i don't know how to do on Archlinux.
:+1:
@Ape The problem with that is that ds4drv on install notices that there is a new evdev, and installs it as a depend. I can't see a way to block this from happening, or to force it to use an older installed version. I am sure it is easy enough, but I know nothing about Python, so out of my league.
It looks like the following change to python-evdev broke compatibility with ds4drv. There is now an extra index for absinfo corresponding to the current value for an axis. The new representation used for uinput device creation has a size of 6 while the one made from the data passed by ds4drv has a size of 5. Adding new items at index 1 for each absinfo entry (using 0 for testing) allows ds4drv to work.
https://github.com/gvalkov/python-evdev/commit/62969d7bca43d87799237590a460d4361012225c
Also relevant: https://github.com/gvalkov/python-evdev/blob/master/evdev/device.py#L20
@Ryochan7 Could you send a fixing pull request to ds4drv?
I released version 0.5.1 which works with python-evdev 0.6.0.
Previously
ds4drv
worked correctly withpython-evdev
0.5.0. I upgradedpython-evdev
to version 0.6.0 and nowds4drv
fails on start with this: