Skip to content

Instantly share code, notes, and snippets.

@gogromat
Last active June 27, 2024 02:30
Show Gist options
  • Save gogromat/68ed18c2983a96deb888a3c198f6692a to your computer and use it in GitHub Desktop.
Save gogromat/68ed18c2983a96deb888a3c198f6692a to your computer and use it in GitHub Desktop.
NVIDIA fixes on Debian

Vulkan select NVIDIA GPU ICS loader on Linux

Check if session is Wayland or X11

> echo $XDG_SESSION_TYPE
wayland
> ...
x11

Steam not using Nvidia GPU

xhost +local:

Root missing $DISPLAY hacks

Consider following scenario:

> (user) echo $DISPLAY
:1
> (user) echo $XAUTHORITY
/run/user/1000/gdm/Xauthority
> su
> echo $DISPLAY
:1
> echo $XAUTHORITY
/run/user/1000/gdm/Xauthority
> su -
> echo $DISPLAY

> echo $XAUTHORITY

>

I have display :1, yours may vary.

When (user) or su are requesting $DISPLAY and it is set but when not inheriting from (user) $DISPLAY:

  • something happened with /root/.Xauthority?
    • su -

    • ln -s /home/(user)/.Xauthority /root/.Xauthority

    • su -

    • add to /root/.profile:

      • export DISPLAY=:1; on a new line

Can be easier to see autocomplete of $DISPLAY/etc. by using fish instead of sh/bash

Make Steam games work

(Overwatch/Apex/etc)

  • Steam -> Compatibility -> Enable Proton Edge/Experimental (top) / Hotfix (bottom)

  • If game doesn't load (but you have launched it at least once) or if you cannot Alt+Tab

    • https://www.youtube.com/watch?v=Q_xMmWt6sEY&t=2m50s
      • each game on Steam has appId which you can see on a website
    • Install protontricks
      • launch it via GUI: protontricks --gui
        • as a user, not as su because steam is installed for a user
        • select GameName - appId of a game you want to change
          • for a game to appear on this list you have to launch your game at least once via Steam -> right click game -> settings -> Compatibility -> [+] -> Proton
        • choose top launch Select the default wineprefix -> Run winecfg -> Compatibility -> set Resolution to your monitor
          • next time game launches it would go through this wincfg

Tearing in browser (FF)

@see https://www.reddit.com/r/linux_gaming/comments/1dj4z9u/is_there_something_wrong_with_my_gpu/

  • about:config -> layers.acceleration.force-enabled -> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment