Difference between revisions of "Configure Graphics Cards"

no edit summary
imported>Verityproductions
imported>Tele
(23 intermediate revisions by 6 users not shown)
Line 4: Line 4:




Where installing the full version of Manjaro (i.e. complete with a pre-installed desktop environment, codecs, and software applications), the mhwd command will be automatically run by the CLI installer to automatically detect your graphics card and install the most appropriate driver for it. '''Whether free or proprietary drivers are installed will depend on your initial choice of using free or nonfree graphics drivers to boot up'''.  
Where installing the full version of Manjaro (i.e. complete with a pre-installed desktop environment, codecs, and software applications), the mhwd command will be automatically run by the GUI and CLI installer to automatically detect your graphics card and install the most appropriate driver for it. '''Whether free or proprietary drivers are installed will depend on your initial choice of using free or nonfree graphics drivers to boot up'''.
Otherwise, it will be necessary to run the mhwd command manually as part of the post-installation process for the minimalistic '''NET-Edition''' of Manjaro.  


Otherwise, it will be necessary to run the mhwd command manually as part of the post-installation process for the minimalistic '''NET-Edition''' of Manjaro. Of course, it is also possible to use the mhwd command to install, re-install, and remove installed graphics drivers at any time, as illustrated below.
'''For Beginners, it is recommended to use "Hardware Detection" in [[Manjaro Settings Manager]] to change or install new graphics drivers.'''
For intermediate and advanced users, it is also possible to use the mhwd command to install, re-install, and remove installed graphics drivers at any time, as illustrated below.


{{warning|For the NET-Edition, ensure that the graphics drivers are installed '''prior''' to installing and configuring your desired desktop and greeter. Without video drivers to show them, you won't get very far!}}


{{warning|For the NET-Edition, ensure that the graphics drivers are installed '''prior''' to installing and configuring your desired desktop and greeter. Without video drivers to show them, you won't get very far upon rebooting!}}


== Automated Identification and Installation ==
 
= Automated Identification and Installation =


This is the recommended method for the detection and installation of graphics drivers. The syntax for the automated installation method is:
This is the recommended method for the detection and installation of graphics drivers. The syntax for the automated installation method is:


  sudo mhwd -a [pci or usb] [free or nonfree] 0300
  sudo mhwd -a [pci or usb connection] [free or nonfree drivers] 0300




Line 23: Line 26:
* '''[pci or usb]''': Install the appropriate driver for devices connected internally via pci, or externally via usb (again, mhwd currently only supports pci connections at this stage in its development)
* '''[pci or usb]''': Install the appropriate driver for devices connected internally via pci, or externally via usb (again, mhwd currently only supports pci connections at this stage in its development)
* '''[free or nonfree]''': Install either free drivers (e.g. provided by the Linux community), or nonfree drivers (e.g. provided by hardware manufacturers)  
* '''[free or nonfree]''': Install either free drivers (e.g. provided by the Linux community), or nonfree drivers (e.g. provided by hardware manufacturers)  
* '''0300''': Install drivers for graphics cards (0300 is the class ID for graphics cards. As the mhwd command develops, new ids will be used for other types/classes of device).
* '''0300''': Identify that a driver is to be installed for a graphics card (0300 is the ID for graphics cards. As the mhwd command develops, new ids will be used for other hardware devices).
 


For example, the following command would result in the automatic detection and installation of the best available '''proprietary driver''' for a pci-connected graphics card:
For example, the following command would result in the automatic detection and installation of the best available '''proprietary driver''' for a pci-connected graphics card:
Line 35: Line 39:




== Manual Identification and Installation ==
= Manual Identification and Installation =


Taking a do-it-yourself approach is itself relatively easy and straightforward using the mhwd command. This should be undertaken in two stages:
Taking a do-it-yourself approach is itself relatively easy and straightforward using the mhwd command. This should be undertaken in two stages:
Line 43: Line 47:
'''2.''' Install the driver
'''2.''' Install the driver


Just ensure that you have identified and are indeed about to install the correct driver for your particular graphics card!
{{tip| Just ensure that you have identified and are indeed about to install the correct driver for your particular graphics card!}}


=== Identifying Available Drivers ===
 
== Identifying Available Drivers ==


Prior to manually installing a graphics driver, it will be necessary to identify what drivers are available for your system. To list the appropriate drivers available, the basic syntax is:
Prior to manually installing a graphics driver, it will be necessary to identify what drivers are available for your system. To list the appropriate drivers available, the basic syntax is:


  mhwd -l [optional: --pci or --usb]
  mhwd -l [optional: detailed view] [optional: --pci or --usb connection]




Using this command without the --pci or --usb filters will list all the available drivers for devices connected to your system. '''All drivers for graphics cards will have the prefix (video-) in their name'''. Otherwise, the following example will list only the drivers available specifically for devices (e.g. graphics cards) using an internal PCI connection:
Using this command without the additional options will list basic information for all the available drivers for devices connected to your system. '''All drivers graphics card drivers will have the prefix (video-) in their name'''. The basic information provided for all listed drivers will be:
 
* Name
* Version
* Free or proprietary, and
* PCI or USB connection


mhwd -l --pci


A more detailed list of installed drivers can be obtained by entering:


Irrespective of whether the optional filters is used or not, the following information will be displayed for all listed drivers:
mhwd -l -d
 
 
A detailed list will provide the following information:


* Name
* Name
* Version
* Version
* Free or proprietary, and
* PCI or USB connection
* PCI or USB connection
* Description
* Priority
* Free or proprietary
* Dependencies
* Conflicts
* Class ID (e.g. '0300' for graphics card drivers), and
* Vendor ID
In addition, using the ''--pci'' filter in the following example will list detailed information for only the drivers available for devices (e.g. graphics cards) using an internal PCI connection:
mhwd -l -d --pci




=== Installing a Driver ===
== Installing a Driver ==


To install a driver for a graphics card, the syntax is:
To install a driver for a graphics card, the syntax is:
Line 80: Line 104:
For example, to install the proprietary nvidia graphics card driver, the following command would be used:
For example, to install the proprietary nvidia graphics card driver, the following command would be used:


  sudo mhwd -a pci video-nvidia
  sudo mhwd -i pci video-nvidia


== Forcing Re-installation of a Driver ==


=== Forcing Re-installation of a Driver ===
{{warning|use this command with care!}}


{{warning|use this command with care!}}


To force the re-installation of an existing driver without removing it first, the syntax is:
To force the re-installation of an existing driver without removing it first, the syntax is:
Line 98: Line 122:


= Removing an Installed Driver =
= Removing an Installed Driver =
On occasion it may be necessary to remove an installed graphics card driver. Similarly to manually installing a graphics card driver, two steps should be undertaken for removal:
'''1.''' Identify the installed driver
'''2.''' Remove the identified driver
After all, it would be somewhat difficult to remove an installed driver if you don't know what it's called!
== Identifying Installed Drivers ==
To identify and list Manjaro's installed drivers - including the graphics driver to be removed, the syntax is:
mhwd  -li [optional: detailed view] [optional: pci or usb devices only]
Using this command without the additional options will list the basic information of all the drivers currently installed on your system. '''Once again, all drivers for graphics cards will have the prefix (video-) in their name'''. As with listing drivers available for your system, the ''-d'' option used in the following command will list detailed information:
mhwd -li -d
This information may prove useful to determine any otherwise unforeseen consequences or problems upon removing a driver. And again, it is also possible to filter your list of installed drivers by whether they are used on hardware connected via pci or usb. In this instance, a detailed list will be generated only for installed drivers used on hardware with a PCI connection:
mhwd -li -d --pci
== Removing Installed Drivers ==


{{warning|use this command with care!}}
{{warning|use this command with care!}}


On occasion it may be necessary to remove an installed graphics card driver. To remove an installed driver, the basic syntax is:
 
To remove an installed driver, the syntax is:


  sudo mhwd -r [pci or usb] [name of driver]
  sudo mhwd -r [pci or usb] [name of driver]
Line 109: Line 162:


  sudo mhwd -r pci video-nvidia
  sudo mhwd -r pci video-nvidia
= Enable or disable 32 bit support on 64 bit (multilib) =
If one does not do any gaming or use Wine for Windows based applications, 32 bit support can be removed from mhwd on 64 bit systems (multilib).
The following command will disable lib32 support from mhwd and prevent it from pulling lib32 packages:
sudo mhwd-gpu --setlib32 false
To enable:
sudo mhwd-gpu --setlib32 true
Reference: [https://forum.manjaro.org/index.php?topic=14080.msg155909#msg155909 Manjaro forum]
= Checking configuration =
You can check configuration with:
mhwd-gpu --check
mhwd-gpu --status
And if needed fix issues with:
mhwd-gpu --setgl
mhwd-gpu --setxorg
Make sure the path to xorg config file is valid.
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.]
= See also =
* [[Manjaro_Hardware_Detection_Overview]]
= Easier way =
[[Manjaro Settings Manager]] --> Hardware Detection
: With this tool you can:
: - install graphic driver
: - switch graphic driver
https://www.youtube.com/watch?v=UAFGukpEIJw
= How check driver =
glxinfo | grep OpenGL
Example output command:
'''Nvidia driver''' ( closed driver )
$ glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 660/PCIe/SSE2
OpenGL core profile version string: 4.3.0 NVIDIA 331.49
OpenGL core profile shading language version string: 4.30 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.4.0 NVIDIA 331.49
OpenGL shading language version string: 4.40 NVIDIA via Cg compiler
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
'''Nouveau''' , '''Gallium''' from '''Mesa''' ( open driver )
$ glxinfo | grep OpenGL
OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NVE6
OpenGL core profile version string: 3.1 (Core Profile) Mesa 9.2.5
OpenGL core profile shading language version string: 1.40
OpenGL core profile context flags: (none)
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 9.2.5
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
'''Intel''' driver from '''Mesa''' ( open driver )
$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Desktop
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.0.6
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
[[Category:Contents Page]]
Anonymous user