Linux Support

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

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.
  • 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).
Failure to provide all this information will make it pretty much impossible for people to help you and may mean that it takes longer for your problem to be identified and hopefully solved. So please don't waste your own time and everyone else's by just posting something like "My game freezes. Help!!!".

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.
xrogaan
Posts: 243
Joined: Tue, 31. May 11, 20:27
x4

Re: Linux Support (Beta)

Post by xrogaan »

CBJ wrote: Mon, 3. Mar 25, 09:04
xrogaan wrote: Sun, 2. Mar 25, 23:08 I downloaded the nosteam binary, and it runs just fine. Except that it doesn't find my profile, which is weird. Though the intro video does take some time (in seconds) to start to play.
It doesn't find your profile because the Steam EXE puts it in a folder that is unique for a given Steam account, while the NoSteam obviously can't do that. See the XWiki for more info.
Well, it's obvious now that you say it :)
CPU: 8-core AMD Ryzen 7 5700X (-MT MCP-); 32GiB ram; GPU: AMD Radeon RX 6600; GNU/Linux Devuan
thedavid
Posts: 263
Joined: Mon, 19. Feb 24, 03:49
x4

Re: Linux Support (Beta)

Post by thedavid »

GOG has been refreshing their installers for Linux over and over. I think they are trying to fix the issue of the game not loading without writing a log file. Does any know what the current state is? Do we still need to write the log file with the latest version?

I want to wait until they get it right before I download a full 20 Plus gigs again.
gmjs
Posts: 10
Joined: Sun, 12. Mar 23, 14:20
x4

Re: Linux Support (Beta)

Post by gmjs »

I did log this issue with GOG. It's a tricky one because GOG states it supports Ubuntu 22.04, but EgoSoft only supports Ubuntu 18.04. I didn't try very hard, but the Ubuntu 18.04 installer didn't boot on my (UEFI) machine (and I only have one machine available with a suitable graphics card) so I settled for testing in Ubuntu 22.04, limiting me to GOG's support. GOG support stated it was being passed on to the relevant team for investigation, and then listed how I could contact EgoSoft.

Maybe just enjoy the game in the meantime :) . I've played 9 hours so far without issue using the workaround.
Running X4 on an AMD Ryzen 5 1600 PC with NVIDIA GTX 1650 graphics under Debian GNU/Linux 12.
sacq
Posts: 6
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Linux Support (Beta)

Post by sacq »

robot_mop wrote: Tue, 25. Feb 25, 00:56
gmjs wrote: Tue, 25. Feb 25, 00:15 Hello. It's a bit of a long shot because I'm not running a supported setup, but I cannot run the latest release of X4 (7.50---80150, English, GOG) on the same machine that ran X4 7.10 HF3---76760 (English, GOG) and wondered if there was anything I could try to get it working.
[...]
I have the same issue. also on gog. Running Arch Linux with a nvidia gtx 1060. Desktop is xfce. 7.10 worked when I tried it a month ago, 7.5 fails to launch with the same symptoms. Unfortunately I already deleted 7.10 off my system. Doesn't list any errors in terminal. just freezes until I kill the process. Kernel : 6.13.4-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC vulkaninfo : https://files.catbox.moe/u7zumz.txt
I"m in the same situation as those folks, but like others here if I add a -logfile argument when running the game, it works fine. I'm specifically using:

./start.sh -logfile /tmp/x4-logfile.txt
xrogaan
Posts: 243
Joined: Tue, 31. May 11, 20:27
x4

Re: Linux Support (Beta)

Post by xrogaan »

I remember dropping a line or two about the UI resetting after alt-tabbing out of the game. Behavior would be the same regardless of the game being windowed of fullscreen. That was somewhat annoying but fine. Now, not only does the UI resets, but the game unpause too. Which is not fine!

Not quite sure what's going on there. Does the game loses track of its state when its window gets resized?
CPU: 8-core AMD Ryzen 7 5700X (-MT MCP-); 32GiB ram; GPU: AMD Radeon RX 6600; GNU/Linux Devuan
CBJ
EGOSOFT
EGOSOFT
Posts: 55385
Joined: Tue, 29. Apr 03, 00:56
x4

Re: Linux Support (Beta)

Post by CBJ »

