Linux Support

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

Moderator: Moderators for English X Forum

Mahi Ma
Posts: 76
Joined: Mon, 16. Mar 15, 14:10
x4

Re: Linux Support (Beta)

Post by Mahi Ma »

Presentable Surfaces:
=====================
GPU id : 0 (AMD RADV VEGA10 (LLVM 7.0.1))
Surface type : VK_KHR_xcb_surface
amdgpu 4022272 28
chash 16384 1 amdgpu
amd_iommu_v2 20480 1 amdgpu
gpu_sched 36864 1 amdgpu
ttm 114688 1 amdgpu
drm_kms_helper 208896 1 amdgpu
drm 499712 20 gpu_sched,drm_kms_helper,amdgpu,ttm
i2c_algo_bit 16384 2 igb,amdgpu
The only difference I see is that you're on LLVM 8
edmondo
Posts: 14
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Linux Support (Beta)

Post by edmondo »

Mahi Ma wrote: Wed, 6. Mar 19, 21:52
Presentable Surfaces:
=====================
GPU id : 0 (AMD RADV VEGA10 (LLVM 7.0.1))
Surface type : VK_KHR_xcb_surface
The only difference I see is that you're on LLVM 8
Yes, LLVM 8 seems to help a lot with the stability with radv on Vega. The are known bugs in LLVM 7.0.1 that causes GPU hangs.
Mahi Ma
Posts: 76
Joined: Mon, 16. Mar 15, 14:10
x4

Re: Linux Support (Beta)

Post by Mahi Ma »

edmondo wrote: Wed, 6. Mar 19, 22:05
Mahi Ma wrote: Wed, 6. Mar 19, 21:52
Presentable Surfaces:
=====================
GPU id : 0 (AMD RADV VEGA10 (LLVM 7.0.1))
Surface type : VK_KHR_xcb_surface
The only difference I see is that you're on LLVM 8
Yes, LLVM 8 seems to help a lot with the stability with radv on Vega. The are known bugs in LLVM 7.0.1 that causes GPU hangs.
Tested mesa-git with llvm9. Exact same issue. And it's not like that any other game had any issues with my GPU..
I hear the music after the menu but the whole screen is pixel salad of large colored pixels. When I move the mouse there seems to be a quadratic pattern where the mouse is supposed to be. Only chance to recover from that is to restart X. Killing X4 does not save the screen.

X= Xorg
X4= The Egosoft thing
andrewpc
Posts: 23
Joined: Sun, 27. Jan 19, 19:11
x4

Re: Linux Support (Beta)

Post by andrewpc »

Have you tried setting RADV_DEBUG=nodcc environment variable ?
Mahi Ma wrote: Wed, 6. Mar 19, 22:10
edmondo wrote: Wed, 6. Mar 19, 22:05
Mahi Ma wrote: Wed, 6. Mar 19, 21:52

The only difference I see is that you're on LLVM 8
Yes, LLVM 8 seems to help a lot with the stability with radv on Vega. The are known bugs in LLVM 7.0.1 that causes GPU hangs.
Tested mesa-git with llvm9. Exact same issue. And it's not like that any other game had any issues with my GPU..
I hear the music after the menu but the whole screen is pixel salad of large colored pixels. When I move the mouse there seems to be a quadratic pattern where the mouse is supposed to be. Only chance to recover from that is to restart X. Killing X4 does not save the screen.

X= Xorg
X4= The Egosoft thing
Mahi Ma
Posts: 76
Joined: Mon, 16. Mar 15, 14:10
x4

Re: Linux Support (Beta)

Post by Mahi Ma »

andrewpc wrote: Wed, 6. Mar 19, 22:25 Have you tried setting RADV_DEBUG=nodcc environment variable ?
Yes - but with a TYPO!!!
THank you so much! Works!
Aron
Posts: 101
Joined: Wed, 17. Dec 03, 05:51
x4

Re: Linux Support (Beta)

Post by Aron »

I'm installing now! I just saw the news (a bit late).
edmondo
Posts: 14
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Linux Support (Beta)

Post by edmondo »

Mahi Ma wrote: Wed, 6. Mar 19, 22:28
andrewpc wrote: Wed, 6. Mar 19, 22:25 Have you tried setting RADV_DEBUG=nodcc environment variable ?
Yes - but with a TYPO!!!
THank you so much! Works!
Samuel is looking into it and it putting this patch into mesa as a workaround:
https://lists.freedesktop.org/archives/ ... 16251.html
hakzsam
Posts: 6
Joined: Fri, 1. Mar 19, 17:58

