Linux Support

Ask here if you experience technical problems with X4: Foundations.

Moderator: Moderators for English X Forum

User avatar
PGeyer-Ego
EGOSOFT
EGOSOFT
Posts: 56
Joined: Thu, 9. Jun 22, 14:37
x4

Re: Linux Support (Beta)

Post by PGeyer-Ego »

Schiffmeister13 wrote: Fri, 6. Sep 24, 18:33 "The guid is supposed to be the same for all joysticks of a certain type. If X4 relies on them being different, that's a bug in X4."
A brief look into it suggests that yes, the GUID in SDL is identifying the class of joystick, and not the joystick itself. In most setups this is not an issue as even with dedicated HOSAS setups, as the sticks identify differently.

Additional to the GUID, there is also an identifier, so we could differentiate between the two sticks, but this is only unique within the session, and it's not guaranteed that this will be maintained between play sessions, and certainly will change if you unplug the device and plug it in again, which would mean that your mapping might change left-to-right between sessions and you would always have to check every time you start the game if it's kept the sticks the same way around.

I will look into whether there's anything we can do to fix this, but it is a bit frustrating that a "Joystick Globally Unique Identifier" doesn't allow us to globally identify a unique joystick, but just identify its model ;)
User avatar
beko
Posts: 81
Joined: Thu, 11. Jun 20, 21:14
x4

Re: Linux Support (Beta)

Post by beko »

PGeyer-Ego wrote: Mon, 9. Sep 24, 10:03 I will look into whether there's anything we can do to fix this, but it is a bit frustrating that a "Joystick Globally Unique Identifier" doesn't allow us to globally identify a unique joystick, but just identify its model ;)
Other games suffer from the same problem when it comes to HOSAS. A common solution is to enumerate internally and call it a day. People learn really fast to always plug into the same port from here.

Some also offer a quick swap command. SC for example has a swap command that can be used on the ingame console: "pp_Swapdevices joystick 1 2"
User avatar
beko
Posts: 81
Joined: Thu, 11. Jun 20, 21:14
x4

Re: Saitek Pro Flight Pedals No Longer Detected by X4

Post by beko »

S3nt1n3l wrote: Sun, 8. Sep 24, 17:06 /dev/input/js0 - Saitek X52 Pro (Accepts inputs and is detected by the game)
/dev/input/js1 - Saitek Pro Combat Rudder Flight peddles (Accepts input, not detected by the game)
/dev/input/js3 - G13 Joystick (Not accepting input, never has, not detected by the game) I use User space driver to get the keys to work.
[...]
Is there a game log I can enable to get some diagnistic info?
That should really show up as described here: https://wiki.egosoft.com:1337/X4%20Foun ... 20Options/.

I can also confirm that several joysticks are supported on Linux because I use this too so this sounds a lot like some sort of bug of X4 to me.
User avatar
PGeyer-Ego
EGOSOFT
EGOSOFT
Posts: 56
Joined: Thu, 9. Jun 22, 14:37
x4

Re: Saitek Pro Flight Pedals No Longer Detected by X4

Post by PGeyer-Ego »

S3nt1n3l wrote: Sun, 1. Sep 24, 19:44 Is any one experiencing a similar issue or be able to point me in the right direction please?
I will see if we can get my hands on the pedals to test. I do not know of anything in game that would have broken in your upgrade from 22.04 to 24.04, especially as we bundle SDL with the game. Assuming you're using the steam version, could I ask you to maybe go back to an older version of the game (under 'Betas' in steam) to check that it is definitely an OS upgrade and not something we've done in the game which has changed.

Thanks
PG
S3nt1n3l
Posts: 5
Joined: Sun, 1. Sep 24, 18:57

Re: Saitek Pro Flight Pedals No Longer Detected by X4

Post by S3nt1n3l »

PGeyer-Ego wrote: Mon, 9. Sep 24, 10:50
S3nt1n3l wrote: Sun, 1. Sep 24, 19:44 Is any one experiencing a similar issue or be able to point me in the right direction please?
I will see if we can get my hands on the pedals to test. I do not know of anything in game that would have broken in your upgrade from 22.04 to 24.04, especially as we bundle SDL with the game. Assuming you're using the steam version, could I ask you to maybe go back to an older version of the game (under 'Betas' in steam) to check that it is definitely an OS upgrade and not something we've done in the game which has changed.

Thanks
PG
I've set the game versions to the following,

