Steam: Difference between revisions
(mesa-dri-gallium) |
WhyNotHugo (talk | contribs) (→eventfd: Too many open files: Deduplicate ulimit info; point to PAM instead.) |
||
Line 44: | Line 44: | ||
=== eventfd: Too many open files === | === eventfd: Too many open files === | ||
Due to a low amount of allowed open file descriptors, Proton games may crash shortly after launching. This can be worked around by disabling esync but many games will perform measurably worse without it. Instead, user limits should be increased. | Due to a low amount of allowed open file descriptors, Proton games may crash shortly after launching. This can be worked around by disabling esync but many games will perform measurably worse without it. Instead, user limits should be increased. In order to do this, you will need [[PAM]] and a PAM enabled login. | ||
In order to do this, you will need PAM and a PAM enabled login | |||
Add the following to <code>/etc/security/limits.conf</code>: | Add the following to <code>/etc/security/limits.conf</code>: | ||
@users hard nofile 524288 | @users hard nofile 524288 | ||
{{Note|Although you should already belong to the users group, you can run <code>groups</code> to check.}} | {{Note|Although you should already belong to the users group, you can run <code>groups</code> to check.}} | ||
Reboot and run <code>ulimit -Hn</code> to verify the new limits are applied. | Reboot and run <code>ulimit -Hn</code> to verify the new limits are applied. |
Revision as of 10:08, 27 January 2023
Steam is a popular game distribution platform by Valve.
Installation
Steam requires glibc to run, and thus doesn't straight up run on Alpine Linux. To work around this problem, we'll use Flatpak. Make sure you have the Flathub repository installed.
# apk add flatpak $ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo $ flatpak install com.valvesoftware.Steam
After installation Steam can be started using it's .desktop file or on the command line:
$ flatpak run com.valvesoftware.Steam
Troubleshooting
My controllers aren't detected
By default Steam doesn't have permission to read your controllers. This can be fixed by installing an udev rule from the official Steam package, but the udev rules are also available as an Alpine package.
# apk add steam-devices
SteamVR won't launch
Out of the box SteamVR might not be able to launch and give you various errors. Steam tries to fix this itself by setting the right capabilities on the SteamVR binary, but this doesn't work in the Flatpak. Instead we'll have do it manually.
# setcap CAP_SYS_NICE+ep ~/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor-launcher
Then restart Steam.
There is an issue for this on the Flathub repository.
Steam - Error: OpenGL GLX extension not supported by display
Add the Mesa gallium driver and reboot your system.
# apk add mesa-dri-gallium
eventfd: Too many open files
Due to a low amount of allowed open file descriptors, Proton games may crash shortly after launching. This can be worked around by disabling esync but many games will perform measurably worse without it. Instead, user limits should be increased. In order to do this, you will need PAM and a PAM enabled login.
Add the following to /etc/security/limits.conf
:
@users hard nofile 524288
groups
to check.Reboot and run ulimit -Hn
to verify the new limits are applied.