I want to use my nvida card for rendering. With bumblebee it is already working, but for performance reasons and because kwin is not working with it I wanted to try out the optimus support in the nvidia driver.
So I installed Kernel 3.10 and the latest 325.15 driver. Also Xorg is up to date. Based on the reference:
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "<BusID for NVIDIA device here>"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
# Uncomment this line if your computer has no display devices connected to
# the NVIDIA GPU. Leave it commented if you have display devices
# connected to the NVIDIA GPU that you would like to use.
#Option "UseDisplayDevice" "none"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
is included. When I include this section I get a balnk screen when I restart xorg. I guess the problem is, because “xrandr --listproviders” lists just the intel provider. Unfortunatly I don’t know why it is not listing the nvidia card and how to solve this issue.
lspci list my nvidia card correctly on bus 1:0:0. What could be the reason, that xrandr is not recognizing my second graphic card?
When you include the complete configuration, including the ServerLayout section, it’s expected to get a black screen: the X server does not automatically attach the Intel provider to the NVIDIA one or set a mode for you. That’s why it’s important to have a session startup script do that for you.
"Could not find provider with name intel"
or (dependent on what is written in xorg.conf)
"Could not find provider with name modesetting"
DISPLAY=:1 xrandr --listproviders now lists only NVIDA-0
I don’t know why, but not dependent what I do or how I edit the xorg.conf, there is always just one device listed.