Difference between revisions of "Configure Graphics Cards"

Include and enrich Nvidia card details, to disable nvidia configuration page
imported>Cscs
(mhwd-gpu no longer has --set-lib32 flag)
imported>Petsam
(Include and enrich Nvidia card details, to disable nvidia configuration page)
Line 177: Line 177:


Note about ati, xorg file and login artifacts or kicad: if you get artifacts upon logging in or if kicad rendering and zooming is slow, try adding [Option "EXAPixmaps" "off"] in the "Device" section of xorg config file. See [https://wiki.archlinux.org/index.php/ATI#Artifacts_upon_logging_in here.]
Note about ati, xorg file and login artifacts or kicad: if you get artifacts upon logging in or if kicad rendering and zooming is slow, try adding [Option "EXAPixmaps" "off"] in the "Device" section of xorg config file. See [https://wiki.archlinux.org/index.php/ATI#Artifacts_upon_logging_in here.]
= 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.
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.
When you install the non-free driver, mhwd includes a nvidia utility "Nvidia Configuration Utility" that can help you configure several settings. You can find this utility in your GUI Applications Menu or start it from a terminal
  sudo nvidia-settings
If you are using bumblebee, the nvidia utility needs a special command
  sudo optirun -b none nvidia-settings -c :8
For Optimus laptops or dual GPU hardware with intel and nvidia GPU hardware, you have three options to utilize the card driver usage at your preference or your hardware capabilities.
'''[[Bumblebee]] (mhwd default)'''
'''[https://forum.manjaro.org/t/howto-set-up-prime-with-nvidia-proprietary-driver/40225 Prime] or [https://wiki.archlinux.org/index.php/PRIME#Reverse_PRIME Reverse Prime]'''
'''[[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".
==Configure The Resolution/Refresh Rate==
{{warning|The method provided does not currently work for the Cinnamon Edition. As soon as a solution is found, then this article will be updated.}}
'''1.'''  Start nvidia-settings utility
'''2.'''  Change resolution and refresh rate in 'X Server Display Configuration' tab.
'''3.'''  Hit the 'Save to X Configuration File' button and save to '''/etc/X11/mhwd.d/nvidia.conf'''
'''4.'''  Now start your terminal and enter the following command to complete the process:
sudo mhwd-gpu --setmod nvidia --setxorg /etc/X11/mhwd.d/nvidia.conf
==Configure X Screen settings (OpenGL Settings, Antialiasing, X Server XVideo)==
'''1.'''  Start nvidia-settings utility
'''2.''' Change settings in X Server XVideo Settings, OpenGL and Antialiasing, in the 'X Screen' tab.
'''3.''' Click on 'nvidia-settings configuration' tab and click on the 'Save Current Configuration' button.
'''4.''' Save the .nvidia-settings-rc to the default location specified ('''/home/[your account name]''')
'''5.''' Edit the .xinitrc file with your preferred text editor. For example, if you use gedit, run this in your terminal:
gedit ~/.xinitrc
'''6.''' Once opened, add the following line into the configuration file:
exec nvidia-settings --load-config-only
'''7.''' Save and exit.
==Bumblebee==
Bumblebee configuration is mainly developed to help minimize laptop battery consumption, since nvidia usually consumes significant power, while intel cards are more power efficient. So, bumblebee detects both cards and automatically selects intel card by default, while uses nvidia for more demanding applications.
You may also manually select for an application to use the nvidia card, prepending the application command with optirun or primusrun. For example:
  primusrun glxspheres64
  primusrun steam
If bumblebee fails to auto-detect nvidia as best option, or 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
    primusrun steam
Some applications (usually games like steam) may have an embeded 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 primusrun %command% for the command line.
Save your changes.This method allows you to pick when the discrete NVidia GPU should be used on a per-game basis.


= See also =
= See also =


* [[Manjaro_Hardware_Detection_Overview]]
* [[Manjaro Hardware Detection Overview]]




= Easier way =
= Easier way =


[[Manjaro Settings Manager]] --> Hardware Detection
You may use a GUI version of mhwd in [[Manjaro Settings Manager#Hardware Detection]]
: With this tool you can:
: With this tool you can:
: - install graphic driver
: - install graphic driver
Line 193: Line 284:




= How check driver =
= How to check the driver =


  glxinfo | grep OpenGL
  glxinfo | grep OpenGL
Line 201: Line 292:




'''Nvidia driver''' ( closed driver )
'''Nvidia driver''' ( proprietary driver )


  $ glxinfo | grep OpenGL
  $ glxinfo | grep OpenGL
Line 218: Line 309:




'''Nouveau''' , '''Gallium''' from '''Mesa''' ( open driver )
'''Nouveau''' , '''Gallium''' from '''Mesa''' ( open source driver )


  $ glxinfo | grep OpenGL
  $ glxinfo | grep OpenGL
Anonymous user