Steam/zh: Difference between revisions
Created page with "=== 额外游戏手柄的 udev 规则 ===" |
Updating to match new version of source page |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 65: | Line 65: | ||
dedicatedServer.openFirewall = true; # For Source Dedicated Server hosting | dedicatedServer.openFirewall = true; # For Source Dedicated Server hosting | ||
# Other general flags if available can be set here. | # Other general flags if available can be set here. | ||
}; | }; | ||
# Tip: For improved gaming performance, you can also enable GameMode: | |||
# programs.gamemode.enable = true; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
| Line 86: | Line 86: | ||
# Clean Quiet Boot | # Clean Quiet Boot | ||
boot.kernelParams = [ "quiet" "splash" "console=/dev/null" ]; | boot.kernelParams = [ "quiet" "splash" "console=/dev/null" ]; | ||
plymouth.enable = true; | boot.plymouth.enable = true; | ||
programs.gamescope = { | programs.gamescope = { | ||
| Line 102: | Line 102: | ||
settings = { | settings = { | ||
default_session = { | default_session = { | ||
command = "${pkgs.gamescope}/bin/gamescope -W 1920 -H 1080 -f -e --xwayland-count 2 --hdr-enabled --hdr-itm-enabled -- steam -pipewire-dmabuf -gamepadui - | command = "${pkgs.gamescope}/bin/gamescope -W 1920 -H 1080 -f -e --xwayland-count 2 --hdr-enabled --hdr-itm-enabled -- steam -pipewire-dmabuf -gamepadui -steamdeck -steamos3 > /dev/null 2>&1"; | ||
user = "USERNAME_HERE"; | user = "USERNAME_HERE"; | ||
}; | }; | ||
| Line 209: | Line 209: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
=== Fix missing icons for games in GNOME dock and activities overview === | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
GNOME uses the window class to determine the icon associated with a window. Steam currently doesn't set the required key for this in its .desktop files<ref>https://github.com/ValveSoftware/steam-for-linux/issues/12207</ref>, but you can fix this manually by editing the <code>StartupWMClass</code> key for each game's .desktop file, found under <code>~/.local/share/applications/</code>. | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
For games running through Proton, the value should be <code>steam_app_<game_id></code> (where <code><game_id></code> matches the value after steam://rungameid/ on the <code>Exec</code> line). | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
For games running natively, the value should match the game's main executable. | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
For example, the modified .desktop file for Valheim looks like this: | |||
</div> | |||
<syntaxhighlight lang="desktop"> | |||
[Desktop Entry] | |||
Name=Valheim | |||
Comment=Play this game on Steam | |||
Exec=steam steam://rungameid/892970 | |||
Icon=steam_icon_892970 | |||
Terminal=false | |||
Type=Application | |||
Categories=Game; | |||
StartupWMClass=valheim.x86_64 | |||
</syntaxhighlight> | |||
<span id="Troubleshooting"></span> | <span id="Troubleshooting"></span> | ||
== 故障排除 == | == 故障排除 == | ||
| Line 310: | Line 340: | ||
To find the vendor and product ID of a device [https://search.nixos.org/packages?channel=unstable&show=usbutils&from=0&size=50&sort=relevance&type=packages&query=usbutils usbutils] might be useful | To find the vendor and product ID of a device [https://search.nixos.org/packages?channel=unstable&show=usbutils&from=0&size=50&sort=relevance&type=packages&query=usbutils usbutils] might be useful | ||
</div> | </div> | ||
< | <span id="Known_issues"></span> | ||
=== | === 已知问题 === | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
"Project Zomboid" may report "couldn't determine 32/64 bit of java". This is not related to java at all, it carries its own outdated java binary that refuses to start if path contains non-Latin characters. Check for errors by directly starting local java binary within <code>steam-run bash</code>. | "Project Zomboid" may report "couldn't determine 32/64 bit of java". This is not related to java at all, it carries its own outdated java binary that refuses to start if path contains non-Latin characters. Check for errors by directly starting local java binary within <code>steam-run bash</code>. | ||
| Line 320: | Line 349: | ||
Resetting your password through the [[Steam]] app may fail at the CAPTCHA step repeatedly, with [[Steam]] itself reporting that the CAPTCHA was not correct, even though the CAPTCHA UI shows success. Resetting password through the [[Steam]] website should work around that. | Resetting your password through the [[Steam]] app may fail at the CAPTCHA step repeatedly, with [[Steam]] itself reporting that the CAPTCHA was not correct, even though the CAPTCHA UI shows success. Resetting password through the [[Steam]] website should work around that. | ||
</div> | </div> | ||
< | <span id="References"></span> | ||
== | == 参考 == | ||
[[Category:Applications]] | [[Category:Applications]] | ||
[[Category:Gaming]] | [[Category:Gaming]] | ||