Skip to main content

How to run GTA 5 of Epic Games on Void Linux

Legendary Launcher#

Legendary launcher is a terminal based epic games launcher. And yes, it lives up to the name, it's my favorite FOSS. Very minimal and way better than the og epic launcher!

I found it from here and installed the void linux package.

https://github.com/derrod/legendary

To log in

legendary auth

To see your games

legendary list-games

This is what it shows me

epic games list

And installing is like

legendary install [App name]

Steps#

Installing GTAV was like this

legendary install 9d2d0eb64d5c44529cece33fe2a46482

And to launch I would just

prime-run legendary launch 9d2d0eb64d5c44529cece33fe2a46482

EDIT- On a new system it worked out of the box. I believe it's because Wine had updated to 6.12. Well if it doesn't launch OOTB you could try the steps below.

But it didn't work out of the box. I first got some error where it would fail to verify my data. After a little bit of googling I found out that I could run it through proton as well.

This commment mentioned that you need to add PlayGTAV.exe in steam. I then looked up how to add it to steam. Turns out its pretty simple

Then I found this thread, these are the steps

  1. Go to add a game and add the game executable from the folder it is contained.

  2. Go to the games properties on Steam and force Proton use.

  3. Go to Launch options and Add --wine or --proton to the box. ( I added --proton)

I then tried the suggestions of this thread.

I created a directory ~/.proton

Then added the following to ~/.config/legendary/config.ini

[Legendary]
[9d2d0eb64d5c44529cece33fe2a46482]
wrapper = "/home/pixelfog/.steam/steam/steamapps/common/Proton 6.3/proton" run
no_wine = true
[9d2d0eb64d5c44529cece33fe2a46482.env]
STEAM_COMPAT_DATA_PATH = /home/pixelfog/.proton/
STEAM_COMPAT_CLIENT_INSTALL_PATH = .local/share/Steam/

(First line was already there, and I had to add the last environment variable as well cuz I'd get some error without it)

I thought I was all done, no. When i tried launching I got this error

eventfd too many open files

I found out that all I had to do was increase my ulimit by making my system ready for Esync.

https://github.com/lutris/docs/blob/master/HowToEsync.md

my current ulimit was 4096, I had to increase it to 500000+

I followed the second method

Modifying ulimits.conf
On Linux distributions not using Systemd or distributions using pam-limits.conf (Arch Linux, Fedora, Solus,... ), you (with root privileges or sudo) need to edit /etc/security/limits.conf.
Change username to your actual username. Once the file is edited, reboot for the changes to take effect, and verify by running ulimit -Hn to see the new limit (524288).
username hard nofile 524288

And after this I had to add the line

session required /lib/security/pam_limits.so

to /etc/pam.d/login and /etc/pam.d/lxdm (my display manager) at the bottom.

After saving and rebooting ulimit -Hn showed the value I put!

And this time GTA 5 finally worked!!!

Optional#

I installed MangoHud package to monitor my FPS, I just had to add it like this while launching my game

prime-run mangohud legendary launch 9d2d0eb64d5c44529cece33fe2a46482

fps

I also set my CPU scaling governor to performance, my default was powersave

I installed cpupower package for it. And then I did this

cpupower -c all frequency-set -g performance

This sets all the cores to performance mode(requires sudo previleges).

This really improved my fps, and I turned it off back to powersave after closing the game.

This is how you check the CPU scaling governor

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor