Linux Support
Moderator: Moderators for English X Forum
Forum rules
See full rules at Technical Support Request Rules
Required Information in all Technical Support Requests
Please ensure that you provide the following information for all questions posted in this Technical Support forum.
If you are supplying information that will not conveniently fit into posts in this forum (approx 70,000 character limit per post), in the worst case you can split long text files across 2 consecutive posts, or ideally you can upload the data to a reputable public fileshare site (a few examples are Google Drive, DropBox or PasteBin, etc) but please don't use sites that spam advertising or require registration for downloads. Please use in your post the open public sharing link to your file(s) that will not require any account or registration for others to download.
Note: Support for third party modifications must be provided by the authors of those modifications, and any requests for such support should be posted in the appropriate thread in the Scripts and Modding forum.
See full rules at Technical Support Request Rules
Required Information in all Technical Support Requests
Please ensure that you provide the following information for all questions posted in this Technical Support forum.
- Version and language (e.g. 8.00 Hotfix 3, English, etc.).
- Whether or not your game is modified using any third party scripts or mods (see note below).
- The game start you originally selected for the game in which the problem occurred.
- Exact nature of the problem, where and when it occurs and what you were doing at the time.
- Any possibly relevant changes you have made to your game, system, or software before the issue occurred.
- Where appropriate, additional symptoms, error messages, links to saves, screenshots and crash dump files (see this Wiki entry).
- Your system specifications in the form of a DxDiag report and vulkaninfo (see this Wiki entry).
If you are supplying information that will not conveniently fit into posts in this forum (approx 70,000 character limit per post), in the worst case you can split long text files across 2 consecutive posts, or ideally you can upload the data to a reputable public fileshare site (a few examples are Google Drive, DropBox or PasteBin, etc) but please don't use sites that spam advertising or require registration for downloads. Please use in your post the open public sharing link to your file(s) that will not require any account or registration for others to download.
Note: Support for third party modifications must be provided by the authors of those modifications, and any requests for such support should be posted in the appropriate thread in the Scripts and Modding forum.
-
xAix1999
- Posts: 50
- Joined: Mon, 24. Feb 25, 04:38
Re: Linux Support
whats the axis minimum and maximum?
-
LazyDope
- Posts: 19
- Joined: Thu, 13. Jul 23, 03:48

Re: Linux Support
I tested on Windows with a different joystick (though from the same company) and the issue persisted so it seems like it might just be an issue with how the game handles throttle deadzones in general. If I can fix it in linux then that would be great, but I think it would still merit a separate issue.
-
LazyDope
- Posts: 19
- Joined: Thu, 13. Jul 23, 03:48

Re: Linux Support
0 for forward and 65635 for back, however I believe that evdev normalizes all inputs to -32767 and 32767 which it seems to be doing correctly.
-
xAix1999
- Posts: 50
- Joined: Mon, 24. Feb 25, 04:38
Re: Linux Support
did you happen to change the dead zone settings and restart the game and or possibly your system?
evdev interacts directly with the kernel so i would change settings and reboot.
evdev interacts directly with the kernel so i would change settings and reboot.
-
LazyDope
- Posts: 19
- Joined: Thu, 13. Jul 23, 03:48

Re: Linux Support
I've restarted multiple times since making the changes.xAix1999 wrote: Wed, 21. May 25, 20:51 did you happen to change the dead zone settings and restart the game and or possibly your system?
evdev interacts directly with the kernel so i would change settings and reboot.
-
xAix1999
- Posts: 50
- Joined: Mon, 24. Feb 25, 04:38
Re: Linux Support
set the throttle in the "back" position and then make the changes. i would probably set the minimum to 0 and maximum to 32k and change the dead zone to 0 instead of it probably going to 16k. you will probably need to make an udev rule to make the changes at boot. though the udev rule will probably be a dirty hack type of solution.
-
LazyDope
- Posts: 19
- Joined: Thu, 13. Jul 23, 03:48

Re: Linux Support
I don't think I can change the min/max that evdev reports to X4, nor the values that my throttle reports to evdev, I can only change how evdev maps the throttle's range to evdev's standard range (-32k to 32k). However this did give me an idea, which is if I set the max value in evdev to twice the actual max, then after evdev it maps to exactly in the middle. Now with bidirectional throttle and it works as intended (back = 0 throttle, forward = max throttle, with some deadzone around 0), if a little hacky.xAix1999 wrote: Wed, 21. May 25, 23:43 set the throttle in the "back" position and then make the changes. i would probably set the minimum to 0 and maximum to 32k and change the dead zone to 0 instead of it probably going to 16k. you will probably need to make an udev rule to make the changes at boot. though the udev rule will probably be a dirty hack type of solution.
-
LazyDope
- Posts: 19
- Joined: Thu, 13. Jul 23, 03:48

