FORUM › Forums › Software › CLS2SIM Software › Flight Simulation Software › X-PLANE 9/10/11 › XP11 on Linux
- This topic has 2 replies, 2 voices, and was last updated 2 years ago by
berniyh.
-
AuthorPosts
-
09/05/2019 at 21:11 #1170
berniyh
ParticipantHi,
I’m running X-Plane 11 on Arch Linux, which works fine.
The Brunner as a conventional joystick works fine as well, however, I bought this thing to have FFB.
So I installed the plugin and it shows as an activated plugin in XP11.
I do also understand that in addition, I have to access the joystick via a Windows installation, which I have running on a second PC (in VM, but that shouldn’t matter, there is a network connection to the simulation host).
However, from here on, I’m lost. How can I get this going?
Do I need to connect the joystick via USB to the Windows installation? If so, wouldn’t the input signal be lost in XP11?Apart from that, is there any chance that we might see full Linux support, meaning a port of the CLS2SIM software to Linux?
Or maybe a software that just activates a predefined profile (would work for me as well)?
Are the profiles actually stored in the software or on the joystick itself?Regards
10/04/2021 at 00:16 #2421angelgranadosgonzalez
ParticipantHi,
I use wine (crossover) to run CLS2sim and E2CAN Gateway to communicate the rudder and yoke over ehernet and not over usb and so I run everything fine on linux.
Regards.
15/08/2022 at 16:09 #2823berniyh
ParticipantWell, that was not an option for me. But there is good news, because it’s now working. CLS2Sim is running on Linux (after installing the corresponding .Net version) and you can connect & use the joystick, just like on Windows.
Disclaimer: I strongly dis-recommend running FW update over wine or anything else that could harm your device!
For my test I was using CLS2Sim v5.0.14, because I had it already installed and did not update yet. But nothing I describe is specific to this version, so I expect it to run just the same on the newer versions, although not having it tested (yet).
Regarding wine, I was testing with 7.15 staging, but any of the (later) 7.x versions should work. If unsure, test the latest available.
First thing is that you need to ensure that the user may access the device via hidraw. wine using hidraw is a relatively new way of accessing HID devices where the linux driver is bypassed and the device is accessed directly. To enable the access, create a file /etc/udev/rules.d/73-brunner.rules with the content:
KERNEL=="hidraw*", ATTRS{idVendor}=="25bb", ATTRS{idProduct}=="0092", MODE="0660", TAG+="uaccess"
25bb is the device Vendor (so Brunner), 0092 is the product ID, here for my CLS-E. This one could be different for the yoke or rudder. You can look these up by running lsusb on a terminal.
Then install CLS2Sim in a wine prefix of your choice and afterwards, run wine regedit in this prefix. In the regedit, create an entry in HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/winebus with the name “Enable SDL” as a dword and set it to 0.
This will prevent the SDL backend to be started meaning that the CLS-E will be accessed via hidraw.
Also check the “Start” key in the same folder and ensure it’s not set to 0. (1 or 3 should be fine)After that start up CLS2Sim and it should find the CLS-E device via HID and you should be able to connect to it.
I only did a few checks with some settings (it’s been a while since I fiddled with the profile manager) and I only did a short check with X-Plane.
CLS2Sim is able to connect to X-Plane (with XP11 running as the native version and CLS2Sim via wine) and the joystick seems to work fine in XP11.I’ll be doing more testing over the next approx. 2 weeks, but so far it’s looking very good. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.