Difference between revisions of "Configure Graphics Cards"

More PRIME!
imported>Cscs
imported>Cscs
(More PRIME!)
Line 184: Line 184:
=Dual GPU=
=Dual GPU=


If your hardware includes more than one GPU card and you are using the free drivers (video-linux), 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.
==PRIME GPU offloading==
For example, to use the second card with Gimp


   DRI_PRIME=1 gimp
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 gimp
   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]'''


If you have Nvidia Optimus hardware and use proprietary drivers see [[#Nvidia Optimus]]


= 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 sourse = non-free) drivers instead of the open source (free) nouveau driver.  
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:




==PRIME==
==nvidia-prime==
 
PRIME is a technology used to manage hybrid graphics found on recent desktops and laptops (Optimus for NVIDIA, AMD Dynamic Switchable Graphics for Radeon).<br>
PRIME GPU offloading and Reverse PRIME is an attempt to support muxless hybrid graphics in the Linux kernel.<br>
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.
 
For an application to use the dGPU with free drivers prepend the application command with '''DRI_PRIME=1'''. For example:
 
  DRI_PRIME=1 glxspheres64


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 prepend the application command with '''prime-run'''. For example:
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 gimp
   prime-run 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
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]'''
 
  Exec=prime-run firefox


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%.
prime-run %command%
To use the dGPU by default see '''[https://wiki.archlinux.org/index.php/PRIME#Reverse_PRIME Reverse Prime]'''
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==
Anonymous user