Difference between revisions of "Configure Graphics Cards"

imported>Cscs
(Add PRIME, clean optimus.)
imported>Cscs
Line 282: Line 282:
==PRIME==
==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). PRIME GPU offloading and Reverse PRIME is an attempt to support muxless hybrid graphics in the Linux kernel. PRIME detects both cards and automatically selects Intel card by default, using Nvidia, when called, for more demanding applications.  
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>
For an application to use the Nvidia card, prepend the application command with prime-run. For example:
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>
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:


  prime-run glxspheres64
   prime-run gimp
   prime-run gimp


If you want to specifically run some application with the nvidia driver, you may edit that application's .desktop file "Exec" property, or run it in terminal like this
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=prime-run firefox
   Exec=prime-run firefox
Line 299: Line 310:
  prime-run %command%
  prime-run %command%


For "reverse-prime" see '''[https://wiki.archlinux.org/index.php/PRIME#Reverse_PRIME Reverse Prime]'''
To use the dGPU by default see '''[https://wiki.archlinux.org/index.php/PRIME#Reverse_PRIME Reverse Prime]'''
 
And for more info: '''[https://forum.manjaro.org/t/howto-set-up-prime-with-nvidia-proprietary-driver/40225 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