Linux Support (Beta)

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

Moderator: Moderators for English X Forum

strask412
Posts: 615
Joined: Thu, 29. Nov 07, 20:34
x4

Re: Linux Support (Beta)

Post by strask412 » Tue, 4. Jun 19, 14:28

KlausM wrote:
Mon, 3. Jun 19, 16:44
The Linux version is now available on GOG. :)
Woot! Downloading now, thank you Egosoft! :)
"If I were a shadowy nemesis that wanted to strike the Protectorate where it's weakest, Pioneers space is where I'd begin."
- Delilah Shiratori

steve_v
Posts: 159
Joined: Sun, 12. Jun 16, 08:39
x4

Re: Linux Support (Beta)

Post by steve_v » Wed, 5. Jun 19, 09:01

Before I do the bug-report bit, is alt-tab screwing up NPC models a known-thing?

mAritz
Posts: 11
Joined: Sat, 15. Dec 18, 02:36
x4

Re: Linux Support (Beta)

Post by mAritz » Wed, 5. Jun 19, 11:57

I have to disable my secondary display to get the game to start, otherwise I get this:

Code: Select all

Running X4: Foundations
======================================
File I/O: Could not find file './etc\xml\catalog'
======================================
======================================
======================================
File I/O: Could not find file './etc\xml\catalog.sig'
======================================
FileIORequest::WaitForResult() Failed './etc\xml\catalog' with 4
======================================
======================================
XLib::XMLInputOpenCallback(): Failed to open the file: etc/xml/catalog
======================================
'GeForce GTX 1070' NVidia-driver v418.74.0 (Vulkan 1.1.95) check=1
'GeForce GTX 1070' NVidia-driver v418.74.0 (Vulkan 1.1.95) check=1
./testandlaunch: line 14:  6268 Segmentation fault      (core dumped) ./X4 "$@" 2>&1
Completely random guess: it may have something to do with how my screens are set up. My secondary display is connected via DVI (it's an older 1080p monitor) while my primary is connected via DP (newer 1440p). However there's a long-standing issue with nvidia cards where they prioritize DVI as the main display and there is no way to effectively change it - at least last time I checked. This means BIOS, boot screens, etc. all assume the DVI monitor is the primary. This may lead to conflicts in display selection/resolution?

Here's my gog support script output:

Code: Select all

moritz-pc
GOG.com System Report: 1.2.3
System Configuration
Hostname:	moritz-pc
Distribution:	"Manjaro Linux"
Kernel: 	5.0.18-1-MANJARO
Architecture: 	x86_64
Desktop session:	xfce / xfce
Current desktop:	XFCE
Session type:	x11
Language:	en_US.utf8
Hardware Overview
Processor
Processor Name:	AMD Ryzen 7 2700X Eight-Core Processor
Processor Speed:	2554.601
Processor Cores:	8
Graphics
Model: 	NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
Driver Module:	

nvidia_drm             57344  3
nvidia_modeset       1097728  5 nvidia_drm
drm_kms_helper        208896  1 nvidia_drm
drm                   499712  6 drm_kms_helper,nvidia_drm
nvidia              17944576  183 nvidia_modeset
ipmi_msghandler        65536  2 ipmi_devintf,nvidia

Tests: 	direct rendering: Yes

Display:	

Screen 0: minimum 8 x 8, current 4480 x 1440, maximum 32767 x 32767
DVI-D-0 connected 1920x1080+2560+360 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     59.93*+  60.00  
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32    56.25  
   640x480       75.00    59.94  
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   2560x1440     59.95 + 144.00*  120.00    99.95    84.98    23.97  
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)

Sound
Model: 	NVIDIA Corporation GP104 High Definition Audio Controller (rev a1) Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) HD Audio Controller
Driver Module:	

snd_hda_codec_hdmi     61440  1
snd_usb_audio         262144  2
snd_usbmidi_lib        40960  1 snd_usb_audio
snd_rawmidi            45056  1 snd_usbmidi_lib
snd_seq_device         16384  1 snd_rawmidi
snd_hda_codec_realtek   126976  1
snd_hda_codec_generic    90112  1 snd_hda_codec_realtek
ledtrig_audio          16384  2 snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_intel          45056  3
snd_hda_codec         155648  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core           98304  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
snd_pcm               135168  5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
snd_timer              40960  1 snd_pcm
snd                   102400  22 snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
soundcore              16384  1 snd

