- @see https://askubuntu.com/questions/1344694/vulkan-tries-to-use-intel-gpu-by-default
- addion OP to Steam game results in Vulkan shaders being processed on NVIDIA GPU
> echo $XDG_SESSION_TYPE
wayland
> ...
x11xhost +local:
- run
ps a |grep X - outputs ex.
/run/user/1000/gdm/Xauthority DISPLAY=:0|1 XAUTHORITY=/run/user/1000/gdm/Xauthority nvidia-settings
> (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 to
/root/.Xauthority?- (ex.
ls -la /root/.Xauthorityshowsd-rw...and looking inside it has.Xauthority.)- Request new
xhost +local:$DISPLAY- in system default terminal (not tmux, etc.)
su -ln -s /home/(user)/.Xauthority /root/.Xauthority- delete it
su -- add to
/root/.profile:export DISPLAY=:1;on a new line
- (ex.
Can be easier to see autocomplete of $DISPLAY/etc. by using fish instead of sh/bash
- run as root
nvidia-settings(should not seeInvalid MIT-MAGIC-COOKIE-1 key)
(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 - appIdof 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
- for a game to appear on this list you have to launch your game at least once via
- 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
- launch it via GUI:
- https://www.youtube.com/watch?v=Q_xMmWt6sEY&t=2m50s
@see https://www.reddit.com/r/linux_gaming/comments/1dj4z9u/is_there_something_wrong_with_my_gpu/
about:config->layers.acceleration.force-enabled->true
Deadlock - virtual memory/etc.: -> Steam Thread <-
1.Game not launching on a NVIDIA GPU? try
`PROTON_HIDE_NVIDIA_GPU=1 %command%`
in the launch options
2.Advanced, experimental launch options:
`gamemoderun %command% -high -nojoy +engine_low_latency_sleep_after_client_tick true +mat_queue_mode 2 +cl_forcepreload 1`
- edit as su (
nano /etc/sysctl.conf) and add a line at the bottom of a filevm.max_map_count=1048576- ~8GB of virtual memory - default on newer OSes
- alt as sudo
sysctl -w vm.max_map_count=1048576