ubuntu:gpu:specify_which_gpu_should_take_priority
Differences
This shows you the differences between two versions of the page.
ubuntu:gpu:specify_which_gpu_should_take_priority [2020/08/18 07:42] – created 192.168.1.1 | ubuntu:gpu:specify_which_gpu_should_take_priority [2020/08/18 07:43] (current) – 192.168.1.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - GPU - Determine | + | ====== Ubuntu - GPU - Specify which GPU should take priority |
- | <code bash> | + | GPU-intensive applications should be rendered on the more powerful discrete card. |
- | sudo lshw -c video | + | |
- | </ | + | |
- | returns: | + | If more than one GPU is install, you can specify which one should be used. |
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Get the list of GPU drivers ===== | ||
+ | |||
+ | See [[Ubuntu: | ||
+ | |||
+ | |||
+ | Let's assume you receive this result: | ||
<code bash> | <code bash> | ||
- | *-display | + | xrandr |
- | description: | + | |
- | product: Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] | + | Providers: number |
- | | + | Provider |
- | physical id: 0 | + | Provider 1: id: 0x56 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 1 associated providers: 1 name:radeon |
- | bus info: pci@0000:0b:00.0 | + | |
- | | + | |
- | width: 64 bits | + | |
- | clock: 33MHz | + | |
- | | + | |
- | configuration: driver=amdgpu latency=0 | + | |
- | | + | |
</ | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | </ | ||
---- | ---- | ||
- | ===== Check the AMD Kernel Modules | + | ===== Change using the name ===== |
<code bash> | <code bash> | ||
- | lsmod | grep amd | + | xrandr --setprovideroffloadsink radeon Intel |
</ | </ | ||
- | returns | + | ---- |
+ | |||
+ | ===== Change using the Provider Index ===== | ||
<code bash> | <code bash> | ||
- | edac_mce_amd | + | xrandr --setprovideroffloadsink 1 0 |
- | kvm_amd | + | |
- | kvm | + | |
- | amdgpu | + | |
- | amd_iommu_v2 | + | |
- | gpu_sched | + | |
- | ttm | + | |
- | drm_kms_helper | + | |
- | ccp 86016 1 kvm_amd | + | |
- | drm | + | |
- | i2c_algo_bit | + | |
</ | </ | ||
---- | ---- | ||
- | ===== Check boot messages for more information about the graphics card driver in use ===== | + | ===== 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> | <code bash> | ||
- | dmesg | grep -i amdgpu | + | DRI_PRIME=1 glxinfo |
</ | </ | ||
Line 61: | Line 53: | ||
<code bash> | <code bash> | ||
- | [ 7.899654] [drm] amdgpu kernel modesetting enabled. | + | OpenGL renderer string: Gallium |
- | [ 7.899892] amdgpu 0000:0b:00.0: remove_conflicting_pci_framebuffers: | + | |
- | [ 7.899894] amdgpu 0000: | + | |
- | [ 7.899894] amdgpu 0000: | + | |
- | [ 7.899896] fb0: switching to amdgpudrmfb from EFI VGA | + | |
- | [ 7.900035] amdgpu 0000: | + | |
- | [ 7.900065] amdgpu 0000: | + | |
- | [ 7.930462] amdgpu 0000: | + | |
- | [ 7.930463] amdgpu 0000: | + | |
- | [ 7.930796] [drm] amdgpu: 8176M of VRAM memory ready | + | |
- | [ 7.930799] [drm] amdgpu: 8176M of GTT memory ready. | + | |
- | [ 8.826969] amdgpu: [powerplay] smu driver if version = 0x00000033, smu fw if version = 0x00000035, smu fw version = 0x002a3200 (42.50.0) | + | |
- | [ 8.826971] amdgpu: [powerplay] SMU driver if version not matched | + | |
- | [ 8.839519] amdgpu: [powerplay] SMU is initialized successfully! | + | |
- | [ 8.867710] snd_hda_intel 0000: | + | |
- | [ 8.974665] fbcon: amdgpudrmfb (fb0) is primary device | + | |
- | [ 8.974715] amdgpu 0000: | + | |
- | [ 9.002813] amdgpu 0000: | + | |
- | [ 9.002815] amdgpu 0000: | + | |
- | [ 9.002816] amdgpu 0000: | + | |
- | [ 9.002816] amdgpu 0000: | + | |
- | [ 9.002817] amdgpu 0000: | + | |
- | [ 9.002818] amdgpu 0000: | + | |
- | [ 9.002819] amdgpu 0000: | + | |
- | [ 9.002820] amdgpu 0000: | + | |
- | [ 9.002820] amdgpu 0000: | + | |
- | [ 9.002821] amdgpu 0000: | + | |
- | [ 9.002822] amdgpu 0000: | + | |
- | [ 9.002822] amdgpu 0000: | + | |
- | [ 9.002823] amdgpu 0000: | + | |
- | [ 9.002824] amdgpu 0000: | + | |
- | [ 9.002824] amdgpu 0000: | + | |
- | [ 9.002825] amdgpu 0000: | + | |
- | [ 9.002826] amdgpu 0000: | + | |
- | [ 9.028708] [drm] Initialized amdgpu 3.35.0 20150101 for 0000: | + | |
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | These settings are also lost once the X server restarts. | ||
+ | |||
+ | This may reduce your battery life and increase heat though. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | https:// |
ubuntu/gpu/specify_which_gpu_should_take_priority.1597736538.txt.gz · Last modified: 2020/08/18 07:42 by 192.168.1.1