gpu:specify_which_gpu_should_take_priority
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
gpu:specify_which_gpu_should_take_priority [2020/08/13 10:27] – [Get the list of GPU drivers] 192.168.1.1 | gpu:specify_which_gpu_should_take_priority [2020/08/18 07:42] (current) – removed 192.168.1.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== GPU - Specify which GPU should take priority ====== | ||
- | GPU-intensive applications should be rendered on the more powerful discrete card. | ||
- | |||
- | If more than one GPU is install, you can specify which one should be used. | ||
- | |||
- | ---- | ||
- | |||
- | ===== Get the list of GPU drivers ===== | ||
- | |||
- | See [[GPU:Check the list of attached graphic drivers|Check the list of attached graphic drivers]] | ||
- | |||
- | |||
- | Let's assume you receive this result: | ||
- | |||
- | <code bash> | ||
- | xrandr --listproviders | ||
- | |||
- | Providers: number : 2 | ||
- | Provider 0: id: 0x7d cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 4 associated providers: 1 name:Intel | ||
- | Provider 1: id: 0x56 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 1 associated providers: 1 name:radeon | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Change using the name ===== | ||
- | |||
- | <code bash> | ||
- | xrandr --setprovideroffloadsink radeon Intel | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Change using the Provider Index ===== | ||
- | |||
- | <code bash> | ||
- | 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: | ||
- | |||
- | <code bash> | ||
- | DRI_PRIME=1 glxinfo | grep " | ||
- | </ | ||
- | |||
- | returns | ||
- | |||
- | <code bash> | ||
- | OpenGL renderer string: Gallium 0.4 on AMD TURKS | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== References ===== | ||
- | |||
- | https:// |
gpu/specify_which_gpu_should_take_priority.1597314477.txt.gz · Last modified: 2020/08/13 10:27 by 192.168.1.1