Re: Linux Support
I also decided that a systemd user service was a lot easier than a udev rule since it'll always be plugged in anyways, so after manually editing the saved calibration file, this is what I ended up with:
Code: Select all
~/.config/evdev-joystick-calibration/ThrustmasterTWCSThrottle.jsonCode: Select all
{"2": {"minimum": 0, "maximum": 131070, "analog": "ABS_Z", "flat": 600}, "5": {"minimum": 0, "maximum": 1023, "analog": "ABS_RZ", "flat": 0}, "7": {"minimum": 0, "maximum": 1023, "analog": "ABS_RUDDER", "flat": 0}, "17": {"minimum": -1, "maximum": 1, "analog": "ABS_HAT0Y", "flat": 0}, "16": {"minimum": -1, "maximum": 1, "analog": "ABS_HAT0X", "flat": 0}, "1": {"minimum": 0, "maximum": 1023, "analog": "ABS_Y", "flat": 32}, "0": {"minimum": 0, "maximum": 1023, "analog": "ABS_X", "flat": 32}}
Code: Select all
~/.config/systemd/user/evdev-joystick-cal.serviceCode: Select all
[Unit]
Description=Load Joystick Calibration for evdev-joystick
After=graphical.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/evdev-joystick-calibration -l
[Install]
WantedBy=default.target
-
xAix1999
- Posts: 50
- Joined: Mon, 24. Feb 25, 04:38
Re: Linux Support
excellent! let me know if it works as intended.
-
LazyDope
- Posts: 19
- Joined: Thu, 13. Jul 23, 03:48

Re: Linux Support
Seems to be, thanks for helping out!
-
RPINerd
- Posts: 129
- Joined: Fri, 8. Mar 19, 20:21

Re: Linux Support
I know insanely general, but anything one can do specifically to help?
I've been running the game on Linux since launch and had nothing but good experiences, would love to just be able to give back in some way
I've been running the game on Linux since launch and had nothing but good experiences, would love to just be able to give back in some way
-
EGO_Aut
- Posts: 2579
- Joined: Mon, 2. Dec 19, 19:40

Re: Linux Support
Installed pop!_os linux, steam and x4
Testrun x4 (after 45min shader post processing) was sucesful!
I want to transfer my saves, searched in - (personal directory) + "ctrl+h" .config - can not find egosofts x4 directory
What am i doing wrong? - Warning im linux-noob
Edit: FOUND
personal directory/.var/app/com,v,,,team/.config/Egosoft/x4/xxnumbersxx/save
Testrun x4 (after 45min shader post processing) was sucesful!
I want to transfer my saves, searched in - (personal directory) + "ctrl+h" .config - can not find egosofts x4 directory
What am i doing wrong? - Warning im linux-noob
Edit: FOUND
personal directory/.var/app/com,v,,,team/.config/Egosoft/x4/xxnumbersxx/save
-
xrogaan
- Posts: 243
- Joined: Tue, 31. May 11, 20:27

Re: Linux Support
Huh, weird. Are you using steam's flatpak?EGO_Aut wrote: Sat, 26. Jul 25, 15:33 Installed pop!_os linux, steam and x4
Testrun x4 (after 45min shader post processing) was sucesful!
I want to transfer my saves, searched in - (personal directory) + "ctrl+h" .config - can not find egosofts x4 directory![]()
What am i doing wrong? - Warning im linux-noob
Edit: FOUND![]()
personal directory/.var/app/com,v,,,team/.config/Egosoft/x4/xxnumbersxx/save
CPU: 8-core AMD Ryzen 7 5700X (-MT MCP-); 32GiB ram; GPU: AMD Radeon RX 6600; GNU/Linux Devuan
-
EGO_Aut
- Posts: 2579
- Joined: Mon, 2. Dec 19, 19:40

Re: Linux Support
I dont know, there was a install next to a steam symbol, and i installed it default without changes.xrogaan wrote: Sat, 26. Jul 25, 19:03Huh, weird. Are you using steam's flatpak?EGO_Aut wrote: Sat, 26. Jul 25, 15:33 Installed pop!_os linux, steam and x4
Testrun x4 (after 45min shader post processing) was sucesful!
I want to transfer my saves, searched in - (personal directory) + "ctrl+h" .config - can not find egosofts x4 directory![]()
What am i doing wrong? - Warning im linux-noob
Edit: FOUND![]()
personal directory/.var/app/com,v,,,team/.config/Egosoft/x4/xxnumbersxx/save
BTW: I installed X4 and an old Medival II game.
X4 starts and runs fine, i appreciate 10-15 % more (old win10: ~20 fps vs linux: ~25 fps without graphic problems). I am happy
But i did not get Medival II started, although there is a "start" in the steam app for this game
-
fallenwizard
- Posts: 635
- Joined: Tue, 13. Apr 10, 20:03