The UI (and indeed the entire game's graphics handling) has to reset when it loses contact with the display window, because it cannot rely on the window's properties being the same when the window comes back. That is unavoidable. The game itself doesn't "lose track", but the pause being reset may be a side effect of the UI reset, since the UI controls that.

What is more odd is that you see this behaviour a game running in borderless windowed mode rather than full screen mode. This may be a result of odd behaviour from the window manager environment.
xrogaan
Posts: 243
Joined: Tue, 31. May 11, 20:27
x4

Re: Linux Support (Beta)

Post by xrogaan »

CBJ wrote: Tue, 25. Mar 25, 16:31 The UI (and indeed the entire game's graphics handling) has to reset when it loses contact with the display window, because it cannot rely on the window's properties being the same when the window comes back. That is unavoidable. The game itself doesn't "lose track", but the pause being reset may be a side effect of the UI reset, since the UI controls that.

What is more odd is that you see this behaviour a game running in borderless windowed mode rather than full screen mode. This may be a result of odd behaviour from the window manager environment.
Interesting. Out of curiosity, when you test the linux release at egosoft, which desktop environment do you use? I'm currently running KDE/X11 (kwin), without wayland (so nothing "exotic"). Maybe KDE's automatic handling of compositing is interfering?
CPU: 8-core AMD Ryzen 7 5700X (-MT MCP-); 32GiB ram; GPU: AMD Radeon RX 6600; GNU/Linux Devuan
xAix1999
Posts: 50
Joined: Mon, 24. Feb 25, 04:38

Re: Linux Support

Post by xAix1999 »

silly idea but why not send the log file to /dev/null?

maybe something like 2>&1 | tee /dev/null or just /dev/null
robot_mop
Posts: 3
Joined: Tue, 25. Feb 25, 00:39

Re: Linux Support

Post by robot_mop »

I recently switched out my gtx 1060 for an amd 6600. Game launches without having to write the logfile now. Everything else the same, except some system updates. Everyone who reported the same issue was using a Nvidia card.
xAix1999
Posts: 50
Joined: Mon, 24. Feb 25, 04:38

Re: Linux Support

Post by xAix1999 »

so like maybe an error or warning needs to be logged in order to be able to proceed, i'm guessing. probly an if statement looking for a true condition of logging available and so it's an unintended requirement.
User avatar
GameBurrow
Posts: 68
Joined: Sat, 8. Dec 18, 16:48
x4

Re: Linux Support

Post by GameBurrow »

Howdy folks, just recently moved over to linux (at the beginning of the year) and there is something strange I've found with X4.

If I run the native version of X4 - the sounds tend to crack a lot (in video editing world we call this audio clipping, meaning audio hits the limiter), especially the ship engines when I start the travel drive (especially noticeble with Erlking). I can reduce the issue by lowering the game volume and using various easy effects effects to compress or limit the sound, but it only reduces the issue, it will still happen.

Didn't have this issue with the same hardware on windows. This week I've been temporarily running X4 through proton (to test X4 external app mod) and noticed if I run X4 using that, the audio is okay. So the issue seems to be specific to the linux build of the game. Additionally to note, haven't noticed this issue with any other game or program.
ASUS ROG Strix Scar G17 (G733ZW) - Intel i9-12900H - RTX 3070 Ti 8GB (Mobile @ 150W) / RTX 3080 10GB (eGPU via Thunderbolt 3) - 64GB DDR5 - OS: Nobara Linux
xrogaan
Posts: 243
Joined: Tue, 31. May 11, 20:27
x4

Re: Linux Support

Post by xrogaan »

GameBurrow wrote: Fri, 2. May 25, 20:00 Howdy folks, just recently moved over to linux (at the beginning of the year) and there is something strange I've found with X4.

If I run the native version of X4 - the sounds tend to crack a lot (in video editing world we call this audio clipping, meaning audio hits the limiter), especially the ship engines when I start the travel drive (especially noticeble with Erlking). I can reduce the issue by lowering the game volume and using various easy effects effects to compress or limit the sound, but it only reduces the issue, it will still happen.

Didn't have this issue with the same hardware on windows. This week I've been temporarily running X4 through proton (to test X4 external app mod) and noticed if I run X4 using that, the audio is okay. So the issue seems to be specific to the linux build of the game. Additionally to note, haven't noticed this issue with any other game or program.
Sadly, without more information, it's a bit hard to know how to help you. Though it seems like you're running pipewire as your audio framework. The reason being that issue is quite common with it. Could you confirm which audio framework you are using?
CPU: 8-core AMD Ryzen 7 5700X (-MT MCP-); 32GiB ram; GPU: AMD Radeon RX 6600; GNU/Linux Devuan
User avatar
GameBurrow
Posts: 68
Joined: Sat, 8. Dec 18, 16:48
x4

Re: Linux Support

Post by GameBurrow »

xrogaan wrote: Fri, 2. May 25, 22:25
GameBurrow wrote: Fri, 2. May 25, 20:00 Howdy folks, just recently moved over to linux (at the beginning of the year) and there is something strange I've found with X4.

If I run the native version of X4 - the sounds tend to crack a lot (in video editing world we call this audio clipping, meaning audio hits the limiter), especially the ship engines when I start the travel drive (especially noticeble with Erlking). I can reduce the issue by lowering the game volume and using various easy effects effects to compress or limit the sound, but it only reduces the issue, it will still happen.

Didn't have this issue with the same hardware on windows. This week I've been temporarily running X4 through proton (to test X4 external app mod) and noticed if I run X4 using that, the audio is okay. So the issue seems to be specific to the linux build of the game. Additionally to note, haven't noticed this issue with any other game or program.
Sadly, without more information, it's a bit hard to know how to help you. Though it seems like you're running pipewire as your audio framework. The reason being that issue is quite common with it. Could you confirm which audio framework you are using?
Pipewire indeed (added my computer specs and OS into signature also)
ASUS ROG Strix Scar G17 (G733ZW) - Intel i9-12900H - RTX 3070 Ti 8GB (Mobile @ 150W) / RTX 3080 10GB (eGPU via Thunderbolt 3) - 64GB DDR5 - OS: Nobara Linux
xrogaan
Posts: 243
Joined: Tue, 31. May 11, 20:27
x4

Re: Linux Support

Post by xrogaan »

GameBurrow wrote: Fri, 2. May 25, 22:38 Pipewire indeed (added my computer specs and OS into signature also)
I'm neither familiar with Fedora nor Nobara. Crackling with pipewire may be due to a field of possibilities, highly dependent to your configuration and hardware. First make sure you are using the latest version of pipewire and wireplumber (pipewire --version should return a version higher than 1.0). Among other considerations, read this. You may try your luck looking at issues, though it could take you through irrelevant rabbit holes.

I solved my issues by making sure it runs in real time. pipewire and related daemons runs under the pipewire group, which has rt rights through rlimits. IDK how you'd do that with systemd, I just have a bash script with 3 lines.
CPU: 8-core AMD Ryzen 7 5700X (-MT MCP-); 32GiB ram; GPU: AMD Radeon RX 6600; GNU/Linux Devuan
MarStrMind
Posts: 95
Joined: Wed, 12. Mar 25, 12:48
x4

Re: Linux Support

Post by MarStrMind »

Running openSUSE Leap 15.6 with KDE Plasma 5 LTS. X4 itself runs very well on my GPU... for a while. Then it starts to stutter.

I enabled FSR3 in Quality setting, as I have a 1440p screen. Specs are not that important for this post.

However I did have a conversation with ChatGPT and I was informed that FSR3 in general can lead to performance issues under Linux as this technology is focused on Windows, and its frame-generating tech is not fully implemented on the Linux platform. It was recommended to me to use FSR1 instead as it is more stable on Linux.

Is this correct?

Also disabling KWin's desktop effects was recommended - but that I do anyways.
X4 in VR - My guide, reloaded for 2025
User avatar
GameBurrow
Posts: 68
Joined: Sat, 8. Dec 18, 16:48
x4

Re: Linux Support

Post by GameBurrow »

xrogaan wrote: Fri, 2. May 25, 23:27
GameBurrow wrote: Fri, 2. May 25, 22:38 Pipewire indeed (added my computer specs and OS into signature also)
I'm neither familiar with Fedora nor Nobara. Crackling with pipewire may be due to a field of possibilities, highly dependent to your configuration and hardware. First make sure you are using the latest version of pipewire and wireplumber (pipewire --version should return a version higher than 1.0). Among other considerations, read this. You may try your luck looking at issues, though it could take you through irrelevant rabbit holes.

I solved my issues by making sure it runs in real time. pipewire and related daemons runs under the pipewire group, which has rt rights through rlimits. IDK how you'd do that with systemd, I just have a bash script with 3 lines.
Thanks for responding, will take a look. However initial glance tells me, we're off the track. Maybe it's because my writing was a bit misleading. It's not the kind of crackling noise you get due to performance issues. It's the kind that occurs when the audio source is too loud (best usual example is when somebody yells into the microphone etc and you hear the audio getting distorted) - that's the word, it gets distorted not cracks.
ASUS ROG Strix Scar G17 (G733ZW) - Intel i9-12900H - RTX 3070 Ti 8GB (Mobile @ 150W) / RTX 3080 10GB (eGPU via Thunderbolt 3) - 64GB DDR5 - OS: Nobara Linux
User avatar
GameBurrow
Posts: 68
Joined: Sat, 8. Dec 18, 16:48
x4

Re: Linux Support

Post by GameBurrow »

MarStrMind wrote: Tue, 6. May 25, 07:16 I was informed that FSR3 in general can lead to performance issues under Linux as this technology is focused on Windows, and its frame-generating tech is not fully implemented on the Linux platform. It was recommended to me to use FSR1 instead as it is more stable on Linux.

Is this correct?
As far as I know, that is not correct. Also haven't had an issue like that (using NVidia though), have used FSR3 (incl it's framgen) on multiple games, works fine.
ASUS ROG Strix Scar G17 (G733ZW) - Intel i9-12900H - RTX 3070 Ti 8GB (Mobile @ 150W) / RTX 3080 10GB (eGPU via Thunderbolt 3) - 64GB DDR5 - OS: Nobara Linux
xrogaan
Posts: 243
Joined: Tue, 31. May 11, 20:27
x4

Re: Linux Support

Post by xrogaan »

GameBurrow wrote: Wed, 7. May 25, 09:38 Thanks for responding, will take a look. However initial glance tells me, we're off the track. Maybe it's because my writing was a bit misleading. It's not the kind of crackling noise you get due to performance issues. It's the kind that occurs when the audio source is too loud (best usual example is when somebody yells into the microphone etc and you hear the audio getting distorted) - that's the word, it gets distorted not cracks.
It can be a mishandling of the volume of your hardware. See: https://gitlab.freedesktop.org/pipewire ... ssues/4622 and linked merge request.

I found dealing with sound related issues on linux is generally painful. Good luck :)
CPU: 8-core AMD Ryzen 7 5700X (-MT MCP-); 32GiB ram; GPU: AMD Radeon RX 6600; GNU/Linux Devuan
MarStrMind
Posts: 95
Joined: Wed, 12. Mar 25, 12:48
x4

