Difference between revisions of "Configure NVIDIA (non-free) settings and load them on Startup"
Views
Actions
Namespaces
Variants
Tools
m (added languages and translate tags) |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
__TOC__ | __TOC__ | ||
<translate> | <translate> | ||
= Introduction= | = Introduction= <!--T:1--> | ||
<!--T:2--> | |||
{{note| This tutorial is meant for users who are using the NVIDIA Proprietary (non-free) drivers.}} | {{note| This tutorial is meant for users who are using the NVIDIA Proprietary (non-free) drivers.}} | ||
<!--T:3--> | |||
You can check what drivers you have installed by entering the following command into your terminal: | You can check what drivers you have installed by entering the following command into your terminal: | ||
inxi -G | <!--T:4--> | ||
inxi -G | |||
= Install NVIDIA Drivers = | = Install NVIDIA Drivers = <!--T:5--> | ||
<!--T:6--> | |||
If you have the Nouveau driver you can install the proprietary NVIDIA driver by using the [[Configure_Graphics_Cards| Manjaro Hardware Detection (MHWD)]] utility. To do so, enter the following command into your terminal: | If you have the Nouveau driver you can install the proprietary NVIDIA driver by using the [[Configure_Graphics_Cards| Manjaro Hardware Detection (MHWD)]] utility. To do so, enter the following command into your terminal: | ||
sudo mhwd -a pci nonfree 0300 | <!--T:7--> | ||
sudo mhwd -a pci nonfree 0300 | |||
<!--T:8--> | |||
Once Complete, reboot your system to complete the process. You can then confirm that the driver has been installed and is working by entering the following command into your terminal: | Once Complete, reboot your system to complete the process. You can then confirm that the driver has been installed and is working by entering the following command into your terminal: | ||
mhwd -li | <!--T:9--> | ||
mhwd -li | |||
=Configure The Resolution/Refresh Rate= | =Configure The Resolution/Refresh Rate= <!--T:10--> | ||
<!--T:11--> | |||
{{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.}} | {{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.}} | ||
<!--T:12--> | |||
'''1.''' Open your terminal and enter the following command: | '''1.''' Open your terminal and enter the following command: | ||
sudo nvidia-settings | <!--T:13--> | ||
sudo nvidia-settings | |||
<!--T:14--> | |||
'''2.''' Change resolution and refresh rate in 'X Server Display Configuration' tab. | '''2.''' Change resolution and refresh rate in 'X Server Display Configuration' tab. | ||
<!--T:15--> | |||
'''3.''' Hit the 'Save to X Configuration File' button and save to '''/etc/X11/mhwd.d/nvidia.conf''' | '''3.''' Hit the 'Save to X Configuration File' button and save to '''/etc/X11/mhwd.d/nvidia.conf''' | ||
<!--T:16--> | |||
'''4.''' Now enter the following command into the terminal to complete the process: | '''4.''' Now enter the following command into the terminal to complete the process: | ||
sudo mhwd-gpu --setmod nvidia --setxorg /etc/X11/mhwd.d/nvidia.conf | <!--T:17--> | ||
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)= <!--T:18--> | ||
<!--T:19--> | |||
'''1.''' Open your terminal and enter the following command: | '''1.''' Open your terminal and enter the following command: | ||
nvidia-settings | <!--T:20--> | ||
nvidia-settings | |||
<!--T:21--> | |||
'''2.''' Change settings in X Server XVideo Settings, OpenGL and Antialiasing, in the 'X Screen' tab. | '''2.''' Change settings in X Server XVideo Settings, OpenGL and Antialiasing, in the 'X Screen' tab. | ||
<!--T:22--> | |||
'''3.''' Click on 'nvidia-settings configuration' tab and click on the 'Save Current Configuration' button. | '''3.''' Click on 'nvidia-settings configuration' tab and click on the 'Save Current Configuration' button. | ||
<!--T:23--> | |||
'''4.''' Save the .nvidia-settings-rc to the default location specified ('''/home/[your account name]''') | '''4.''' Save the .nvidia-settings-rc to the default location specified ('''/home/[your account name]''') | ||
<!--T:24--> | |||
'''5.''' Edit the .xinitrc file with your preferred text editor. For example, run this in your terminal: | '''5.''' Edit the .xinitrc file with your preferred text editor. For example, run this in your terminal: | ||
gedit ~/.xinitrc | <!--T:25--> | ||
gedit ~/.xinitrc | |||
<!--T:26--> | |||
'''6.''' Once opened, add the following line into the configuration file, before the last line that starts with 'exec' : | '''6.''' Once opened, add the following line into the configuration file, before the last line that starts with 'exec' : | ||
nvidia-settings --load-config-only | <!--T:27--> | ||
nvidia-settings --load-config-only | |||
exec $(get_session) | exec $(get_session) | ||
<!--T:28--> | |||
'''7.''' Save and exit. | '''7.''' Save and exit. | ||
= Troubleshooting: X-Server Failed to Start and Install = | = Troubleshooting: X-Server Failed to Start and Install = <!--T:29--> | ||
<!--T:30--> | |||
Where there has been an error during the installation process, upon rebooting you may see the following error message: '''modprobe: ERROR: could not insert nvidia : No such a device''' | Where there has been an error during the installation process, upon rebooting you may see the following error message: '''modprobe: ERROR: could not insert nvidia : No such a device''' | ||
<!--T:31--> | |||
If this happens: | If this happens: | ||
<!--T:32--> | |||
'''1.''' Remove the NVIDIA driver by entering the following command into your terminal: | '''1.''' Remove the NVIDIA driver by entering the following command into your terminal: | ||
sudo mhwd -r pci video-nvidia | <!--T:33--> | ||
sudo mhwd -r pci video-nvidia | |||
<!--T:34--> | |||
'''2.''' Reboot your computer | '''2.''' Reboot your computer | ||
<!--T:35--> | |||
'''3.''' Enter the following into your terminal: | '''3.''' Enter the following into your terminal: | ||
sudo gedit /etc/mkinitcpio.conf | <!--T:36--> | ||
sudo gedit /etc/mkinitcpio.conf | |||
<!--T:37--> | |||
'''4.''' delete the word '''nouveau''' from the following line: | '''4.''' delete the word '''nouveau''' from the following line: | ||
MODULES=" nouveau" | <!--T:38--> | ||
MODULES=" nouveau" | |||
<!--T:39--> | |||
It should now look like this (i.e. keep the speech marks ("")): | It should now look like this (i.e. keep the speech marks ("")): | ||
MODULES="" | <!--T:40--> | ||
MODULES="" | |||
<!--T:41--> | |||
'''5.''' Save and close the file. | '''5.''' Save and close the file. | ||
<!--T:42--> | |||
'''6.''' It is now necessary to reconfigure your existing kernel to take into account this change. The syntax of the necessary command to enter into your terminal is: | '''6.''' It is now necessary to reconfigure your existing kernel to take into account this change. The syntax of the necessary command to enter into your terminal is: | ||
sudo mkinitcpio -p [linux kernel version] | <!--T:43--> | ||
sudo mkinitcpio -p [linux kernel version] | |||
<!--T:44--> | |||
For example, if you are currently using Kernel 3.10, you would enter the following: | For example, if you are currently using Kernel 3.10, you would enter the following: | ||
sudo mkinitcpio -p linux310 | <!--T:45--> | ||
sudo mkinitcpio -p linux310 | |||
<!--T:46--> | |||
For kernel 3.11, you would enter the following: | For kernel 3.11, you would enter the following: | ||
sudo mkinitcpio -p linux311 | <!--T:47--> | ||
sudo mkinitcpio -p linux311 | |||
<!--T:48--> | |||
And so on. | And so on. | ||
<!--T:49--> | |||
'''7.''' Now re-install the NVIDIA driver by entering the following command into your terminal: | '''7.''' Now re-install the NVIDIA driver by entering the following command into your terminal: | ||
sudo mhwd -a pci nonfree 0300 | <!--T:50--> | ||
sudo mhwd -a pci nonfree 0300 | |||
<!--T:51--> | |||
'''8.''' Reboot your system. Now it should work ;) | '''8.''' Reboot your system. Now it should work ;) | ||
=Bumblebee and Steam= | =Bumblebee and Steam= <!--T:52--> | ||
<!--T:53--> | |||
{{warning|These instructions are outdated. Until they are reviewed for validity, please do not follow them blindly. Especially consider that there are also legacy nvidia drivers for older cards, like nvidia390xx and nvidia340xx. If you are not sure, please look for a tutorial or ask for assistance at the [https://forum.manjaro.org forum].}} | {{warning|These instructions are outdated. Until they are reviewed for validity, please do not follow them blindly. Especially consider that there are also legacy nvidia drivers for older cards, like nvidia390xx and nvidia340xx. If you are not sure, please look for a tutorial or ask for assistance at the [https://forum.manjaro.org forum].}} | ||
<!--T:54--> | |||
Properly using and configuring Bumblebee with Steam is much easier than it seems at first. | Properly using and configuring Bumblebee with Steam is much easier than it seems at first. | ||
<!--T:55--> | |||
'''1.''' Install bumblebee for nonfree nvidia. Please run in terminal command in proper order: | '''1.''' Install bumblebee for nonfree nvidia. Please run in terminal command in proper order: | ||
sudo pacman -S virtualgl lib32-virtualgl lib32-primus primus | <!--T:56--> | ||
sudo pacman -S virtualgl lib32-virtualgl lib32-primus primus | |||
sudo mhwd -f -i pci video-hybrid-intel-nvidia-bumblebee | <!--T:57--> | ||
sudo mhwd -f -i pci video-hybrid-intel-nvidia-bumblebee | |||
sudo systemctl enable bumblebeed | <!--T:58--> | ||
sudo systemctl enable bumblebeed | |||
<!--T:59--> | |||
'''2.''' Reboot system: | '''2.''' Reboot system: | ||
sudo reboot | <!--T:60--> | ||
sudo reboot | |||
<!--T:61--> | |||
'''3.''' Next run: | '''3.''' Next run: | ||
optirun -b none nvidia-settings -c :8 | <!--T:62--> | ||
optirun -b none nvidia-settings -c :8 | |||
<!--T:63--> | |||
'''4.''' Verify it is working | '''4.''' Verify it is working | ||
primusrun glxspheres64 | <!--T:64--> | ||
primusrun glxspheres64 | |||
and | and | ||
glxspheres64 | glxspheres64 | ||
<!--T:65--> | |||
so you can see the difference. | so you can see the difference. | ||
<!--T:66--> | |||
'''5a.''' To have all games with Steam run using the NVidia card. | '''5a.''' To have all games with Steam run using the NVidia card. | ||
Run Steam with command: | Run Steam with command: | ||
primusrun steam | <!--T:67--> | ||
primusrun steam | |||
<!--T:68--> | |||
'''5b.''' Alternatively, you can run specific games by: | '''5b.''' Alternatively, you can run specific games by: | ||
<!--T:69--> | |||
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. | 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. | 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. | Save your changes.This method allows you to pick when the discrete NVidia GPU should be used on a per-game basis. | ||
=Feedback and Support= | =Feedback and Support= <!--T:70--> | ||
<!--T:71--> | |||
If you have any problems, improvements or see any errors in this tutorial, please post in this Manjaro forum thread: [http://forum.manjaro.org/index.php?topic=4489.0] | If you have any problems, improvements or see any errors in this tutorial, please post in this Manjaro forum thread: [http://forum.manjaro.org/index.php?topic=4489.0] | ||
</translate> | </translate> |
Latest revision as of 16:27, 7 September 2021
Introduction
You can check what drivers you have installed by entering the following command into your terminal:
inxi -G
Install NVIDIA Drivers
If you have the Nouveau driver you can install the proprietary NVIDIA driver by using the Manjaro Hardware Detection (MHWD) utility. To do so, enter the following command into your terminal:
sudo mhwd -a pci nonfree 0300
Once Complete, reboot your system to complete the process. You can then confirm that the driver has been installed and is working by entering the following command into your terminal:
mhwd -li
Configure The Resolution/Refresh Rate
1. Open your terminal and enter the following command:
sudo nvidia-settings
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 enter the following command into the terminal 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. Open your terminal and enter the following command:
nvidia-settings
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, run this in your terminal:
gedit ~/.xinitrc
6. Once opened, add the following line into the configuration file, before the last line that starts with 'exec' :
nvidia-settings --load-config-only exec $(get_session)
7. Save and exit.
Troubleshooting: X-Server Failed to Start and Install
Where there has been an error during the installation process, upon rebooting you may see the following error message: modprobe: ERROR: could not insert nvidia : No such a device
If this happens:
1. Remove the NVIDIA driver by entering the following command into your terminal:
sudo mhwd -r pci video-nvidia
2. Reboot your computer
3. Enter the following into your terminal:
sudo gedit /etc/mkinitcpio.conf
4. delete the word nouveau from the following line:
MODULES=" nouveau"
It should now look like this (i.e. keep the speech marks ("")):
MODULES=""
5. Save and close the file.
6. It is now necessary to reconfigure your existing kernel to take into account this change. The syntax of the necessary command to enter into your terminal is:
sudo mkinitcpio -p [linux kernel version]
For example, if you are currently using Kernel 3.10, you would enter the following:
sudo mkinitcpio -p linux310
For kernel 3.11, you would enter the following:
sudo mkinitcpio -p linux311
And so on.
7. Now re-install the NVIDIA driver by entering the following command into your terminal:
sudo mhwd -a pci nonfree 0300
8. Reboot your system. Now it should work ;)
Bumblebee and Steam
Properly using and configuring Bumblebee with Steam is much easier than it seems at first.
1. Install bumblebee for nonfree nvidia. Please run in terminal command in proper order:
sudo pacman -S virtualgl lib32-virtualgl lib32-primus primus
sudo mhwd -f -i pci video-hybrid-intel-nvidia-bumblebee
sudo systemctl enable bumblebeed
2. Reboot system:
sudo reboot
3. Next run:
optirun -b none nvidia-settings -c :8
4. Verify it is working
primusrun glxspheres64
and
glxspheres64
so you can see the difference.
5a. To have all games with Steam run using the NVidia card. Run Steam with command:
primusrun steam
5b. Alternatively, you can run specific games by:
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.
Feedback and Support
If you have any problems, improvements or see any errors in this tutorial, please post in this Manjaro forum thread: [1]