I would like to use two xservers each running on a separate graphics card,in fact I'm using two monitors with two different graphic cards installed on my computer,like this :
root@ziomario-Z87-HD3:/home/ziomario# lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK106 [GeForce GTX 660] [10de:11c0] (rev a1)
root@ziomario-Z87-HD3:/home/ziomario# lspci -nn | grep NVIDIA
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK106 [GeForce GTX 660] [10de:11c0] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GK106 HDMI Audio Controller [10de:0e0b] (rev a1)
I'm reading this article.
and I have changed some command because there are differences between what he says to do and my situation. This is what I did :
Installed NVidia driver as root user with this command :
./NVIDIA-Linux-x86_64-340.32.run –accept-license –no-backup –no-x-check –no-questions –ui=none –no-x-check –no-distro-scripts –utility-prefix=/nvidia –installer-prefix=/nvidia –opengl-prefix=/nvidia –opengl-libdir=glx
made a libglx.so link in the /nvidia/glx directory for NVidia :
ln -s /usr/lib/xorg/modules/extensions/libglx.so.295.59 libglx.so
As root, created the folder /etc/ld.conf.d (it didn't exist before) with the file inside : /etc/ld.conf.d/nvidia with two lines pointing to the new library directories:
/nvidia/lib /nvidia/glx
Ran this command as root to make the above paths active.
ldconfig
created the file /etc/X11/xorg.conf with the command
nvidia-xconfig
Used the ModulePath option to direct the nvidia xserver to the correct Glx. Added this to /etc/X11/xorg.conf in existing Files section as follows:
this is my xorg.conf file :
Section "ServerLayout"
Identifier "Layout0" Screen 0 "Screen0" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection
Section "ServerLayout"
Identifier "Layout1" Screen 0 "Screen1" 0 0 Option "Xinerama" "0" EndSection
Section "Files"
modulepath "/nvidia/glx,/nvidia/lib,/usr/lib/xorg/modules"
EndSection
Section "InputDevice"
# generated from default Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/psaux" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5" EndSection
Section "InputDevice"
# generated from default Identifier "Keyboard0" Driver "kbd" EndSection
Section "Monitor"
Identifier "Monitor0" VendorName "Unknown" ModelName "Unknown" HorizSync 28.0 - 33.0 VertRefresh 43.0 - 72.0 Option "DPMS" EndSection
Section "Monitor"
Identifier "Monitor1" VendorName "Unknown" Option "DPMS" EndSection
Section "Device"
Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" EndSection
Section "Device"
Identifier "Device1" Driver "intel" BusID "PCI:0:2:0" Option "AccelMethod" "uxa" EndSection
Section "Screen"
Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 EndSubSection EndSection
Section "Screen"
Identifier "Screen1" Device "Device1" Monitor "Monitor1" DefaultDepth 24 SubSection "Display" Depth 24 EndSubSection EndSection
configured user LD_LIBRARY_PATH environment in the files (this can be set universally in /etc/profile and /etc/bash.bashrc configuration files instead): ~/.profile ~/.bashrc and,~/.xsession file by adding the following lines:
if [
echo $DISPLAY |grep -c ":1"
-eq 1 ]; then export LD_LIBRARY_PATH=/nvidia/glxfi
Reinstalled xorg packages with Glx so that damage from the previous NVidia install is corrected :
apt-get --reinstall install glx-alternative-mesa xserver-xorg-core libgl1-mesa-glx libgl1-mesa-dri
Restarted Gdm3
/etc/init.d/gdm3 restart
it didn't work. The monitor attached with the NVIDIA graphic card is working correctly but the other one,where is attached the INTEL graphic card is off...any suggest ?