ALSA managed devices list

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC1220 Analog [ALC1220 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 1: ALC1220 Digital [ALC1220 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: UR12 [Steinberg UR12], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: U0x41e0x30d3 [USB Device 0x41e:0x30d3], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Memory
Memory Total: 	32951100 kB
Swap Total: 	51199996 kB
Swap Free: 	51198972 kB
Partitions

Filesystem     Type      Size  Used Avail Use% Mounted on
dev            devtmpfs   16G     0   16G   0% /dev
run            tmpfs      16G  1,8M   16G   1% /run
/dev/nvme0n1p4 ext4      1,3T  199G  1,1T  17% /
tmpfs          tmpfs      16G  323M   16G   3% /dev/shm
tmpfs          tmpfs      16G     0   16G   0% /sys/fs/cgroup
tmpfs          tmpfs      16G   41M   16G   1% /tmp
tmpfs          tmpfs     3,2G   20K  3,2G   1% /run/user/1000

Network

br-048a58450568: flags=4099  mtu 1500
        inet 172.19.0.1  netmask 255.255.0.0  broadcast 172.19.255.255
        ether 02:42:c5:8e:07:bb  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

br-304f749443eb: flags=4163  mtu 1500
        inet 172.18.0.1  netmask 255.255.0.0  broadcast 172.18.255.255
        inet6 fe80::42:e4ff:feab:6cbd  prefixlen 64  scopeid 0x20
        ether 02:42:e4:ab:6c:bd  txqueuelen 0  (Ethernet)
        RX packets 217862  bytes 451732571 (430.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 248250  bytes 1175747246 (1.0 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

docker0: flags=4099  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 1a:f5:9e:ee:e3:e0  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eno1: flags=4163  mtu 1500
        inet 192.168.1.100  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 2a02:8109:8340:1e24:172b:b400:f29:7740  prefixlen 64  scopeid 0x0
        inet6 fe80::be5d:2978:8ea:a7e4  prefixlen 64  scopeid 0x20
        ether 30:9c:23:d5:61:e9  txqueuelen 1000  (Ethernet)
        RX packets 989588  bytes 1267323566 (1.1 GiB)
        RX errors 0  dropped 12  overruns 0  frame 0
        TX packets 417024  bytes 467121641 (445.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 25  

lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 4548  bytes 4418693 (4.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4548  bytes 4418693 (4.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth2b9300b: flags=4163  mtu 1500
        inet6 fe80::34a4:f1ff:feb5:6f8d  prefixlen 64  scopeid 0x20
        ether 36:a4:f1:b5:6f:8d  txqueuelen 0  (Ethernet)
        RX packets 91442  bytes 16547033 (15.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 84172  bytes 26583967 (25.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth9bd94d2: flags=4163  mtu 1500
        inet6 fe80::6080:50ff:fe4e:573f  prefixlen 64  scopeid 0x20
        ether 62:80:50:4e:57:3f  txqueuelen 0  (Ethernet)
        RX packets 50760  bytes 18282036 (17.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 60264  bytes 9707659 (9.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vethdabd828: flags=4163  mtu 1500
        inet6 fe80::7841:bcff:fe7f:6c4c  prefixlen 64  scopeid 0x20
        ether 7a:41:bc:7f:6c:4c  txqueuelen 0  (Ethernet)
        RX packets 234717  bytes 456284319 (435.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 263125  bytes 1175806474 (1.0 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp26s0: flags=4099  mtu 1500
        ether d6:74:f7:33:23:b6  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lspci

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) I/O Memory Management Unit
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 59)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7
01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981
03:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43d0 (rev 01)
03:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller (rev 01)
03:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge (rev 01)
16:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
16:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
16:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
16:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
16:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
16:08.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
17:00.0 Ethernet controller: Qualcomm Atheros Killer E2500 Gigabit Ethernet Controller (rev 10)
1a:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
1c:00.0 USB controller: ASMedia Technology Inc. ASM1143 USB 3.1 Host Controller
1d:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
1d:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
1e:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function
1e:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Platform Security Processor
1e:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Zeppelin USB 3.0 Host controller
1f:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Renoir PCIe Dummy Function
1f:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
1f:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) HD Audio Controller

lsusb

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 003: ID 0499:170a Yamaha Corp. 
Bus 005 Device 002: ID 0424:2422 Standard Microsystems Corp. 
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 05e3:0612 Genesys Logic, Inc. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:0a2b Intel Corp. 
Bus 001 Device 007: ID 041e:30d3 Creative Technology, Ltd Sound Blaster Play!
Bus 001 Device 006: ID 13fe:4100 Kingston Technology Company Inc. Flash drive
Bus 001 Device 005: ID 1af3:0001  
Bus 001 Device 004: ID 04d9:0192 Holtek Semiconductor, Inc. 
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Kernel Modules Overview
lsmod

Module                  Size  Used by
rfcomm                 86016  4
nf_log_ipv4            16384  11
nf_log_common          16384  1 nf_log_ipv4
xt_LOG                 20480  11
xt_comment             16384  83
btrfs                1384448  1
xor                    24576  1 btrfs
raid6_pq              122880  1 btrfs
loop                   40960  2
xt_nat                 16384  13
xt_tcpudp              20480  15
veth                   32768  0
ipt_MASQUERADE         20480  21
nf_conntrack_netlink    53248  0
nfnetlink              16384  2 nf_conntrack_netlink
xfrm_user              45056  1
xfrm_algo              16384  1 xfrm_user
iptable_nat            16384  4
nf_nat_ipv4            16384  2 ipt_MASQUERADE,iptable_nat
xt_addrtype            16384  2
iptable_filter         16384  2
xt_conntrack           16384  16
nf_nat                 40960  2 nf_nat_ipv4,xt_nat
nf_conntrack          159744  6 xt_conntrack,nf_nat,ipt_MASQUERADE,nf_nat_ipv4,xt_nat,nf_conntrack_netlink
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
libcrc32c              16384  3 nf_conntrack,nf_nat,btrfs
br_netfilter           28672  0
bridge                204800  1 br_netfilter
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
overlay               131072  3
aufs                  311296  0
fuse                  131072  3
bnep                   28672  2
snd_hda_codec_hdmi     61440  1
arc4                   16384  2
edac_mce_amd           28672  0
kvm_amd               106496  0
kvm                   745472  1 kvm_amd
iwlmvm                446464  0
btusb                  57344  0
btrtl                  20480  1 btusb
btbcm                  16384  1 btusb
irqbypass              16384  1 kvm
btintel                28672  1 btusb
mac80211              942080  1 iwlmvm
bluetooth             647168  31 btrtl,btintel,btbcm,bnep,btusb,rfcomm
input_leds             16384  0
snd_usb_audio         262144  2
mousedev               24576  0
snd_usbmidi_lib        40960  1 snd_usb_audio
snd_rawmidi            45056  1 snd_usbmidi_lib
ecdh_generic           24576  1 bluetooth
snd_seq_device         16384  1 snd_rawmidi
snd_hda_codec_realtek   126976  1
iwlwifi               348160  1 iwlmvm
crct10dif_pclmul       16384  1
snd_hda_codec_generic    90112  1 snd_hda_codec_realtek
crc32_pclmul           16384  0
ledtrig_audio          16384  2 snd_hda_codec_generic,snd_hda_codec_realtek
wmi_bmof               16384  0
mxm_wmi                16384  0
ghash_clmulni_intel    16384  0
snd_hda_intel          45056  3
snd_hda_codec         155648  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
cfg80211              798720  3 iwlmvm,iwlwifi,mac80211
snd_hda_core           98304  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
snd_pcm               135168  5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
aesni_intel           372736  0
snd_timer              40960  1 snd_pcm
ccp                    98304  1 kvm_amd
alx                    53248  0
snd                   102400  22 snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
vboxnetflt             32768  0
sp5100_tco             20480  0
vboxnetadp             28672  0
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
vboxpci                28672  0
rfkill                 28672  6 bluetooth,cfg80211
mdio                   16384  1 alx
soundcore              16384  1 snd
pcspkr                 16384  0
k10temp                16384  0
i2c_piix4              28672  0
glue_helper            16384  1 aesni_intel
rng_core               16384  1 ccp
vboxdrv               495616  3 vboxpci,vboxnetadp,vboxnetflt
uinput                 20480  0
nvidia_drm             57344  3
nvidia_modeset       1097728  5 nvidia_drm
evdev                  24576  13
drm_kms_helper        208896  1 nvidia_drm
wmi                    32768  2 wmi_bmof,mxm_wmi
pinctrl_amd            32768  0
pcc_cpufreq            20480  0
mac_hid                16384  0
gpio_amdpt             20480  0
acpi_cpufreq           28672  0
drm                   499712  6 drm_kms_helper,nvidia_drm
agpgart                53248  1 drm
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
nvidia              17944576  183 nvidia_modeset
ipmi_devintf           20480  0
ipmi_msghandler        65536  2 ipmi_devintf,nvidia
crypto_user            16384  0
ip_tables              32768  2 iptable_filter,iptable_nat
x_tables               49152  9 xt_conntrack,iptable_filter,xt_LOG,xt_tcpudp,ipt_MASQUERADE,xt_addrtype,xt_nat,xt_comment,ip_tables
ext4                  749568  1
crc32c_generic         16384  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  131072  1 ext4
fscrypto               32768  1 ext4
sd_mod                 57344  0
uas                    28672  0
usb_storage            73728  1 uas
hid_generic            16384  0
usbhid                 61440  0
hid                   139264  2 usbhid,hid_generic
ahci                   40960  0
libahci                40960  1 ahci
libata                274432  2 libahci,ahci
xhci_pci               20480  0
crc32c_intel           24576  3
xhci_hcd              258048  1 xhci_pci
scsi_mod              249856  4 sd_mod,usb_storage,uas,libata

Software Overview
Games installed in /home/maritz/GOG Games

total 12
drwx------  3 maritz maritz 4096  5. Jun 11:17 .
drwx------ 45 maritz maritz 4096  5. Jun 11:17 ..
drwx------  6 maritz maritz 4096  5. Jun 11:20 X4 Foundations

Games installed in /opt/GOG Games (legacy)

ls: cannot access '/opt/GOG Games': No such file or directory

Games installed in /usr/games (legacy)

/etc/apt/sources.list

/etc/apt/sources.list.d/

Installed packages

System report location:

/home/maritz/GOG Games/X4 Foundations/support

Once I disable the second monitor it starts up fine. There's a small amount of hitching even at >90fps, but I get that in other Vulkan games (Dota 2, Artifact) as well, so I think that's a driver issue.

radcapricorn
Moderator (English)
Moderator (English)
Posts: 3230
Joined: Mon, 14. Jul 08, 13:07
x4

Re: Linux Support (Beta)

Post by radcapricorn » Wed, 5. Jun 19, 12:24

steve_v wrote:
Wed, 5. Jun 19, 09:01
Before I do the bug-report bit, is alt-tab screwing up NPC models a known-thing?
It has been reported in this very thread.

mAritz
Posts: 11
Joined: Sat, 15. Dec 18, 02:36
x4

Re: Linux Support (Beta)

Post by mAritz » Sat, 8. Jun 19, 09:33

mAritz wrote:
Wed, 5. Jun 19, 11:57
I have to disable my secondary display to get the game to start, otherwise I get this:

Code: Select all

./testandlaunch: line 14:  6268 Segmentation fault      (core dumped) ./X4 "$@" 2>&1
Once I disable the second monitor it starts up fine.
I'm happy to report that updating from kernel 5.0 to 5.1 appears to have fixed this issue for me. :)

Unbekanntes Feindschiff
Posts: 654
Joined: Wed, 4. Feb 09, 17:30
x4

Re: Linux Support (Beta)

Post by Unbekanntes Feindschiff » Sat, 22. Jun 19, 14:52

The game still doesn't work when launching through Steam. Propably some binary-incompatibility with the Steam Runtime as the binary runs perfectly fine when just run by command-line. However, as only the beta-binary has no DRM, I am unable to access the stable build as launching that from the command line will just launch the game again through Steam which fails.

Output in Steam's dev console is the following

Code: Select all

Game update: AppID 392160 "", ProcID 8044, IP 0.0.0.0:0
ERROR: ld.so: object '/home/ufeindschiff/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Starting app 392160
Installing breakpad exception handler for appid(steam)/version(1560817063)
>>> Adding process 8044 for game ID 392160
GameAction [AppID 392160, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
/bin/sh: glxrecord: command not found
pid 8047 != 8045, skipping destruction (fork without exec?)
GameAction [AppID 392160, ActionID 1] : LaunchApp changed task to Completed with ""
>>> Adding process 8045 for game ID 392160
Game removed: AppID 392160 "", ProcID 8044 
Exiting app 392160
Tried all the usual workarounds for such compatibility issues(disabling overlay, forcing use of native libstdc++, tinkering with the launch script to just have it launch the binary, etc) to no avail
HGN

strask412
Posts: 615
Joined: Thu, 29. Nov 07, 20:34
x4

Re: Linux Support (Beta)

Post by strask412 » Sun, 23. Jun 19, 04:38

Unbekanntes Feindschiff wrote:
Sat, 22. Jun 19, 14:52
The game still doesn't work when launching through Steam. Propably some binary-incompatibility with the Steam Runtime as the binary runs perfectly fine when just run by command-line. However, as only the beta-binary has no DRM, I am unable to access the stable build as launching that from the command line will just launch the game again through Steam which fails.

Output in Steam's dev console is the following

Code: Select all

Game update: AppID 392160 "", ProcID 8044, IP 0.0.0.0:0
ERROR: ld.so: object '/home/ufeindschiff/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Starting app 392160
Installing breakpad exception handler for appid(steam)/version(1560817063)
>>> Adding process 8044 for game ID 392160
GameAction [AppID 392160, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
/bin/sh: glxrecord: command not found
pid 8047 != 8045, skipping destruction (fork without exec?)
GameAction [AppID 392160, ActionID 1] : LaunchApp changed task to Completed with ""
>>> Adding process 8045 for game ID 392160
Game removed: AppID 392160 "", ProcID 8044 
Exiting app 392160
Tried all the usual workarounds for such compatibility issues(disabling overlay, forcing use of native libstdc++, tinkering with the launch script to just have it launch the binary, etc) to no avail
I don't see anything glaringly wrong in the console output you posted: The ld.so error, command not found on glxrecord, and pid mismatch are all items of interest but could each be independent of the others, and none of them seem like big deals. The rest of the output seems to indicate successful launch of the game, followed by the game closing, but without timestamps it's not clear how long it was open.

What behavior do you see just from a user perspective? Does the game open? By this I mean does it create a window and/or take over your full screen, even momentarily? Are you able to reach the main menu? What does it look like, if it isn't looking correct?
"If I were a shadowy nemesis that wanted to strike the Protectorate where it's weakest, Pioneers space is where I'd begin."
- Delilah Shiratori

strask412
Posts: 615
Joined: Thu, 29. Nov 07, 20:34
x4

PSA: To use mods for X4 on linux, all the mod files must have lower-case names.

Post by strask412 » Sun, 23. Jun 19, 04:49

Hi all, I didn't see this posted anyplace and had to learn by posting a query in the Scripts & Mods forum, so just in case future linux players look here first I wanted to mention:

To use mods for X4 under linux (as of version 2.50 hotfix 1), you must ensure that all the mod file names are lower-case. Even though that makes them different from the stock files. Also any files inside the mod which point to other files inside the mod, must have those pointers "corrected" to match the new lower-case names of the target files.

Edit: N. b. "all the mod file names" INCLUDES the directory/folder names, as well.
"If I were a shadowy nemesis that wanted to strike the Protectorate where it's weakest, Pioneers space is where I'd begin."
- Delilah Shiratori

HappyCamper31
Posts: 1
Joined: Tue, 25. Jun 19, 02:13

Re: Linux Support (Beta)

Post by HappyCamper31 » Tue, 25. Jun 19, 02:26

Aron wrote:
Mon, 15. Apr 19, 20:38
My game now has difficulty starting up...

>> File I/O: Could not find file './etc\xml\catalog'
Hi ... having the same issue ... first time install works great under linux / but when
re-launching the app seeing the same issue with can't find .etc\xml\catalog ...

A quick work-around that works for me ...

# first take a guess at what the code is trying to do ...
cd
ls -al .etc/xml/catalog/

# yup the folder is there ... x4 is using windows path separators on linux
# ...

# a quick work around ...
ln -s .etc/xml/catalog/ .etc\xml\catalog

# Yipee my very favorite game is launching from Steam!!!

# did I mention I LOVE THIS GAME!!! Freaking Awesome

<I sorted your quote out for you. Alan Phipps>

Unbekanntes Feindschiff
Posts: 654
Joined: Wed, 4. Feb 09, 17:30
x4

Re: Linux Support (Beta)

Post by Unbekanntes Feindschiff » Sat, 29. Jun 19, 20:13

strask412 wrote:
Sun, 23. Jun 19, 04:38
I don't see anything glaringly wrong in the console output you posted: The ld.so error, command not found on glxrecord, and pid mismatch are all items of interest but could each be independent of the others, and none of them seem like big deals. The rest of the output seems to indicate successful launch of the game, followed by the game closing, but without timestamps it's not clear how long it was open.

What behavior do you see just from a user perspective? Does the game open? By this I mean does it create a window and/or take over your full screen, even momentarily? Are you able to reach the main menu? What does it look like, if it isn't looking correct?
I don't see anything glaringly wrong either which is why I am not more specific as I really have no clue why the game fails to launch ;)

From the user's perspective I see the X4: Foundations entry turning green in Steam as well as having the "Running" appended to it for a split-second (indicating game running) and then it returning back to normal. No game window, nothing.

The ld.so error can safely be ignored. X4 is an amd64 binary and therefore cannot load the gameoverlayrenderer library for IA-32 due to architechture mismatch resulting in this error.

No clue why the game looks for glxrecord. If it's a requirement for the Steam version and the game is attempting to do something with it, it should be removed
strask412 wrote:
Sun, 23. Jun 19, 04:49
Hi all, I didn't see this posted anyplace and had to learn by posting a query in the Scripts & Mods forum, so just in case future linux players look here first I wanted to mention:

To use mods for X4 under linux (as of version 2.50 hotfix 1), you must ensure that all the mod file names are lower-case. Even though that makes them different from the stock files. Also any files inside the mod which point to other files inside the mod, must have those pointers "corrected" to match the new lower-case names of the target files.

Edit: N. b. "all the mod file names" INCLUDES the directory/folder names, as well.
Not my experience as at least for me patching MD files works flawlessly when naming my diff files exactly like the source files (keeping capitalisation) as one would expect it
HGN

radcapricorn
Moderator (English)
Moderator (English)
Posts: 3230
Joined: Mon, 14. Jul 08, 13:07
x4

Re: Linux Support (Beta)

Post by radcapricorn » Sat, 29. Jun 19, 21:31

Try clicking the Play a few more times. Been a long time since I looked at console output, I think I even posted it in this thread somewhere. For me, the game routinely refuses to launch from Steam, often up to 10 times in a row.

strask412
Posts: 615
Joined: Thu, 29. Nov 07, 20:34
x4

Re: Linux Support (Beta)

Post by strask412 » Sun, 30. Jun 19, 00:26

Unbekanntes Feindschiff wrote:
Sat, 29. Jun 19, 20:13
strask412 wrote:
Sun, 23. Jun 19, 04:38
To use mods for X4 under linux (as of version 2.50 hotfix 1), you must ensure that all the mod file names are lower-case.
Not my experience as at least for me patching MD files works flawlessly when naming my diff files exactly like the source files (keeping capitalisation) as one would expect it
viewtopic.php?f=181&t=417564 is the thread where I initially described my problem, received the instructions to lower-case all the names, did so, and succeeded in playing with mods which had failed to load minutes prior with no other changes. If you have information about how to get it to work without the workaround I described, that thread would be the best place for discussion (we can post back here with results once we resolve why we see different behaviour). Thanks for letting me know I might be spreading fud.
"If I were a shadowy nemesis that wanted to strike the Protectorate where it's weakest, Pioneers space is where I'd begin."
- Delilah Shiratori

shmerl
Posts: 18
Joined: Fri, 5. Jul 19, 22:10

Re: Linux Support (Beta)

Post by shmerl » Fri, 5. Jul 19, 22:57

FYI, I opened a thread about VK_LAYER_PATH bug on Linux here.

strask412
Posts: 615
Joined: Thu, 29. Nov 07, 20:34
x4

Re: Linux Support (Beta)

Post by strask412 » Sat, 6. Jul 19, 03:02

shmerl wrote:
Fri, 5. Jul 19, 22:57
FYI, I opened a thread about VK_LAYER_PATH bug on Linux here.
Thanks for the pointer, I'm interested in the (eventual) outcome of that issue. :) Edit: Also, very nice bug investigation linked from that thread. 8)
"If I were a shadowy nemesis that wanted to strike the Protectorate where it's weakest, Pioneers space is where I'd begin."
- Delilah Shiratori

shmerl
Posts: 18
Joined: Fri, 5. Jul 19, 22:10

Re: Linux Support (Beta)

Post by shmerl » Sun, 7. Jul 19, 05:16

strask412 wrote:
Sat, 6. Jul 19, 03:02
Thanks for the pointer, I'm interested in the (eventual) outcome of that issue. :) Edit: Also, very nice bug investigation linked from that thread. 8)
Thanks! Mesa developers were very helpful in narrowing this down.

shmerl
Posts: 18
Joined: Fri, 5. Jul 19, 22:10

Re: Linux Support (Beta)

Post by shmerl » Sun, 14. Jul 19, 07:13

FYI, some benchmarks with using new Mesa aco compiler (Sapphire Pulse Vega 56, 1920x1200). llvm still performs better.


llvm:
https://i.imgur.com/bnUTIk9.jpg

aco:
https://i.imgur.com/AYCgMvN.jpg



{Images posted directly to the forums should not be greater than 640x480 or 100kb, oversize image now linked - Terre}

Skeeter
Posts: 3665
Joined: Thu, 9. Jan 03, 19:47
x3

Re: Linux Support (Beta)

Post by Skeeter » Sun, 14. Jul 19, 12:46

Sry to butt in as i dont have linux etc but from them two pics aco seems better, frame time is lower which is better as more responsive than fps also the line graph is smoother with less spikes i thought so should be smoother gameplay yeah?
[ external image ]
7600x cpu 5.4ghz 32gb DDR5 5600mhz 6700XT 32" 1440p mon

radcapricorn
Moderator (English)
Moderator (English)
Posts: 3230
Joined: Mon, 14. Jul 08, 13:07
x4

Re: Linux Support (Beta)

Post by radcapricorn » Sun, 14. Jul 19, 13:30

That's just one frame. If you look at FPS, it's ~10 lower. So on average, frame time is higher for the ACO, except that one frame that happened to be lower :) Not that it's really representative as far as gameplay would go anyway, I'd rather like to see how it performs in a busy view.

shmerl
Posts: 18
Joined: Fri, 5. Jul 19, 22:10

Re: Linux Support (Beta)

Post by shmerl » Sun, 14. Jul 19, 22:17

radcapricorn wrote:
Sun, 14. Jul 19, 13:30
That's just one frame. If you look at FPS, it's ~10 lower. So on average, frame time is higher for the ACO, except that one frame that happened to be lower :) Not that it's really representative as far as gameplay would go anyway, I'd rather like to see how it performs in a busy view.
It's consistently worse for aco. A known issue: https://github.com/daniel-schuermann/mesa/issues/58

radcapricorn
Moderator (English)
Moderator (English)
Posts: 3230
Joined: Mon, 14. Jul 08, 13:07
x4

Re: Linux Support (Beta)

Post by radcapricorn » Mon, 15. Jul 19, 15:19

I've something to add to the various alt-tabbing problems mentioned somewhere earlier in this thread. Just to recap, alt-tabbing may result in speed/distance indicators showing static bogus values, additional UI elements appearing (i.e. as if an object is targeted when it's not), NPC heads stuck in one position detached from the rest of animation.

I've also noticed that the map issue described in the second portion of this report can be, at least partially, attributed to alt-tabbing (similar corruption, but without freezing, can result due to different circumstances unrelated to window switching). And today, after switching windows due to recording a video, I've encountered this. This is on a GTX980Ti, window mode set to 'Fullscreen'.

Post Reply

Return to “X4: Foundations - Technical Support”