Re: Linux Support (Beta)

Post by hakzsam »

Can you guys try this patch https://patchwork.freedesktop.org/patch ... 7689&rev=1 ?
It works on my side but it would nice if someone can confirm. If so, then the workaround I posted yesterday isn't needed. :)
apcolvin
Posts: 4
Joined: Sun, 15. Mar 15, 20:17

Re: Linux Support (Beta)

Post by apcolvin »

[quote=hakzsam post_id=4852775 time=1551955406 user_id=533965]
Can you guys try this patch https://patchwork.freedesktop.org/patch ... 7689&rev=1 ?
It works on my side but it would nice if someone can confirm. If so, then the workaround I posted yesterday isn't needed. :)
[/quote]

I will compile over the weekend to test it for you - have to work out what is needed for a build environment to compile it all hence the weekend.

Thanks for the efforts to fix this - it is very much appreciated
Aron
Posts: 101
Joined: Wed, 17. Dec 03, 05:51
x4

Re: Linux Support (Beta)

Post by Aron »

This might have been reported already, but my joystick (Logitech Extreme 3D Pro) only works partially in the game.

The game detects the X and Y axis, but not the Z (twist), or the thrust axis.

It also is missing some of the buttons on the joystick and the ones that do work are differently numbered.

The joystick works properly in system settings (Kubuntu 18.04).
radcapricorn
Moderator (English)
Moderator (English)
Posts: 3230
Joined: Mon, 14. Jul 08, 13:07
x4

Re: Linux Support (Beta)

Post by radcapricorn »

Alt-Tabbing out and back leads to loss of V-Sync, and no amount of switching settings (Fullscreen/Borderless, VSync types) can bring it back.
_JD_
Posts: 137
Joined: Wed, 29. Oct 08, 15:05
x4

Re: Linux Support (Beta)

Post by _JD_ »

Aron wrote: Thu, 7. Mar 19, 15:15 This might have been reported already, but my joystick (Logitech Extreme 3D Pro) only works partially in the game.

The game detects the X and Y axis, but not the Z (twist), or the thrust axis.

It also is missing some of the buttons on the joystick and the ones that do work are differently numbered.

The joystick works properly in system settings (Kubuntu 18.04).
I have the very same joystick and no issue on Ubuntu 18.10 (all 4 axis, throttle included, and all 12 buttons). Have you tried also with the version 2.20 beta?
Aron
Posts: 101
Joined: Wed, 17. Dec 03, 05:51
x4

Re: Linux Support (Beta)

Post by Aron »

Where is 2.20 beta? And you can map everything in game? That's strange...
_JD_
Posts: 137
Joined: Wed, 29. Oct 08, 15:05
x4

Re: Linux Support (Beta)

Post by _JD_ »

You can find it here. Last time I tried (some days ago) everything was working fine. Now I moved to an HOTAS but if needed I can test it again.

You can find the instructions on how to join the beta here: viewtopic.php?f=192&t=405397&sid=e8505b ... cdf29b1f1c
Unbekanntes Feindschiff
Posts: 658
Joined: Wed, 4. Feb 09, 17:30
x4

Re: Linux Support (Beta)

Post by Unbekanntes Feindschiff »

Build 338103 Lin12

As of this build I am unable to start a new game (worked fine on previous builds). The game always loads up to 88% progress and then seems to be caught up in an endless loop. The game's log outputs nothing, but the usual things. Loading a saved game works perfectly fine, but starting a new game will hang up at 88% progress

OS: Gentoo 64 bit
Graphics card: nvidia GeForce 970GTX
driver version: 418.30
CPU Intel Xeon 1231v3
Last edited by Unbekanntes Feindschiff on Thu, 7. Mar 19, 19:01, edited 1 time in total.
HGN
User avatar
Byter
Posts: 28
Joined: Mon, 9. Sep 13, 16:52
x4

Re: Linux Support (Beta)

Post by Byter »

I wanted to play with mods now that I can run X4, and the weirdest thing happened:

Workshop mods work fine but Nexus Mods do not seem to work at all, no matter where I put them (.config/EgoSoft/.../extensions or steamapps/common/X4/extensions).

This is my modlist:

Code: Select all

