Trine 2

Trine 2

Voir les stats:
XInput controller issue on Linux
Hey all,

I have a controller problem with Trine: Enhanced Edition and Trine 2 on Linux. My Logitech Gamepad F310 (Xbox 360 controller compatible) has a strange trigger holding issue which is also present for Logitech Gamepad F510. I found some XInput and libSDL related clues. There is a workaround for the issue; using xboxdrv:

https://steamcommunity.com/app/221410/discussions/0/846939071309442148/

metal revolution a écrit :
Sorry for necromancy. I confirm that this problem still persists on Ubuntu Mate 17.04 x64 as June 2017:

Eric a écrit :
I have a Logitech Gamepad F310 which shows up as a generic xbox controller. It mostly works, except that the game is convinced that one of the triggers is being held down constantly, and all the right joystick axes were reversed by default.

The XInput/DirectInput controller, Logitech Gamepad F310 does show up as Logitech Gamepad F310 in XInput mode; the controls are mapped mostly correctly but triggers kept being held down and right joystick axes are reversed. Right joystick axes can be remapped correctly but trigger hold down issue remains. Interestingly enough, when F310 is set to DirectInput mode via controller's switch, the controller shows up as Logitech Logitech Dual Action; all the controls are incorrectly mapped but can be remapped correctly and there is no trigger holding problem. Same goes with another controller, Logitech Cordless RumblePad 2 which is DirectInput only; incorrectly mapped but can be remapped correctly and there is no trigger holding problem.

That might be a libSDL related XInput problem which is caused by out of dated libSDL version: v1.3. libSDL 1.3 is an obsolete version which is discontinued. Most GNU/Linux distros use v2.0 nowadays; old distros relied on v1.2. Upgrading game's libSDL would solve the issue.


Ninoslayer a écrit :
Thank you Benjamin with your code piece i got my logitech f310 working probably all gamepads works with this command. I wrote here how i do :
sudo xboxdrv --type xbox360 --device-by-path 002:004 --mimic-xpad
with this command I got all my axis working correctly with out --mimic-xpad they don't work correctly. --device-by-path par is BUS:DEVICE that you got from lsusb command from terminal. For example:
lsusb
Bus 002 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver

This is my mouse BUS=002 Device=003
These number changes computer to computer.

This solved my issue! I needed to quit the game and Steam client. Then installed xboxdrv and run it with following command.

sudo apt-get install xboxdrv sudo xboxdrv --type xbox360 --device-by-path 001:013 --mimic-xpad --detach-kernel-driver --silent

Now, F310 (in XInput mode) is detected as Microsoft X-Box 360 pad and everything is mapped correctly, plus no holding trigger problem. BUT, I shouldn't rely on a third party tool which requires sudo command to function.

My system information:
https://pastebin.com/8EKkRKLb

Thanks, regards.
Dernière modification de TAW|REA; 27 juin 2017 à 17h11
< >
Affichage des commentaires 1 à 3 sur 3
I have the same exact problem using my Xbox One Controller in Trine 2 in Linux Mint 19, so it is still an issue in linux, it is very frustrating because I just wanted to play the game
MarjutFB  [dév.] 21 aout 2018 à 1h58 
X5-176 a écrit :
I have the same exact problem using my Xbox One Controller in Trine 2 in Linux Mint 19, so it is still an issue in linux, it is very frustrating because I just wanted to play the game
Did you try the workaround above? :)

Unfortunately no other clues from us though, but hopefully you'll get it to work!
X5-176 a écrit :
I have the same exact problem using my Xbox One Controller in Trine 2 in Linux Mint 19, so it is still an issue in linux, it is very frustrating because I just wanted to play the game

First of all, check Steam client's controller settings; enable Xbox and Generic gamepad support. If that doesn't solve your issue, quit Steam client and install xboxdrv:

sudo apt-get install xboxdrv

Find device path with following command

lsusb

For example, Bus 001 Device 006: ID 046d:c21d Logitech, Inc. F310 Gamepad [XInput Mode] stands for 001:006. Then adapt it to following command;

sudo xboxdrv --type xbox360 --device-by-path 001:006 --mimic-xpad --detach-kernel-driver --silent

Restart Steam and launch the game.
Dernière modification de TAW|REA; 21 aout 2018 à 3h45
< >
Affichage des commentaires 1 à 3 sur 3
Par page : 1530 50

Posté le 27 juin 2017 à 11h39
Messages : 3