User Tools

Site Tools


gpu:specify_which_gpu_should_take_priority

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
gpu:specify_which_gpu_should_take_priority [2020/08/13 10:33] 192.168.1.1gpu: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 
-</code> 
- 
----- 
- 
-===== Change using the name ===== 
- 
-<code bash> 
-xrandr --setprovideroffloadsink radeon Intel 
-</code> 
- 
----- 
- 
-===== Change using the Provider Index ===== 
- 
-<code bash> 
-xrandr --setprovideroffloadsink 1 0 
-</code> 
- 
----- 
- 
-===== Usage ===== 
- 
-Use a specific card for the applications that need it the most, such as games. 
- 
-To select the card with Provider 1, prepend **DRI_PRIME=1**: 
- 
-<code bash> 
-DRI_PRIME=1 glxinfo | grep "OpenGL renderer" 
-</code> 
- 
-returns 
- 
-<code bash> 
-OpenGL renderer string: Gallium 0.4 on AMD TURKS 
-</code> 
- 
- 
-<WRAP info> 
-**NOTE:**  Other applications will still use the default first card.   
- 
-These settings are also lost once the X server restarts.  You may want to make a script and auto-run it at the startup of your desktop environment (alternatively, put it in /etc/X11/xinit/xinitrc.d/). 
- 
-This may reduce your battery life and increase heat though.  
- 
-</WRAP> 
- 
----- 
- 
-===== References ===== 
- 
-https://wiki.archlinux.org/index.php/PRIME 
gpu/specify_which_gpu_should_take_priority.1597314839.txt.gz · Last modified: 2020/08/13 10:33 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki