Difference between revisions of "Configure Graphics Cards"
More PRIME!
imported>Cscs (→PRIME) |
imported>Cscs (More PRIME!) |
||
Line 184: | Line 184: | ||
=Dual GPU= | =Dual GPU= | ||
==PRIME GPU offloading== | |||
DRI_PRIME=1 | If your hardware includes more than one GPU card you can make use of PRIME offloading. PRIME is a technology used to manage hybrid graphics found on recent desktops and laptops (Optimus for NVIDIA, AMD Dynamic Switchable Graphics for Radeon). PRIME detects both cards and automatically selects Intel card by default; using the more powerful discrete graphics card, when called, for more demanding applications. | ||
In Manjaro this will automatically be available for hybrid graphics systems using intel/modesetting for the integrated card and free drivers (AMDGPU or Nouveau) for the dGPU. | |||
You may choose to run a program with a specific GPU, prepending the application's command with ''DRI_PRIME=x'', where ''x'' is the card priority number. | |||
For example, to run an application using the second card prepend the application command with '''DRI_PRIME=1''' | |||
DRI_PRIME=1 glxspheres64 | |||
To use the 1st card (usually when the CPU has an embedded GPU, this is used) | To use the 1st card (usually when the CPU has an embedded GPU, this is used) | ||
DRI_PRIME=0 | DRI_PRIME=0 glxspheres64 | ||
If you want to always run some application with the discrete gpu, you may copy that application's .desktop file to {{ic|~/.local/share/applications/}} and edit the "Exec" property | |||
Exec=DRI_PRIME=1 inkscape | |||
Some applications (usually games like steam) may have an embedded option to specify the command line, where it is preferred to use this way. | |||
For example, in Steam, select a game - that you want to run using your discrete Nvidia card - from the Library page of the Steam client, right-click, and select Properties. | |||
Click the SET LAUNCH OPTIONS... button and specify for the command line options followed by the default launch hook %command%. | |||
DRI_PRIME=1 %command% | |||
To use the dGPU by default see '''[https://wiki.archlinux.org/index.php/PRIME#Reverse_PRIME Reverse Prime]''' | |||
= NVIDIA Proprietary (non-free) drivers = | = NVIDIA Proprietary (non-free) drivers = | ||
If you have a Nvidia card, you have the option to use the proprietary (closed | If you have a Nvidia card, you have the option to use the proprietary (closed source = non-free) drivers instead of the open source (free) nouveau driver. | ||
For Legacy/older nvidia cards, Manjaro maintains older drivers for compatibility. In these cases the driver name is different, instead of nvidia it is nvidia-390xx or nvidia340xx, whether in nvidia-only or bumblebee mhwd driver configuration. | For Legacy/older nvidia cards, Manjaro maintains older drivers for compatibility. In these cases the driver name is different, instead of nvidia it is nvidia-390xx or nvidia340xx, whether in nvidia-only or bumblebee mhwd driver configuration. | ||
Line 213: | Line 232: | ||
For Optimus laptops or dual GPU hardware with intel and nvidia GPUs, you have three options to utilize the card driver usage at your preference or your hardware capabilities. | For Optimus laptops or dual GPU hardware with intel and nvidia GPUs, you have three options to utilize the card driver usage at your preference or your hardware capabilities. | ||
'''[[#PRIME]] (mhwd default)''' | '''[[#nvidia-prime|PRIME]] (mhwd default)''' | ||
'''[[#Bumblebee]]''' | '''[[#Bumblebee|Bumblebee]]''' | ||
'''[[Optimus Manager]]''' | '''[[Optimus Manager]]''' | ||
When you install Manjaro with the non-free option selected from Grub menu, or when you use automatic driver installation, bumblebee is installed by default. In these cases, the mhwd driver is named "video-hybrid-intel-nvidia-bumblebee". | When you install Manjaro with the non-free option selected from Grub menu, or when you use automatic driver installation, PRIME or bumblebee is installed by default, depending on support for your GPU, PRIME being preferred. In these cases, the mhwd driver is named "video-hybrid-intel-nvidia-***xx-prime" or "video-hybrid-intel-nvidia-***xx-bumblebee". | ||
Line 280: | Line 299: | ||
== | ==nvidia-prime== | ||
Manjaro also offers an easy way to use PRIME with proprietary Nvidia drivers.<br> | Manjaro also offers an easy way to use PRIME with proprietary Nvidia drivers.<br> | ||
Simply select and install an 'nvidia-prime' profile through MSM or mhwd (such as ''video-hybrid-intel-nvidia-440xx-prime'') and ensure the package ''nvidia-prime'' is installed. | Simply select and install an 'nvidia-prime' profile through MSM or mhwd (such as ''video-hybrid-intel-nvidia-440xx-prime'') and ensure the package ''nvidia-prime'' is installed. | ||
Then to use the discrete Nvidia card | Then to use the discrete Nvidia card it works the same as [[#PRIME_GPU_offloading|PRIME offloading]] above but uses a different command. Prepend the application command with '''prime-run'''. For example: | ||
prime-run | prime-run glxspheres64 | ||
For more info see '''[https://forum.manjaro.org/t/howto-set-up-prime-with-nvidia-proprietary-driver/40225 archival post on early adoption of PRIME]''' | |||
==Bumblebee== | ==Bumblebee== |