7.10 Hotfix 2 (Legacy) - Peddles don't appear, X52 Pro does
7.00 Hotfix 1 (Legacy) - Peddles don't appear, X52 Pro does
6.20 (Legacy) - The UI doesn't show what is detected, so I tried assigning controls. Peddles wouldn't assign, X52 Pro would.

I stopped there as I started playing with v7.00 of the game.

As an extra I thought I would try the following as well,

Unplug/plug the peddles into the USB
Try a different USB port
Power off and Unplug, power back on and plug in
In all cases the peddles didn't want to be detected by the game any more.

It appears it is something with my upgrade that has caused the issue :(
If I get more time I'll have to try a re-install of the OS so I can see if it was something to do with the upgrade or if its something inherant in Kubuntu 24.04.1
--
S3nt1n3l
Always turning, always watching
User avatar
PGeyer-Ego
EGOSOFT
EGOSOFT
Posts: 56
Joined: Thu, 9. Jun 22, 14:37
x4

Re: Linux Support (Beta)

Post by PGeyer-Ego »

Sorry, I should have been clearer. I didn't expect you to check versions back until the beginnings of time. I was just asking for the past couple, around when your update would have been, to clear up if it could have been anything that we'd done. Even if it was an update that broke it, there may be something that we can do to fix it, so I'll look into this if I can get my hands on the pedals to test. Thanks for checking this for me.

PG
S3nt1n3l
Posts: 5
Joined: Sun, 1. Sep 24, 18:57

Re: Linux Support (Beta)

Post by S3nt1n3l »

PGeyer-Ego wrote: Thu, 12. Sep 24, 13:43 Sorry, I should have been clearer. I didn't expect you to check versions back until the beginnings of time. I was just asking for the past couple, around when your update would have been, to clear up if it could have been anything that we'd done. Even if it was an update that broke it, there may be something that we can do to fix it, so I'll look into this if I can get my hands on the pedals to test. Thanks for checking this for me.

PG
Thank you for looking. :)
If you need anything further from me let me know and I'll dig through my system for the information.
--
S3nt1n3l
Always turning, always watching
takoller
Posts: 8
Joined: Sat, 16. Dec 23, 18:51
x4

Updated

Post by takoller »

takoller » Sun, 1. Sep 24, 05:59

I'm really missing this game. :(
S3nt1n3l
Posts: 5
Joined: Sun, 1. Sep 24, 18:57

Re: Saitek Pro Flight Pedals No Longer Detected by X4

Post by S3nt1n3l »

If I get more time I'll have to try a re-install of the OS so I can see if it was something to do with the upgrade or if its something inherant in Kubuntu 24.04.1
Just to let you know I created a live key of Kubuntu 24.0.1 and tried installing Steam, then running X4.
The same issue, the peddles are seen by the OS, but not the game :cry:
--
S3nt1n3l
Always turning, always watching
User avatar
beko
Posts: 81
Joined: Thu, 11. Jun 20, 21:14
x4

Re: Saitek Pro Flight Pedals No Longer Detected by X4

Post by beko »

S3nt1n3l wrote: Mon, 9. Sep 24, 20:47 Unplug/plug the peddles into the USB
Mind telling me the line for the device as it is shown with 'lsusb'?

I don't have the pedals but I can fake some just to cross check if X4 trips on something based on the ids/descriptor.
Fus
Posts: 92
Joined: Sun, 20. Nov 05, 18:37
x4

Re: Linux Support (Beta)

Post by Fus »

I have absolutley no analog response from a Saitek X45 which worked last year sometime but I'm not asking for help as I can dual boot and the stick / throttle works in Space Engineers so it can't be an Endeavour OS problem. It has to be somewhere between Egosoft and maybe Steam itself.
Other than that Beta 7.5 seems good under Win 10,
User avatar
beko
Posts: 81
Joined: Thu, 11. Jun 20, 21:14
x4

Re: Linux Support (Beta)

Post by beko »

I also seem to be missing SOME of my joysticks starting with ~7.10(?) on Steam.

I tracked it down to the libSDL2 in `steamapps/common/X4 Foundations/lib` where I replaced `libSDL2-2.0.so.0` with a symlink to my system's `/lib64/libSDL2-2.0.so.0` which eventually points to `libSDL2-2.0.so.0.2800.5` (Fedora Linux). Now ALL my missing joysticks show up as they did before (and still do with my X4 6.x from GOG.

Image

