Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Planet Search Overhaul (07/13/24)

Author Topic: [SOLVED] Game doesn't start on Linux for me  (Read 1334 times)

Luken

  • Ensign
  • *
  • Posts: 2
    • View Profile
[SOLVED] Game doesn't start on Linux for me
« on: August 13, 2022, 11:25:27 AM »

Hello!
I just bought this game, but there seem to be some issue, as I'm getting "No valid display modes found. Starsector requires at least a 1024x768 screen to run." error. I'll paste all output below, and also some information that could be relevant. Please feel free to ask me about anything else that could be helpful.

Quote
(1:1)$ ./starsector.sh
0    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Starting Starsector 0.95.1a-RC6 launcher
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Running in /home/luken/Pobrane/starsector_linux-0.95.1a-RC6 (1)/starsector
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - OS: Linux 5.18.14-arch1-1
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Java version: 1.7.0_79 (64-bit)
5    [main] INFO  com.fs.starfarer.settings.StarfarerSettings  - Loading settings
7    [main] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [ABSOLUTE_AND_CWD: null (data/config/settings.json)]
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 320x240, 59Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 320x200, 58Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 640x400, 59Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 640x350, 59Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 640x480, 59Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 720x480, 59Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 720x400, 59Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 800x600, 59Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 864x486, 59Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1024x768, 59Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1024x576, 59Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1152x864, 59Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Found display mode: 1200x1920, 59Hz, 24bpp
104  [main] INFO  com.fs.starfarer.launcher.opengl.GLLauncher  - Assuming native monitor resolution is 1200x1920
107  [main] ERROR com.fs.starfarer.StarfarerLauncher  - java.lang.RuntimeException: No valid display modes found. Starsector requires at least a 1024x768 screen to run.
java.lang.RuntimeException: No valid display modes found. Starsector requires at least a 1024x768 screen to run.
   at com.fs.starfarer.launcher.opengl.GLLauncher.detectResolutions(Unknown Source)
   at com.fs.starfarer.launcher.opengl.GLLauncher.<init>(Unknown Source)
   at com.fs.starfarer.launcher.opengl.GLLauncher.createUI(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher.<init>(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher.<init>(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher.main(Unknown Source)

Could it be caused by the fact that I have 16:10 monitor? Is there any work around it? I tried to to set some 16:9 resolution but it didn't help though.

I'm not sure if that's relevant but:

Quote
(1:6)$ lspci | grep ' VGA ' | cut -d" " -f 1 | xargs -i lspci -v -s {}
0b:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c1) (prog-if 00 [VGA controller])
   Subsystem: Gigabyte Technology Co., Ltd Radeon RX 5700 XT Gaming OC
   Flags: bus master, fast devsel, latency 0, IRQ 131, IOMMU group 25
   Memory at d0000000 (64-bit, prefetchable) [size=256M]
   Memory at e0000000 (64-bit, prefetchable) [size=2M]
   I/O ports at e000 [size=256]
   Memory at fce00000 (32-bit, non-prefetchable) [size=512K]
   Expansion ROM at 000c0000 [disabled] [size=128K]
   Capabilities: <access denied>
   Kernel driver in use: amdgpu
   Kernel modules: amdgpu

Linux is a pretty up to date Arch Linux.

Any idea what could I do to run this game? :)
« Last Edit: August 13, 2022, 12:33:41 PM by Luken »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24747
    • View Profile
Re: Game doesn't start on Linux for me
« Reply #1 on: August 13, 2022, 12:06:13 PM »

Hi - sorry about the trouble! This means that the game can't find any valid resolutions to run at - likely this could be resolved by  some configuration changes on your end. See this thread, for example:

https://fractalsoftworks.com/forum/index.php?topic=17016.msg268771#msg268771

If that doesn't help, you could open up data/config/settings.json and look for:

#"resolutionOverride":"1024x768",

Uncomment that and replace the resolution with whatever you want, that may get around the issue.


... ah, wait! The error message is actually wrong; the game requires at least 1280x768, which given the log output it doesn't seem your display supports. You could force it to run at a lower resolution using resolutionOverride, but parts of the UI may get cut off.

(I'm not sure what the 1200x1920 mode is all about, that seems... odd?)
Logged

Luken

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: Game doesn't start on Linux for me
« Reply #2 on: August 13, 2022, 12:30:40 PM »

Thanks Alex, that helped!

Uncommenting resolution override and setting it to my actual resolution:

Quote
"resolutionOverride":"2560x1600",

Made the game start. Seems like an issue with resolution detection then? Some additional info:

  • I have 2 monitors, one is set up vertically.
  • I use Wayland as my display server.

Do you think one of these things could confuse the game? If yes I could try to disconnect monitor/switch to X11 to isolate the main issue, if that would help you to fix that, so next players could have a smoother initial experience :) .
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24747
    • View Profile
Re: Game doesn't start on Linux for me
« Reply #3 on: August 13, 2022, 12:33:34 PM »

Cool, glad you got it working!

Do you think one of these things could confuse the game? If yes I could try to disconnect monitor/switch to X11 to isolate the main issue, if that would help you to fix that, so next players could have a smoother initial experience :) .

It's probably that, yeah, though I would guess there is probably some way to configure it to make the game see it. But since the settings file provides the workaround...

I appreciate the offer to help, but I don't think there's much I can really do to tweak this - not without writing some awfully-Linux-specific-code - and it's not a place I really want to go for something that's not that common and has a workaround.
Logged