# Linux - Launching Eve in Separate X-Server

**URL:** <https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035>\
**Category:** Linux\
**Created:** [May 13, 2018, 10:21am UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035 "2018-05-13T10:21:23Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyrak\_Amphal](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/tyrak_amphal/32/72450_2.png) [@Tyrak\_Amphal](https://forums.eveonline.com/u/Tyrak_Amphal)\
**Post date:** [May 13, 2018, 10:21am UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/1 "2018-05-13T10:21:23Z")

</div>

I’ve been using Eve on Linux for a while now with no real errors other than occasional performance drops. Today I decided to run it on a separate X-Server using “sudo xinit /home/\*\*\*/Desktop/EveOnline/evelauncher/evelauncher.sh – :2” and all seems to run smoothly. The issue I have is that the launcher doesn’t launch the game, I can log in and interact with the launcher fine, however after clicking play it just sticks on the launcher.

Launcher used is from this thread: [https://forums-archive.eveonline.com/topic/482663/](https://forums-archive.eveonline.com/topic/482663/)

---

<div class="post-metadata">

**Author:** ![Whitehound](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/whitehound/32/59604_2.png) [@Whitehound](https://forums.eveonline.com/u/Whitehound)\
**Post date:** [May 13, 2018, 11:14am UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/2 "2018-05-13T11:14:52Z")

</div>

Did you set the DISPLAY variable?

If it’s not a missing DISPLAY variable then also do a `xhost +` to temporarily disable access control and to see if it’s a problem with access rights.

---

<div class="post-metadata">

**Author:** ![Tyrak\_Amphal](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/tyrak_amphal/32/72450_2.png) [@Tyrak\_Amphal](https://forums.eveonline.com/u/Tyrak_Amphal)\
**Post date:** [May 13, 2018, 2:48pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/3 "2018-05-13T14:48:34Z")

</div>

I don’t think this is what’s causing the issue, I’ve tried both and neither seemed to help.

I’m able to switch to the launcher and log in, but when clicking play I see “Launch Process Started” and then it almost ‘gives up’.

It’s only simple but here is what I’ve been using to run the launcher:

#!/bin/bash  
DISPLAY = :0.2  
sudo xinit /home/\*/Desktop/EveOnline/evelauncher/evelauncher.sh – :2

---

<div class="post-metadata">

**Author:** ![Whitehound](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/whitehound/32/59604_2.png) [@Whitehound](https://forums.eveonline.com/u/Whitehound)\
**Post date:** [May 13, 2018, 3:27pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/4 "2018-05-13T15:27:13Z")

</div>

> [@Tyrak\_Amphal](#):
>
> #!/bin/bash  
> DISPLAY = :0.2  
> sudo xinit /home/\*/Desktop/EveOnline/evelauncher/evelauncher.sh – :2

This won’t work. Firstly, always use `export` for the DISPLAY variable or it won’t be seen by applications. Secondly, and more important, `sudo` won’t carry over the DISPLAY variable even when you’re exporting it.

Try this and see if it gets you anywhere:

```plaintext
sudo xinit env DISPLAY=:1 /home/*/Desktop/EveOnline/evelauncher/evelauncher.sh -- :1

```

Also `:0.2` is not the same as `:2`.

---

<div class="post-metadata">

**Author:** ![Whitehound](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/whitehound/32/59604_2.png) [@Whitehound](https://forums.eveonline.com/u/Whitehound)\
**Post date:** [May 13, 2018, 3:46pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/5 "2018-05-13T15:46:43Z")

</div>

Not to be cheeky, but may I ask why you want to run a second X server?

---

<div class="post-metadata">

**Author:** ![Tyrak\_Amphal](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/tyrak_amphal/32/72450_2.png) [@Tyrak\_Amphal](https://forums.eveonline.com/u/Tyrak_Amphal)\
**Post date:** [May 13, 2018, 3:50pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/6 "2018-05-13T15:50:40Z")

</div>

Having errors with xterm now,

When runnig  
sudo xinit env DISPLAY=:1 /home/\*/Desktop/EveOnline/evelauncher/evelauncher.sh – :1

I was getting error:  
xterm: Explicit shell already was /usr/bin/env  
xterm: bad command line option “DISPLAY=:1”

Followed by xterm usage options

Changed command for:  
sudo xinit -display :1 /home/\*/Desktop/EveOnline/evelauncher/evelauncher.sh – :1

No errors but same issue as before, stuck on the launcher after login

---

<div class="post-metadata">

**Author:** ![Whitehound](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/whitehound/32/59604_2.png) [@Whitehound](https://forums.eveonline.com/u/Whitehound)\
**Post date:** [May 13, 2018, 3:55pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/7 "2018-05-13T15:55:38Z")

</div>

My bad. Use `/usr/bin/env` instead of just `env`.

```nohighlight
sudo xinit /usr/bin/env DISPLAY=:1 /home/*/Desktop/EveOnline/evelauncher/evelauncher.sh -- :1

```

---

<div class="post-metadata">

**Author:** ![Tyrak\_Amphal](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/tyrak_amphal/32/72450_2.png) [@Tyrak\_Amphal](https://forums.eveonline.com/u/Tyrak_Amphal)\
**Post date:** [May 13, 2018, 3:58pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/8 "2018-05-13T15:58:26Z")

</div>

Encountering the same issue with this, stuck at the launcher.  
Seems to me like it’s not able to open the game through the launcher once in a new X server, but I don’t see any way the launcher can be bypassed on Linux

---

<div class="post-metadata">

**Author:** ![Whitehound](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/whitehound/32/59604_2.png) [@Whitehound](https://forums.eveonline.com/u/Whitehound)\
**Post date:** [May 13, 2018, 4:06pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/9 "2018-05-13T16:06:02Z")

</div>

You do know that when you start a new X server like this then it will run it as user root, because you’re running it without anything, meaning without a login manager or a window manager. Is this what you want?

---

<div class="post-metadata">

**Author:** ![Tyrak\_Amphal](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/tyrak_amphal/32/72450_2.png) [@Tyrak\_Amphal](https://forums.eveonline.com/u/Tyrak_Amphal)\
**Post date:** [May 13, 2018, 4:16pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/10 "2018-05-13T16:16:31Z")

</div>

Probably not, I’m a little inexperienced with setting up a new X.  
I was encountering the same issue when using fvwm earlier but saw some posts on the old forum where they’d used a similar method to my current bash script, the only difference being that they were running the Windows client with Wine.

It’s not that big an issue if I’m unable to run Eve on a separate X, it runs fine although a bit choppy anyway and I was only interested in potentially improving my performance. Other people also seem to have performance issues with Linux, especially Mint so this might be why I’m having issues with it. Might try a dual boot if it comes to it and just running Eve on a Windows partition although I’d prefer not to have Windows on my laptop.

---

<div class="post-metadata">

**Author:** ![Whitehound](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/whitehound/32/59604_2.png) [@Whitehound](https://forums.eveonline.com/u/Whitehound)\
**Post date:** [May 13, 2018, 4:28pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/11 "2018-05-13T16:28:25Z")

</div>

Well, I don’t use the Linux launcher for starting EVE, but I use the standard Windows launcher. So I can really only tell you how you can do it with the standard launcher.

I’ve just tested it for myself and this is how it works for me without running the game as root and with the launcher starting the game on the second X server.

```nohighlight
sudo xinit /bin/su USER -c '/usr/bin/env DISPLAY=:1 WINEDEBUG=-all WINEPREFIX="/home/USER/.eve" /usr/bin/wine "C:\\Program Files (x86)\\EVE\\Launcher\\evelauncher.exe"' -- :1

```

You obviously need to replace `USER` with your username and also correct the paths to what you’re using.

---

<div class="post-metadata">

**Author:** ![Tyrak\_Amphal](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/tyrak_amphal/32/72450_2.png) [@Tyrak\_Amphal](https://forums.eveonline.com/u/Tyrak_Amphal)\
**Post date:** [May 13, 2018, 4:31pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/12 "2018-05-13T16:31:49Z")

</div>

I’ll give the Windows launcher a try now, the only thing that did confuse me about the Linux launcher is that it runs without errors, the game just doesn’t even open. Makes me think this could be an issue with the X server but I’m inexperienced with X.

Will post Win launcher results

---

<div class="post-metadata">

**Author:** ![Whitehound](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/whitehound/32/59604_2.png) [@Whitehound](https://forums.eveonline.com/u/Whitehound)\
**Post date:** [May 13, 2018, 4:36pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/13 "2018-05-13T16:36:27Z")

</div>

By the way, if you’re doing this just to get a few more fps from the game then maybe just change the window manager. I’m using Xfce4 and it gives me the same fps as on a second X server. So it’s pretty optimal as it is with Xfce4.

If you’re using an Nvidia card can you also try setting the following variable:

```nohighlight
export __GL_THREADED_OPTIMIZATIONS=1

```

It enables multi-threading in the Nvidia driver for OpenGL-based applications, which is what WINE does when it emulates DX9 over OpenGL.

Another pretty common variable to set is this one:

```nohighlight
export WINEDEBUG=-all

```

It turns off all the debug messages from WINE and can make your applications sometimes run faster, too.

When you’re running some fancy window compositor then it can already cost you a few frames per second. So turning it off can give a boost. Also know that when you run a compositor and you use an Nvidia graphics card then you should go into nvidia-settings -\> X Server Display Configuration -\> Advanced… and force a composition pipeline. This will remove screen tearing for example.

---

<div class="post-metadata">

**Author:** ![Tyrak\_Amphal](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/tyrak_amphal/32/72450_2.png) [@Tyrak\_Amphal](https://forums.eveonline.com/u/Tyrak_Amphal)\
**Post date:** [May 13, 2018, 4:55pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/14 "2018-05-13T16:55:58Z")

</div>

When running the Windows launcher I’m now encountering issues with Qt platform plugin “windows”, will this be an issue with qt5 configuration? I haven’t messed around with it before.

I’ll give Xfce4 a try now and see if I have better results, from what I’ve heard a lot of Linux machines struggle to provide decent performance with Eve. Will look into driver related issues now as well.

---

<div class="post-metadata">

**Author:** ![Whitehound](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/whitehound/32/59604_2.png) [@Whitehound](https://forums.eveonline.com/u/Whitehound)\
**Post date:** [May 13, 2018, 5:04pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/15 "2018-05-13T17:04:10Z")

</div>

I cannot say. I’m using Debian with WINE 3.8 and Xfce4 and a GTX 960. It gives me 120 fps inside a station, up to 150 fps outside, with DX9 and all set to maximum, including AA turned on.

---

<div class="post-metadata">

**Author:** ![Tyrak\_Amphal](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/tyrak_amphal/32/72450_2.png) [@Tyrak\_Amphal](https://forums.eveonline.com/u/Tyrak_Amphal)\
**Post date:** [May 13, 2018, 5:42pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/16 "2018-05-13T17:42:07Z")

</div>

It’s definitely running a lot better, I ended up checking a thread about increasing performance slightly with linux-generic-hwe-16.04 xserver-xorg-hwe-16.04

Also apparently my GPU is set by default to powersaving so I’m required to run echo performance | sudo tee /sys/devices/system/cpu/cpu\*/cpufreq/scaling\_governor for performance settings.

I’ve also changed around some grub settings to allow better performance but haven’t rebooted yet, mid-high settings I’m now getting around 70 FPS in station which is a lot better, mainly due to Xfce4.

---

<div class="post-metadata">

**Author:** ![Whitehound](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/whitehound/32/59604_2.png) [@Whitehound](https://forums.eveonline.com/u/Whitehound)\
**Post date:** [May 13, 2018, 7:15pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/17 "2018-05-13T19:15:19Z")

</div>

> [@Tyrak\_Amphal](#):
>
> Also apparently my GPU is set by default to powersaving so I’m required to run echo performance | sudo tee /sys/devices/system/cpu/cpu\*/cpufreq/scaling\_governor for performance settings.

If you have the `sysfsutils` installed or if you can install them, then you should write the CPU governor into `/etc/sysfs.conf`. You then no longer need to do it manually, but it will set it for you during boot:

```plaintext
# Set CPU 0-3 to use the 'performance' governor
devices/system/cpu/cpu0/cpufreq/scaling_governor = performance
devices/system/cpu/cpu1/cpufreq/scaling_governor = performance
devices/system/cpu/cpu2/cpufreq/scaling_governor = performance
devices/system/cpu/cpu3/cpufreq/scaling_governor = performance

```

I myself prefer the ondemand-governor, which allows for some additional parameters. So I use the following in my `sysfs.conf` file:

```plaintext
# Set all CPUs to use the 'ondemand' governor
devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand
devices/system/cpu/cpu1/cpufreq/scaling_governor = ondemand
devices/system/cpu/cpu2/cpufreq/scaling_governor = ondemand
devices/system/cpu/cpu3/cpufreq/scaling_governor = ondemand
devices/system/cpu/cpu4/cpufreq/scaling_governor = ondemand
devices/system/cpu/cpu5/cpufreq/scaling_governor = ondemand
devices/system/cpu/cpu6/cpufreq/scaling_governor = ondemand
devices/system/cpu/cpu7/cpufreq/scaling_governor = ondemand

# 'ondemand' CPU governor, switch up at 50% load and stay up 10x longer
devices/system/cpu/cpufreq/ondemand/up_threshold = 50
devices/system/cpu/cpufreq/ondemand/sampling_down_factor = 10
devices/system/cpu/cpufreq/ondemand/ignore_nice_load = 1

```

If you have an Nvidia card and are willing to over-clock it then you can do this by setting the “Coolbits” in the X11 configuration file:

```plaintext
...
Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "Coolbits" "255"
    SubSection "Display"
        Depth 24
    EndSubSection
EndSection
...

```

When this option is set and you are using `nvidia-settings` will it now show text fields under PowerMixer where you can enter clock offsets. **USE AT YOUR OWN RISK.**

---

<div class="post-metadata">

**Author:** ![Tyrak\_Amphal](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/tyrak_amphal/32/72450_2.png) [@Tyrak\_Amphal](https://forums.eveonline.com/u/Tyrak_Amphal)\
**Post date:** [May 13, 2018, 7:52pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/18 "2018-05-13T19:52:37Z")

</div>

The ondemand seems like a better option rather than adjusting settings frequently, I’m still relatively inexperienced when it comes to anything in-depth in this area but it seems to run with no errors so far.

It’s not worth overclocking as my laptop has in-built graphics, I only really have Eve on it for when I’m not able to get on my desktop for any reason, but I’m at least able to dual-box at a stable 60 FPS with current set up. X Server issues were only really down to me assuming I would get better performance and the new environment seems to have cleaned up most of the problems I had. Now just cleaning up after all the messing around I’ve done.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [August 11, 2018, 7:52pm UTC](https://forums.eveonline.com/t/linux-launching-eve-in-separate-x-server/76035/19 "2018-08-11T19:52:37Z")

</div>

Closed on August 11, 2018, 7:52pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
