Difference between revisions of "Steam"
m (add explanation to path name) |
(Adding some information about Proton Steam Play) |
||
Line 98: | Line 98: | ||
== Tips and tricks == | == Tips and tricks == | ||
+ | |||
+ | === Proton Steam-Play === | ||
+ | |||
+ | Valve developed a compatibility tool for Steam Play based on Wine and additional components. It allows you to launch many Windows games (see [https://www.protondb.com/ compatibility list]). | ||
+ | |||
+ | It's open-source and avaliable on [https://github.com/ValveSoftware/Proton/ Github]. You can also install it from AUR with {{AUR|proton}} or {{AUR|proton-git}}. | ||
+ | |||
+ | Proton need to be enabled on Steam client : {{ic|Steam > Settings > Steam Play}} | ||
=== Big Picture Mode without a window manager === | === Big Picture Mode without a window manager === | ||
Line 198: | Line 206: | ||
Normally a Steam controller requires the use of the Steam-overlay. In non-Steam native Linux games however the overlay may not be practical. For that, while the Steam client is running it will maintain a "desktop configuration". With your Steam controller, configure the desktop configuration for it as a generic XBOX controller. As long as the Steam client is running you can then use your Steam controller in other games, such as GOG games, as an XBOX controller. Make sure to select your type of controller to map to in "general controller settings". | Normally a Steam controller requires the use of the Steam-overlay. In non-Steam native Linux games however the overlay may not be practical. For that, while the Steam client is running it will maintain a "desktop configuration". With your Steam controller, configure the desktop configuration for it as a generic XBOX controller. As long as the Steam client is running you can then use your Steam controller in other games, such as GOG games, as an XBOX controller. Make sure to select your type of controller to map to in "general controller settings". | ||
+ | |||
+ | |||
== Troubleshooting == | == Troubleshooting == |
Revision as of 14:14, 5 June 2019
Steam is a popular game distribution platform by Valve.
Contents
Installation
Enable the multilib repository and install the steam package.
The following requirements must be fulfilled in order to run Steam on Arch Linux:
- Installed 32-bit version OpenGL graphics driver.
- Generated en_US.UTF-8 locale, preventing invalid pointer error.
- The GUI heavily uses the Arial font. See Microsoft fonts. An alternative is to use ttf-liberation or fonts provided by Steam instead.
- Install wqy-zenhei to add support for Asian languages.
SteamCMD
Install steamcmdAUR for the command-line version of Steam.
Alternative Flatpak installation
Steam can also be installed with Flatpak as com.valvesoftware.Steam
from Flathub. The easiest way to install it for the current user is by using the Flathub repo and flatpak command:
flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo flatpak --user install flathub com.valvesoftware.Steam flatpak run com.valvesoftware.Steam
The Flatpak application currently does not support themes. Also you currently can't run games via optirun
/primusrun
, see Issue#869 for more details.
By default Steam won't be able to access your home directory, you can run the following command to allow it, so that it behaves like on Ubuntu or SteamOS:
flatpak override com.valvesoftware.Steam --filesystem=$HOME
Asian Font Problems with Flatpak
If you are having problem getting Asian fonts to show in game, it's because org.freedesktop.Platform does not include it. First try mounting your local font :
flatpak run --filesystems=~/.local/share/fonts --filesystem=~/.config/fontconfig com.valvesoftware.Steam
If that doesn't work, consider this hack: make the fonts available by directly copying the font files into org.freedesktop.Platform's directories, e.g.
# replace ? with your version and hash /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/?/?/files/etc/fonts/conf.avail /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/?/?/files/etc/fonts/conf.d /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/?/?/files/share/fonts
Directory structure
The default Steam install location is ~/.local/share/Steam
. If Steam cannot find it, it will prompt you to reinstall it or select the new location. This article uses the ~/.steam/root
symlink to refer to the install location.
Library folders
Every Steam application has a unique AppID, which you can find out by looking at its Steam Store page path.
Steam installs games into a directory under LIBRARY/steamapps/common/
. LIBRARY
normally is
~/.steam/root
but you can also have multiple library folders (Steam > Settings > Downloads > Steam Library Folders).
In order for Steam to recognize a game it needs to have an
appmanifest_AppId.acf
file in LIBRARY/steamapps/
. The appmanifest file uses the
KeyValues format and its installdir
property
determines the game directory name.
Usage
steam [ -options ] [ steam:// URL ]
For the available command-line options see the Command Line Options article on the Valve Developer Wiki.
Steam also accepts an optional Steam URL, see the Steam browser procotol.
Launch options
When you launch a Steam game, Steam executes its launch command in a Bash shell. To let you alter the launch command Steam provides launch options, which can be set for a game by right-clicking on it in your library, selecting Properties and clicking on Set Launch Options.
By default Steam simply appends your option string to the launch command. To set environment variables or
pass the launch command as an argument to another command you can use the %command%
substitute.
Examples
- only arguments:
-foo
- environment variables:
FOO=bar BAZ=bar %command% -baz
- completely different command:
othercommand # %command%
Tips and tricks
Proton Steam-Play
Valve developed a compatibility tool for Steam Play based on Wine and additional components. It allows you to launch many Windows games (see compatibility list).
It's open-source and avaliable on Github. You can also install it from AUR with protonAUR or proton-gitAUR.
Proton need to be enabled on Steam client : Steam > Settings > Steam Play
Big Picture Mode without a window manager
To start Steam in Big Picture Mode from a Display manager, you can either:
- Install steamos-compositorAUR
- Alternatively, install steamos-compositor-plusAUR, which hides the annoying color flashing on startup of Proton games and adds a fix for games that start in the background
- Manually add a Steam entry (but you lose the steam compositor advantages: mainly you can't control Big Picture mode with keyboard or gamepad):
create a /usr/share/xsessions/steam-big-picture.desktop
file with the following contents:
/usr/share/xsessions/steam-big-picture.desktop
[Desktop Entry] Name=Steam Big Picture Mode Comment=Start Steam in Big Picture Mode Exec=/usr/bin/steam -bigpicture TryExec=/usr/bin/steam Icon= Type=Application
Steam skins
The Steam interface can be customized using skins. Skins can overwrite interface-specific files in ~/.steam/root
.
To install a skin:
- Place its directory in
~/.steam/root/skins
. - Open Steam > Settings > Interface and select it.
- Restart Steam.
An extensive list of skins can be found in this Steam forums post.
Creating skins
Nearly all Steam styles are defined in ~/.steam/root/resource/styles/steam.styles
(the file is over 3,500 lines long). For a skin to be recognized it needs its own resource/styles/steam.styles
.
When a Steam update changes the official steam.styles
your skin may become outdated, potentially resulting in visual errors.
See ~/.steam/root/skins/skins_readme.txt
for a primer on how to create skins.
Changing the Steam notification position
The default Steam notification position is bottom right.
You can change the Steam notification position by altering Notifications.PanelPosition
in
resource/styles/steam.styles
for desktop notifications, andresource/styles/gameoverlay.styles
for in-game notifications
Both files are overwritten by Steam on startup and steam.styles
is only read on startup.
gameoverlay.styles
e.g. XCOM: Enemy Unknown.Use a skin
You can create a skin to change the notification position to your liking. For example to change the position to top right:
$ cd ~/.steam/root/skins $ mkdir -p Top-Right/resource $ cp -r ~/.steam/root/resource/styles Top-Right/resource $ sed -i '/Notifications.PanelPosition/ s/"[A-Za-z]*"/"TopRight"/' Top-Right/resource/styles/*
Live patching
gameoverlay.styles
can be overwritten while Steam is running, allowing you to have game-specific notification positions.
~/.steam/notifpos.sh
sed -i "/Notifications.PanelPosition/ s/\"[A-Za-z]*\"/\"$1\"/" ~/.steam/root/resource/styles/gameoverlay.styles
And the #Launch options should be something like:
~/.steam/notifpos.sh TopLeft && %command%
In-home streaming
Steam has built-in support for in-home streaming.
See this Steam Community guide on how to setup a headless in-home streaming server on Linux.
Different subnets
Steam client will not be able to detect host if both are on different subnets, which is common case when using VPN to your home network. Even if both client and server can ping each other - steam client would still not be able to detect host, so you need to force it. To do it, start Steam with below command:
$ steam -console
Wait until Steam starts. Once it loaded, you will find extra tab named "Console". Open it and then paste below command with correct host IP address:
connect_remote <host_ip>:27036
You will see notification that you can now stream games from host machine.
Steam Controller
Normally a Steam controller requires the use of the Steam-overlay. In non-Steam native Linux games however the overlay may not be practical. For that, while the Steam client is running it will maintain a "desktop configuration". With your Steam controller, configure the desktop configuration for it as a generic XBOX controller. As long as the Steam client is running you can then use your Steam controller in other games, such as GOG games, as an XBOX controller. Make sure to select your type of controller to map to in "general controller settings".
Troubleshooting
See also
- Gentoo Wiki article
- The Big List of DRM-Free Games on Steam at PCGamingWiki
- List of DRM-free games at Wikia
- Steam Linux store
- Proton Compatibility tool for Steam Play based on Wine and additional components.