Re: Linux Support

Post by MarStrMind »

GameBurrow wrote: Wed, 7. May 25, 09:54
MarStrMind wrote: Tue, 6. May 25, 07:16 I was informed that FSR3 in general can lead to performance issues under Linux as this technology is focused on Windows, and its frame-generating tech is not fully implemented on the Linux platform. It was recommended to me to use FSR1 instead as it is more stable on Linux.

Is this correct?
As far as I know, that is not correct. Also haven't had an issue like that (using NVidia though), have used FSR3 (incl it's framgen) on multiple games, works fine.

This is what GPT said. And since I switched to FSR1, it is running without issues.
ChatGPT wrote:Yes, exactly — FSR3 (especially the frame generation feature) is not fully functional or officially supported on Linux platforms yet. Here's a bit more detail about why that is:

🔍 Why FSR3 Doesn't Fully Work on Linux:
Frame Generation Requirement:

FSR3 introduces frame generation, which is designed to artificially increase frame rates by generating intermediate frames. This is a feature that's tightly integrated with hardware-level support (like NVIDIA DLSS 3.0 or AMD FSR 3 on supported hardware).

For FSR3 to work properly, the system needs to handle things like motion vectors and temporal data, and it relies on very specific support from drivers and libraries.

Lack of Driver and Compositor Support:

