NVIDIA: Difference between revisions
imported>Rkitover describe external display specialisation |
imported>Rkitover Add instructions for offloading Steam. |
||
Line 171: | Line 171: | ||
To use this, boot your laptop with the lid open, choose the <code>external-display</code> configuration in the boot menu, and continue to keep the lid open until your desktop appears on the external display. At this point you can close the lid. | To use this, boot your laptop with the lid open, choose the <code>external-display</code> configuration in the boot menu, and continue to keep the lid open until your desktop appears on the external display. At this point you can close the lid. | ||
==== offloading steam ==== | |||
First, add this to your <code>~/.bashrc</code> : | |||
<syntaxhighlight lang="bash"> | |||
case "$XDG_DATA_DIRS" in | |||
$HOME/.local/share:*) | |||
;; | |||
*) | |||
export XDG_DATA_DIRS=$HOME/.local/share:$XDG_DATA_DIRS | |||
;; | |||
esac | |||
</syntaxhighlight> | |||
. | |||
For NixOS Steam run: | |||
<syntaxhighlight lang="bash"> | |||
mkdir -p ~/.local/share/applications | |||
sed 's/^Exec=/&nvidia-offload /' /run/current-system/sw/share/applications/steam.desktop > ~/.local/share/applications/steam.desktop | |||
</syntaxhighlight> | |||
. | |||
For Flatpak Steam run: | |||
<syntaxhighlight lang="bash"> | |||
mkdir -p ~/.local/share/applications | |||
sed 's/^Exec=/&nvidia-offload /' /var/lib/flatpak/exports/share/applications/com.valvesoftware.steam.desktop > ~/.local/share/applications/com.valvesoftware.steam.desktop | |||
</syntaxhighlight> | |||
. | |||
Then restart your graphical environment session. | |||
==== sync mode ==== | ==== sync mode ==== |