directory name				origin		status
=====================================================================
ArgonCitizenStart			Nexus		(not working)
escape_teleport				Workshop	(working)
InfoCenter				Nexus		(not working)
Skip Station Scan			Nexus		(not working)
CrystalFinder				Nexus		(not working)
G_Work_Around				Nexus		(not working)
mej_improved_explore_behaviour		Nexus		(working)
trade_buy_notification			Nexus		(working)
DeadAirGate				Nexus		(not working)
HolomapInfoColors			Nexus		(not working)
paintjobsforsale			Workshop	(working)
vxLegalInventory			Nexus		(not working)
equipnorng				Nexus		(working)
IncreasedLongRangeScan			Nexus		(not working)
RightClickAPI				Nexus		(not working)
z_freeqspaintjobs			Workshop	(working)
So 3 out of 3 workshop mods work, but only out 3 of 13 nexus mods are even shown in the extensions menu.

Is there a Linux-related reason for that? They're all listed here: viewtopic.php?f=181&t=410888 and I do not think that 2.2 would break so many, right?

The debug log only shows missing *.sig files, but that's normal as far as I know.

Anyone got the same issues?
timon37
EGOSOFT
EGOSOFT
Posts: 508
Joined: Fri, 14. Dec 12, 11:02
x4

Re: Linux Support (Beta)

Post by timon37 »

@byter first guess is case sensitivity, the game "basically reads everything lowercase", not entirely since ".config/EgoSoft" isn't lowercase and works, but assets and internal folders should be lowercase.

@Unbekanntes Feindschiff
Is that strictly "new game", or loading savegames as well?
User avatar
Byter
Posts: 28
Joined: Mon, 9. Sep 13, 16:52
x4

Re: Linux Support (Beta)

Post by Byter »

Would it be possible to fix that and make loading extensions case-insensitive? As much as I dislike that, it would be very easy for modders to mod without having to worry about the linux version.

But thank you. I'll now rename all my extensions...


EDIT:

I tried a single one:

Code: Select all

ArgonCitizenStart
├── content.xml
├── libraries
│   └── gamestarts.xml
└── md
    ├── ArgonCitSetup.xml
    └── X4Ep1_Mentor_Subscription.xml
became:

Code: Select all

argoncitizenstart
├── content.xml
├── libraries
│   └── gamestarts.xml
└── md
    ├── argoncitsetup.xml
    └── x4ep1_mentor_subscription.xml
and it works now... all I need now is a command to make all files lowercase or I'm going to sit here till monday :P
Last edited by Byter on Thu, 7. Mar 19, 19:13, edited 1 time in total.
Aron
Posts: 101
Joined: Wed, 17. Dec 03, 05:51
x4

Re: Linux Support (Beta)

Post by Aron »

_JD_ wrote: Thu, 7. Mar 19, 18:09 You can find it here. Last time I tried (some days ago) everything was working fine. Now I moved to an HOTAS but if needed I can test it again.

You can find the instructions on how to join the beta here: viewtopic.php?f=192&t=405397&sid=e8505b ... cdf29b1f1c
Thanks for that. I just tried 2.2 and it is still the same thing. I'm not sure what to do to debug the situation. The joystick works in other programs (like jstest-gtk).
BerndHohmann
Posts: 45
Joined: Tue, 16. Feb 16, 00:14

Re: Linux Support (Beta)

Post by BerndHohmann »

Byter wrote: Thu, 7. Mar 19, 18:49 and it works now... all I need now is a command to make all files lowercase or I'm going to sit here till monday :P
I can give you a start. Unfortunately it doesn't cover subdirs.

Code: Select all

#!/bin/sh
# lowerit
# convert all file names in the current directory to lower case
# only operates on plain files--does not change the name of directories
# will ask for verification before overwriting an existing file
  for x in `ls`
    do
    if [ ! -f $x ]; then
      continue
    fi
    lc=`echo $x  | tr '[A-Z]' '[a-z]'`
    if [ $lc != $x ]; then
      mv -i $x $lc
    fi
    done
And a more "creative" solution

Code: Select all

zip -rm foo.zip
unzip -LL foo.zip
(-rm moves files recursivly into archive, -LL unpacks them with forced lowercase - you have a backup of the old structure in foo.zip then)

fb
Last edited by BerndHohmann on Thu, 7. Mar 19, 20:21, edited 2 times in total.

Return to “X4: Foundations - Technical Support”