Установить nvidia x server settings linux

Configure NVIDIA (non-free) settings and load them on Startup

You can check what drivers you have installed by entering the following command into your terminal:

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:

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. Open your terminal and enter the following command:

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

1. Open your terminal and enter the following command:

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:

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)

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

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:

It should now look like this (i.e. keep the speech marks («»)):

Читайте также:  Linux which ntp server

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

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 😉

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
optirun -b none nvidia-settings -c :8

4. Verify it is working

so you can see the difference.

5a. To have all games with Steam run using the NVidia card. Run Steam with command:

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]

Cookie-файлы помогают нам предоставлять наши услуги. Используя наши сервисы, вы соглашаетесь с использованием cookie-файлов.

Источник

Intro

This guide is written for Hardy Heron and seems about the same for Lucid Lynx (the 10.04). The author is using a nVidia Ge Force 8600 GT with restricted drivers on a dual head setup. It will most likely work on other supported versions of Ubuntu with only minor adjustments, usually only in names and titles.

Читайте также:  Линукс убрать пароль при блокировке экрана

You can check your video card model by running, from terminal:

More information can be provided by running

IconsPage/important.png

This guide does not cover Xinerama, please see XineramaHowTo.

Installing Restricted Drivers

  • see BinaryDriverHowto/Nvidia for using the built in method, Hardware Drivers or Restricted Drivers Manager
  • see NvidiaManual for installing the drivers manually or using Envy/EnvyNG

IconsPage/note.png

Using Envy/EnvyNG or Manually installing the drivers may require you to reinstall them after kernel upgrades.

Setting up Multi Head

Setup

After the system reboot, you can change your X settings by going to System->Administration->NVIDIA X Server Settings. If you installed the driver manually, it may be under Applications->System Tools->NVIDIA X Server Settings. Alternatively, run from terminal:

A pop-up box appeared saying «It appears that your graphics driver does not support the necessary extensions to use this tool. Do you want to use your graphics driver vendor’s tool instead?». Clicking on the «Yes» button got me to the gui tool shown in the screenshot below.

If the driver didn’t install this (Envy/EnvyNG surely does), you can install it manually with

sudo apt-get install nvidia-settings

You then should see something like this:

nvidia-settings.png

From the left pane, choose X Server Display Configuration. Now click the second screen in the dialog window and click Configure. Then enable Twin View, like so:

configure.png

Alternatively, you can choose Separate X screen which will require you to reboot the computer later.

Choose your screen resolution, or leave at Auto. Position is usually best left as directional, but Absolute is OK if you want to set it manually. You can also swap primary displays from here.

Differences

  • one large screen shared between two monitors
  • in Compiz-Fusion, it makes the «cube» appear as one large octagon
  • separate X screens, one on each monitor
  • allows your window manager (Metacity, XFWM, Compiz, etc.) to be aware that there are two screens
  • in Compiz-Fusion, each monitor has its own cube, controlled separately

Saving

Now we will save the new settings by clicking Save to X Configuration File.

Читайте также:  Linux mint убрать связку ключей

save-x-config.png

I prefer to uncheck Merge with existing file. Now click Save. If it gives you an error, «Unable to remove old X config backup file ‘/etc/X11/xorg.conf.backup’ then click OK and open the save dialog again. Click Show preview. , select all and copy. Now open a terminal and run

gksudo gedit /etc/X11/xorg.conf

Delete the current contents of this file and paste what is in the preview. Save and close.

save-x-config-nomerge.png

Now you can quit the Settings window. If needed, restart X by logging out and back in, or typing sudo /etc/init.d/gdm restart, or reboot the computer.

Troubleshooting

IconsPage/faq.png

During the course of this tutorial, if X breaks and you no longer have a GUI, you should uninstall the restricted driver, reset xorg.conf and then reboot.

Note: If you are trying to save your xorg.conf file after changing settings in the nvidia-settings app and you recieve the error message

Failed to parse existing X config file '/etc/X11/xorg.conf'

then you can resolve this by replacing your xorg.conf file with the commmand

You should then be able to follow the procedure described here and save the new xorg.conf. The error described here seems to occur after a fresh install of Karmic.

Removing Restricted Drivers

If you installed from Hardware Drivers (aka Restricted Drivers Manager), either uncheck the box there, or run:

sudo apt-get remove --purge nvidia-glx-new

You may need to subsitute in nvidia-glx-legacy or nvidia-glx depending on your card.

If you used EnvyNG to install the restricted drivers and cannot access the GUI to uninstall them graphically, run from a tty or recovery mode kernel:

If you installed restricted drivers using a .run file from Nvidia’s website, cd to the appropriate directory and run

again, substitute from the above examples.

Resetting xorg.conf

From a tty or the recovery mode kernel, you can run

sudo dpkg-reconfigure xserver-xorg -phigh

Reboot

You should now reboot the computer. If you are at a terminal or tty, run:

Other Resources

IconsPage/resources.png

Here are some other useful and related pages.

  • DynamicMultiMonitor
  • NvidiaManual
  • BinaryDriverHowto/Nvidia
  • EnvyNG and Envy Legacy
  • XineramaHowTo

NvidiaMultiMonitors (последним исправлял пользователь knome 2013-12-14 11:20:26)

The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details

Источник

Оцените статью
Adblock
detector