Edith says: After A LOT of more fiddling with this I can conclude that it is the Steam version only for me that fails for a bunch of my devices even when I go back to X4 6.00. X4's libSDL2 is the same for both but somehow Steam messes with the inputs even without any Controller Overrides enabled. Replacing the libSDL2 prevents Steam from doing that. The Non-Steam version seems to work as well - but it's only available for 7.10 at the moment so make sure your Steam version matches that: https://www.egosoft.com/download/x4/bon ... wnload=630

YMMV.
jojorne
Posts: 867
Joined: Sun, 17. Nov 13, 17:25
x4

Re: Linux Support (Beta)

Post by jojorne »

Is Borderless the same thing as Fullscreen? When I Alt+Tab, the game stop even with:
%command% -nodefaultlog -nocputhrottle -nosoundthrottle -skipintro
aerojet029
Posts: 82
Joined: Tue, 20. Aug 13, 14:36
x4

Re: Linux Support (Beta)

Post by aerojet029 »

I'm sure this has been asked before, but I purchased the game on GoG which does not have a Linux client. It is extremely frustrating not having any sort of update utility. to update the game I have to re-download the entire game installer, each updated DLC file, one by one on the extremely slow connection that GoG provides (usually around ~4 - 6 mbps. )

Is there a better way? is there an updater process available to update the linux version by only downloading the necessary components from GoG?

I'm trying not to say "if only GoG would go out of their way and support our extremely small user base" but man would it be nice.

GoG won't give X4 any sort of cloud save support anymore because of the file size. 100% fair trade for having no DRM. (although you guys provide the DRM free unlock for the steam version so kinda moot here)
CBJ
EGOSOFT
EGOSOFT
Posts: 54194
Joined: Tue, 29. Apr 03, 00:56
x4

Re: Linux Support (Beta)

Post by CBJ »

We'd be delighted if there were a better way, but we have no control over what GoG provides for Linux users and I'm afraid we don't have the resources to do the job for them. Feel free to encourage them. :)
aerojet029
Posts: 82
Joined: Tue, 20. Aug 13, 14:36
x4

Re: Linux Support (Beta)

Post by aerojet029 »

Thank you for the reply. So I wanted to come back and followup on here that the Heroic Game launcher I find is (for me) a perfect solution and using syncthing to backup save games to my NAS. I tried Lutris, but had some weird things happen (most definitely because I'm a Linux noob).
Panos
Posts: 880
Joined: Sat, 25. Oct 08, 00:48
x4

Re: Linux Support (Beta)

Post by Panos »

Guys, is anyone using 7900X3D/7950X3D with Linux?

I want to upgrade from the 5950X, however the game is using all the 16 cores on Linux since 2019 (3900X/3950X/5950X) so I am very reluctant to upgrade to the hybrid X3D chips if is restricted to 8 cores only, while I don't want to lose perf going to 8 core CPU like a 9800X3D.

Anyone?
Panos
Posts: 880
Joined: Sat, 25. Oct 08, 00:48
x4

Re: Linux Support (Beta)

Post by Panos »

aerojet029 wrote: Mon, 30. Dec 24, 17:43 I'm sure this has been asked before, but I purchased the game on GoG which does not have a Linux client. It is extremely frustrating not having any sort of update utility. to update the game I have to re-download the entire game installer, each updated DLC file, one by one on the extremely slow connection that GoG provides (usually around ~4 - 6 mbps. )

Is there a better way? is there an updater process available to update the linux version by only downloading the necessary components from GoG?

I'm trying not to say "if only GoG would go out of their way and support our extremely small user base" but man would it be nice.

GoG won't give X4 any sort of cloud save support anymore because of the file size. 100% fair trade for having no DRM. (although you guys provide the DRM free unlock for the steam version so kinda moot here)
Try Heroic launcher. Connect it to your GOG and set up the PROTON.
Dominus
Posts: 496
Joined: Fri, 26. May 06, 13:06
x4

Re: Linux Support (Beta)

Post by Dominus »

Hi!
Should I ask here or open a new post about instability issues on linux. I can not play more than an hour before my game crashes.
Also what kind of logs should I collect to report?
Denantes mortos que escravos.
Sorry for Bad english. :)
CBJ
EGOSOFT
EGOSOFT
Posts: 54194
Joined: Tue, 29. Apr 03, 00:56
x4

Re: Linux Support (Beta)

Post by CBJ »

You're probably best of starting a new thread. Give us as much information as you can about your system components, driver versions, and so on, and your vulkaninfo output. A link to a savegame might also help.

Return to “X4: Foundations - Technical Support”