8,560
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 15: | Line 15: | ||
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 connection] [free or nonfree drivers] 0300 | {{UserCmd|command=sudo mhwd -a [pci or usb connection] [free or nonfree drivers] 0300}} | ||
A breakdown of the command used for the automated method is as follows: | A breakdown of the command used for the automated method is as follows: | ||
Line 28: | Line 27: | ||
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: | ||
sudo mhwd -a pci nonfree 0300 | {{UserCmd|command=sudo mhwd -a pci nonfree 0300}} | ||
Otherwise, the following command would result in the automatic detection and installation of the best available '''free driver''' for a pci-connected graphics card: | Otherwise, the following command would result in the automatic detection and installation of the best available '''free driver''' for a pci-connected graphics card: | ||
sudo mhwd -a pci free 0300 | {{UserCmd|command=sudo mhwd -a pci free 0300}} | ||
= Manual Identification and Installation = | = Manual Identification and Installation = | ||
Line 51: | Line 49: | ||
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: detailed view] [optional: --pci or --usb connection] | {{UserCmd|command=mhwd -l [optional: detailed view] [optional: --pci or --usb 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: | 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: | ||
Line 64: | Line 61: | ||
A more detailed list of installed drivers can be obtained by entering: | A more detailed list of installed drivers can be obtained by entering: | ||
mhwd -l -d | {{UserCmd|command=mhwd -l -d}} | ||
A detailed list will provide the following information: | A detailed list will provide the following information: | ||
Line 83: | Line 79: | ||
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: | 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 | {{UserCmd|command=mhwd -l -d --pci}} | ||
== Installing a Driver == | == Installing a Driver == | ||
Line 90: | Line 85: | ||
To install a driver for a graphics card, the syntax is: | To install a driver for a graphics card, the syntax is: | ||
sudo mhwd -i pci [name of driver] | {{UserCmd|command=sudo mhwd -i pci [name of driver]}} | ||
Line 101: | Line 96: | ||
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 -i pci video-nvidia | {{UserCmd|command=sudo mhwd -i pci video-nvidia}} | ||
== Force Reinstall a Driver == | == Force Reinstall 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: | ||
sudo mhwd -f -i pci [name of driver] | {{UserCmd|command=sudo mhwd -f -i pci [name of driver]}} | ||
For example, to force the re-installation of a previously installed nvidia graphics card driver, the following command would be used: | For example, to force the re-installation of a previously installed nvidia graphics card driver, the following command would be used: | ||
sudo mhwd -f -i pci video-nvidia | {{UserCmd|command=sudo mhwd -f -i pci video-nvidia}} | ||
= Removing an Installed Driver = | = Removing an Installed Driver = | ||
Line 132: | Line 125: | ||
To identify and list Manjaro's installed drivers - including the graphics driver to be removed, the syntax is: | 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] | {{UserCmd|command=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: | 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 | {{UserCmd|command=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: | 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 | {{UserCmd|command=mhwd -li -d --pci}} | ||
One other way of reporting drivers installed andin use is using the {{ic|inxi}} tool. | One other way of reporting drivers installed andin use is using the {{ic|inxi}} tool. | ||
inxi -G | {{UserCmd|command=inxi -G}} | ||
{{note|The mhwd profile 'video-linux' corresponds to the latest opensource driver availablefor your hardware.}} | {{note|The mhwd profile 'video-linux' corresponds to the latest opensource driver availablefor your hardware.}} | ||
{{note|The mhwd profile 'video-vesa' is a generic fallback driver which should not be used in the vast majority of cases.}} | {{note|The mhwd profile 'video-vesa' is a generic fallback driver which should not be used in the vast majority of cases.}} | ||
== Removing Installed Drivers == | == Removing Installed Drivers == | ||
{{warning|use this command with care!}} | {{warning|use this command with care!}} | ||
To remove an installed driver, the syntax is: | To remove an installed driver, the syntax is: | ||
sudo mhwd -r [pci or usb] [name of driver] | {{UserCmd|command=sudo mhwd -r [pci or usb] [name of driver]}} | ||
For example, to remove the installed driver for a nvidia graphics card (connected internally via pci), the following command would be used: | For example, to remove the installed driver for a nvidia graphics card (connected internally via pci), the following command would be used: | ||
sudo mhwd -r pci video-nvidia | {{UserCmd|command=sudo mhwd -r pci video-nvidia}} | ||
= Checking configuration = | = Checking configuration = | ||
You can check configuration with: | You can check configuration with: | ||
{{UserCmd|command=sudo mhwd-gpu --check}} | |||
{{UserCmd|command=mhwd-gpu --status}} | |||
And if needed fix issues with: | And if needed fix issues with: | ||
{{UserCmd|command=sudo mhwd-gpu --setmod}} | |||
{{UserCmd|command=sudo mhwd-gpu --setxorg [PATH]}} | |||
Make sure the path to xorg config file is valid. | 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.] | 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.] | ||
=Dual GPU= | =Dual GPU= | ||
Line 196: | Line 180: | ||
For example, to run an application using the second card prepend the application command with '''DRI_PRIME=1''' | For example, to run an application using the second card prepend the application command with '''DRI_PRIME=1''' | ||
DRI_PRIME=1 glxspheres64 | {{UserCmd|command=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 glxspheres64 | {{UserCmd|command=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 | 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 | {{UserCmd|command=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. | Some applications (usually games like steam) may have an embedded option to specify the command line, where it is preferred to use this way. | ||
Line 214: | Line 198: | ||
To use the dGPU by default 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]''' | ||
= NVIDIA Proprietary (non-free) drivers = | = NVIDIA Proprietary (non-free) drivers = | ||
Line 224: | Line 207: | ||
When you install the non-free driver, mhwd includes a Nvidia utility "Nvidia Settings Utility" that can help you configure several settings. You can find this utility in your GUI Applications Menu or start it from a terminal | When you install the non-free driver, mhwd includes a Nvidia utility "Nvidia Settings 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 | {{UserCmd|command=sudo nvidia-settings}} | ||
If you are using bumblebee, the nvidia utility needs a special command | If you are using bumblebee, the nvidia utility needs a special command | ||
sudo optirun -b none nvidia-settings -c :8 | {{UserCmd|command=sudo optirun -b none nvidia-settings -c :8}} | ||
==Nvidia Optimus== | ==Nvidia Optimus== | ||
Line 256: | Line 238: | ||
'''4.''' Now start your terminal and enter the following command to complete the process: | '''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 | {{UserCmd|command=sudo mhwd-gpu --setmod nvidia --setxorg /etc/X11/mhwd.d/nvidia.conf}} | ||
==Configure X Screen settings (OpenGL Settings, Antialiasing, X Server XVideo)== | ==Configure X Screen settings (OpenGL Settings, Antialiasing, X Server XVideo)== | ||
Line 271: | Line 253: | ||
'''5.''' Edit the .xinitrc file with your preferred text editor. For example, if you use gedit, run this in your terminal: | '''5.''' Edit the .xinitrc file with your preferred text editor. For example, if you use gedit, run this in your terminal: | ||
gedit ~/.xinitrc | {{UserCmd|command=gedit ~/.xinitrc}} | ||
'''6.''' Once opened, add the following line into the configuration file: | '''6.''' Once opened, add the following line into the configuration file: | ||
exec nvidia-settings --load-config-only | {{UserCmd|command=exec nvidia-settings --load-config-only}} | ||
'''7.''' Save and exit. | '''7.''' Save and exit. | ||
==Nvidia settings for special cases == | ==Nvidia settings for special cases == | ||
Line 308: | Line 287: | ||
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: | 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 glxspheres64 | {{UserCmd|command=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]''' | 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== | ||
Line 318: | Line 296: | ||
For an application to use the Nvidia card, prepend the application command with optirun or primusrun. For example: | For an application to use the Nvidia card, prepend the application command with optirun or primusrun. For example: | ||
optirun glxspheres64 | {{UserCmd|command=optirun glxspheres64}} | ||
{{UserCmd|command=primusrun inkscape}} | |||
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 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 | ||
Line 351: | Line 329: | ||
= How to check the driver = | = How to check the driver = | ||
{{UserCmd|command=glxinfo | grep OpenGL}} | |||
Example output command: | Example output command: | ||
'''Nvidia driver''' ( proprietary driver ) | '''Nvidia driver''' ( proprietary driver ) | ||
{{UserCmdOutput|command=glxinfo | grep OpenGL|result= OpenGL vendor string: NVIDIA Corporation<br> OpenGL renderer string: GeForce GTX 660/PCIe/SSE2<br> OpenGL core profile version string: 4.3.0 NVIDIA 331.49<br> OpenGL core profile shading language version string: 4.30 NVIDIA via Cg compiler<br> OpenGL core profile context flags: (none)<br> OpenGL core profile profile mask: core profile<br> OpenGL core profile extensions:<br> OpenGL version string: 4.4.0 NVIDIA 331.49<br> OpenGL shading language version string: 4.40 NVIDIA via Cg compiler<br> OpenGL context flags: (none)<br> OpenGL profile mask: (none)<br> OpenGL extensions:}} | |||
'''Nouveau''' , '''Gallium''' from '''Mesa''' ( open source driver ) | '''Nouveau''' , '''Gallium''' from '''Mesa''' ( open source driver ) | ||
{{UserCmdOutput|command=glxinfo | grep OpenGL|result= OpenGL vendor string: nouveau<br> OpenGL renderer string: Gallium 0.4 on NVE6<br> OpenGL core profile version string: 3.1 (Core Profile) Mesa 9.2.5<br> OpenGL core profile shading language version string: 1.40<br> OpenGL core profile context flags: (none)<br> OpenGL core profile extensions:<br> OpenGL version string: 3.0 Mesa 9.2.5<br> OpenGL shading language version string: 1.30<br> OpenGL context flags: (none)<br> OpenGL extensions:}} | |||
'''Intel''' driver from '''Mesa''' ( open driver ) | '''Intel''' driver from '''Mesa''' ( open driver ) | ||
{{UserCmdOutput|command=glxinfo | grep OpenGL|result= OpenGL vendor string: Intel Open Source Technology Center<br> OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Desktop<br> OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.0.6<br> OpenGL core profile shading language version string: 3.30<br> OpenGL core profile context flags: (none)<br> OpenGL core profile profile mask: core profile<br> OpenGL core profile extensions:<br> OpenGL version string: 3.0 Mesa 11.0.6<br> OpenGL shading language version string: 1.30<br> OpenGL context flags: (none)<br> OpenGL extensions:<br> OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.0.6<br> OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00<br> OpenGL ES profile extensions:}} | |||
[[Category:Contents Page]] | [[Category:Contents Page]] |