It has been a couple of years (which means 4 or 5 Fedora releases ago) since I did this, but I used to be able to play Xonotic using my Xbox 360 Wireless controller. Now I cannot get the controller to work properly in F32 (it works in Windows 10 so I know the hardware is OK).
This most likely has something to do with the move from xboxdrv (which is no longer available in Fedora) to xpad kernel driver, and/or the move from the old js driver to evdev. The xpad driver comes with the current kernel, but what I cannot figure out is how to calibrate the controller. If I run Xontic with the controller connected, the game world just spins counterclockwise. This is a symptom of the controller needing to be calibrated, but I don't know how to do it. I tried using "jscal", but if I run "jscal -c" to calibrate it, it appears to work but doesn't. I can immediately run "jscal -t" and it will say it is not calibrated, and running "jstest" also shows it is not calibrated (several of the axes are not centered, i.e. show nonzero values in jstest).
I attempted to download and compile xboxdrv, but it does not work due to Python 2 vs. 3 incompatibilities, and it doesn't look like any work has been done on xboxdrv in quite some time. If I try to make it, I get this:
root@snowcrash xboxdrv-linux-0.8.8]# make scons scons: Reading SConscript files ... File "/local/src/xboxdrv-linux-0.8.8/SConstruct", line 34
print target
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(target)?
make: *** [Makefile:24: xboxdrv] Error 2
Certainly looks like Python version incompatibility.
Can anybody point me to information on how to use an Xbox 360 controller on F32, or how to calibrate it when using the xpad driver? I have done a lot of Googling, but most of the articles I found mention things like "apt-get install xboxdrv", showing they were written for Ubuntu rather than Fedora and are wanting to use the xboxdrv driver.
Thank you, --Greg
On Sat, 2020-07-25 at 12:19 -0600, Greg Woods wrote:
does not work due to Python 2 vs. 3 incompatibilities
I'm completely unfamiliar with Python. But, has anyone made a 2 to 3 scripting converter?
I would have thought there'd be a need for that. And *it's* the computer, *it* should do the hard work.
On 2020-07-26 13:41, Tim via users wrote:
On Sat, 2020-07-25 at 12:19 -0600, Greg Woods wrote:
does not work due to Python 2 vs. 3 incompatibilities
I'm completely unfamiliar with Python. But, has anyone made a 2 to 3 scripting converter?
I would have thought there'd be a need for that. And *it's* the computer, *it* should do the hard work.
Too know nothing about python. But I can use google. :-)
I don't know if this would satisfy the needs of everyone. But, it could be enough for general use.
https://www.pythonconverter.com/
and even
https://docs.python.org/3.0/library/2to3.html
egreshko@meimei ~]$ dnf whatprovides 2to3
python3-devel-3.8.3-2.fc32.x86_64 : Libraries and header files needed for Python : development Repo : updates Matched from: Provide : 2to3 = 3.8.3-2.fc32
Sat, 25 Jul 2020 12:19:15 -0600 Greg Woods greg@gregandeva.net:
I attempted to download and compile xboxdrv, but it does not work due to Python 2 vs. 3 incompatibilities, and it doesn't look like any work has been done on xboxdrv in quite some time. If I try to make it, I get this:
root@snowcrash xboxdrv-linux-0.8.8]# make scons scons: Reading SConscript files ... File "/local/src/xboxdrv-linux-0.8.8/SConstruct", line 34
print target ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(target)?
make: *** [Makefile:24: xboxdrv] Error 2
Certainly looks like Python version incompatibility.
Print is super easy to fix: - print target + print(target)
I bet there is about 100 other thing to fix. As Ed suggested, 2to3 shoud handle prints and other obvious problems, but it do not handle missing dependencies, which are a problem with migrating to Python 3.
On Sun, 2020-07-26 at 15:11 +0930, Tim via users wrote:
On Sat, 2020-07-25 at 12:19 -0600, Greg Woods wrote:
does not work due to Python 2 vs. 3 incompatibilities
I'm completely unfamiliar with Python. But, has anyone made a 2 to 3 scripting converter?
I would have thought there'd be a need for that. And *it's* the computer, *it* should do the hard work.
https://docs.python.org/3/library/2to3.html?highlight=append
It's not exactly "fire and forget". You still have to do some work.
poc
Sorry for CC-ing you, Greg Woods, but I must have been missing this thread nearly a year ago.
On Sat, Jul 25, 2020 at 12:19:15PM -0600, Greg Woods wrote:
It has been a couple of years (which means 4 or 5 Fedora releases ago) since I did this, but I used to be able to play Xonotic using my Xbox 360 Wireless controller. Now I cannot get the controller to work properly in F32 (it works in Windows 10 so I know the hardware is OK).
This most likely has something to do with the move from xboxdrv (which is no longer available in Fedora) to xpad kernel driver, and/or the move from the old js driver to evdev. [ ..... ]
Still there, tho' not in the standard Fedora archives, it seems: https://copr.fedorainfracloud.org/coprs/petrb/xboxdrv/
According to my "dnf history list" I used this repo at least from last November, then on F32, if I see this correctly. And right now also on F33 it seems to work without any issues that I'd knew of.
See right-hand sidebar on that copr page for a quick install.
Hoping it helps!
Wolfgang