- @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
> ...
x11
xhost +local:
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
?-
(ex.
ls -la /root/.Xauthority
shows d-rw... and looking inside it has.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
(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
- 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