Manjaro Настройка параметров NVIDIA (несвободные) и загрузка их при запуске

Настройка параметров NVIDIA (несвободные) и загрузка их при запуске

From Manjaro
Revision as of 07:02, 27 January 2023 by Krotesk (talk | contribs) (Created page with "'''1.''' Откройте терминал и введите следующую команду:")
Other languages:
English • ‎русский

Введение

Примечание
Это руководство предназначено для пользователей, использующих проприетарные (несвободные) драйверы NVIDIA.


Вы можете проверить, какие драйверы у вас установлены введя в терминал следующую команду:

inxi -G

Установка драйверов NVIDIA

Если у вас установлен драйвер Nouveau - Вы можете установить проприетарный драйвер NVIDIA с помощью утилиты Manjaro Hardware Detection (MHWD). Для этого введите следующую команду в терминале:

sudo mhwd -a pci nonfree 0300


После завершения перезагрузите систему для завершения процесса. Затем можете проверить, что драйвер был установлен и работает, введя следующую команду в терминале:

mhwd -li


Настройка разрешения/частоты обновления

Предупреждение
Представленный метод в настоящее время не работает для Cinnamon Edition. Как только решение будет найдено - эта статья будет обновлена.


1. Откройте терминал и введите следующую команду:

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. Сохраните и выйдите.

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. Перезагрузите компьютер


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. Сохраните изменения и закройте файл.


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

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 forum.


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.

Обратная связь и поддержка

If you have any problems, improvements or see any errors in this tutorial, please post in this Manjaro forum thread: [1]

Cookies help us deliver our services. By using our services, you agree to our use of cookies.