On Linux, the proprietary graphics drivers (especially for NVIDIA and AMD) don't yet fully support the frame generation feature of FSR3.

Many of these driver features (like temporal effects or frame generation) rely heavily on direct integration with the compositor (in this case, KWin for KDE).

Even though FSR 1 and 2 (upscaling versions) are supported through open-source drivers (like Mesa for AMD or NVIDIA's open-source Nouveau driver), FSR3's frame generation is not working reliably with the current Linux Vulkan stack or open-source driver support.

Performance and Stability:

Since the FSR3 frame generation was primarily tested and optimized on Windows with DirectX 12 and Vulkan, it still needs quite a bit of work to be reliably implemented on Linux.

It's currently possible to enable FSR3 through Proton or custom tweaks in some games, but it often leads to unstable performance, input lag, or frame drops, especially in graphically intensive games like X4.
X4 in VR - My guide, reloaded for 2025
xrogaan
Posts: 243
Joined: Tue, 31. May 11, 20:27
x4

Re: Linux Support

Post by xrogaan »

The AMD driver for both windows and linux are effectively using the same FOSS base. GPT is lying to you. Instead of asking a predictive algorithm what words would fit next, how about you do a proper search online? FSR 3 isn't tied to the driver anyway.
CPU: 8-core AMD Ryzen 7 5700X (-MT MCP-); 32GiB ram; GPU: AMD Radeon RX 6600; GNU/Linux Devuan

Return to “X4: Foundations - Technical Support”