gpu:specify_which_gpu_should_take_priority

This is an old revision of the document!


GPU - Specify which GPU should take priority

GPU-intensive applications should be rendered on the more powerful discrete card.

The command xrandr –setprovideroffloadsink provider sink can be used to make a render offload provider send its output to the sink provider (the provider which has a display connected).


Change using the name

xrandr --setprovideroffloadsink radeon Intel

Change using the Provider Index

xrandr --setprovideroffloadsink 1 0

Usage

Use your discrete card for the applications who need it the most (for example games, 3D modellers…) by prepending the DRI_PRIME=1 environment variable:

DRI_PRIME=1 glxinfo | grep "OpenGL renderer"

returns

OpenGL renderer string: Gallium 0.4 on AMD TURKS

References

gpu/specify_which_gpu_should_take_priority.1597314109.txt.gz · Last modified: 2020/08/13 10:21 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki