Live Chat Software by Kayako |
XPForce on Linux
Posted by Site Admin on 17 January 2015 11:57 AM
|
||||
XPForce is coming to Linux!The plugin adds force-feedback support to X-Plane 9 and higher and will soon be available for Linux - despite the current problems with Linux and force-feedback drivers! If you would like to be involved in pre-release testing then please contact us at support@fsmissioneditor.com . InstallationThe plugin itself is very easy to install. Simply download the zip file and extract it to your "X-Plane/Resources/plugins" folder. Start X-Plane and the plugin will be picked up automatically. Supported ControllersAt present the Linux version of XPForce is experimental, given that the underlying drivers are very limited.
If it's any consolation, Mac support for force-enabled controllers is even worse! Linux SetupPreparing the Linux system to work properly with force-feedback joysticks is considerably more complex than in Windows, where it is ready to use as soon as it is plugged in. To send force-feedback commands to the stick, a special filed called a "device node" must be set to read-write To do this, you need to know the name of the device. Unfortunately this name can change frequently, and the read-write setting can be lost if you unplug the joystick or reboot. Your Linux distribution may set all this up for you. Find your joystick's device nodeAll of the following commands should be run as the root user. The method for doing this varies between Linux distributions, but will typically be "sudo" or "su -c". # lsinput | more This will give you lots of text on screen depending on how many input devices you have. You need to find the one that matches your joystick. The example below shows the entry for the Microsoft Force Feedback 2: /dev/input/event4 The device node for this joystick is "/dev/input/event4". This may change on reboot, or if you unplug the joystick! Test the Linux kernel force-feedback supportAgain as root, run the following command to test the forces on this device. Use the correct device node name that you found. # fftest /dev/input/event4 If the joystick is supported in Linux, you will get the following text displayed: Device /dev/input/event4 opened Note the "OK" messages after "Uploading effect". If the Linux joystick driver is broken, you will instead get "Error: Function not implemented". In current Linux kernels, the driver for the Microsoft Sidewinder Force Feedback 2 is broken. However, I have created a kernel patch which can be used to fix this driver, and will hopefully make it into the Linux kernel soon. Please see the "Patching Linux to support Force Feedback" page for instructions. Enable force-feedback support for non-root usersAs a non-root user, try the "fftest" program again. If you still get the "OK" messages and the forces work then you are ready to start X-Plane! If you get "Open device file: Permission denied", then there are more steps you need to follow. Every time a new device is plugged in, including when you reboot, it is set up automatically by Linux. If you get "Permission denied" as a normal user then Linux is not setting it up correctly. To fix this, you need to add uDev rules to force the joystick to be set up as read-write for all users. Again using the device node name you found, and as root, use this command to find the joystick's manufacturer and product codes: # udevadm info -an /dev/input/event4 | grep -E "idVendor|idProduct" | head -2 ATTRS{idVendor}=="045e" Now create a new file in /etc/udev/rules.d called "99-XPlane_Joystick.rules" . You will need to be root to do this. Edit the file to contain the following line, changing the codes for "idVendor" and "idProduct" to match the ones printed by udevadm. KERNEL=="event*", ATTRS{idProduct}=="001b", ATTRS{idVendor}=="045e", MODE="0666" Save the file, then unplug and reconnect the joystick. Re-run the steps above to find the device node since it may now be different. Re-run fftest using the new device node name. | ||||
|