Re: Linux Support
Would it be possible to upgrade the used SDL version on Egosoft's side?
Xorg is on the way out and X4 doesn't start with launch option on Steam
Some people experienced a performance gain in other games because you wouldn't have to go through xwayland first. And X4 is pretty cpu bound and it could help a bit in late game
I personally tried to replace the SDL .so files in the lib folder but it still doesn't work with said launch option while xwayland works
Xorg is on the way out and X4 doesn't start with
Code: Select all
SDL_VIDEODRIVER=wayland %command%Some people experienced a performance gain in other games because you wouldn't have to go through xwayland first. And X4 is pretty cpu bound and it could help a bit in late game
I personally tried to replace the SDL .so files in the lib folder but it still doesn't work with said launch option while xwayland works
-
taronas
- Posts: 376
- Joined: Tue, 26. Aug 03, 20:31

Re: Linux Support
I'm back in X4 after long pause. I'm now running Linux (EndeavourOS) on PC with 32GB RAM with an Nvidia GPU 12GB VRAM, KDE, Wayland.
Did a long session yesterday and after some (?) hours I got stutter in some places and at some point everything slowed down. Not just the Game but the whole system. I barely managed to fire up btop and there I could see that the system was out of RAM since the X4 process had grabbed all that was left.
Anybody else seeing this?
Did a long session yesterday and after some (?) hours I got stutter in some places and at some point everything slowed down. Not just the Game but the whole system. I barely managed to fire up btop and there I could see that the system was out of RAM since the X4 process had grabbed all that was left.
Anybody else seeing this?
-
xrogaan
- Posts: 243
- Joined: Tue, 31. May 11, 20:27

Re: Linux Support
Is it with 8.0? Please post your system specs (kernel version, steam, etc). A hw-probe would be best: https://linux-hardware.org/?view=howtotaronas wrote: Fri, 12. Sep 25, 18:11 I'm back in X4 after long pause. I'm now running Linux (EndeavourOS) on PC with 32GB RAM with an Nvidia GPU 12GB VRAM, KDE, Wayland.
Did a long session yesterday and after some (?) hours I got stutter in some places and at some point everything slowed down. Not just the Game but the whole system. I barely managed to fire up btop and there I could see that the system was out of RAM since the X4 process had grabbed all that was left.
Anybody else seeing this?
CPU: 8-core AMD Ryzen 7 5700X (-MT MCP-); 32GiB ram; GPU: AMD Radeon RX 6600; GNU/Linux Devuan
-
taronas
- Posts: 376
- Joined: Tue, 26. Aug 03, 20:31

Re: Linux Support
Yes, 8.0xrogaan wrote: Sat, 13. Sep 25, 09:11 Is it with 8.0? Please post your system specs (kernel version, steam, etc). A hw-probe would be best: https://linux-hardware.org/?view=howto
https://linux-hardware.org/?probe=7f0e2e660b
-
xrogaan
- Posts: 243
- Joined: Tue, 31. May 11, 20:27

Re: Linux Support
Your sda seems to be slowly dying.taronas wrote: Sat, 13. Sep 25, 21:53Yes, 8.0xrogaan wrote: Sat, 13. Sep 25, 09:11 Is it with 8.0? Please post your system specs (kernel version, steam, etc). A hw-probe would be best: https://linux-hardware.org/?view=howto
https://linux-hardware.org/?probe=7f0e2e660b
Barring faulty memory (which you can test with memtest86+ (for endeavourOS and archlinux, it seems you need memtest86-efi)) it looks like a memory leak. I haven't tested 8.0 yet myself yet, so I can't tell if it's a general issue.
You should do several things:
- Test your ram with memtest86+. Software runs on an infinite loop and will keep testing until you tell it to stop, only one pass is required.
- Make sure you can reproduce the leak. Determine if is it save game related, or if it happens regardless of what you do or how you start a game
- Post your findings in a new topic in this forum, include your system info and a save game if relevant.
CPU: 8-core AMD Ryzen 7 5700X (-MT MCP-); 32GiB ram; GPU: AMD Radeon RX 6600; GNU/Linux Devuan
