[clug] Nvidia Optimus non-support for Linux

George at Clug Clug at goproject.info
Sun Apr 10 05:12:15 UTC 2016


    For anyone interested in Nvidia Optimus in Linux, I did get as far
a the below output suggests. Not being knowledgeable in this area, it
is my best attempt. I can say that many solutions suggested on the
internet did not work for me. And I could only get "xrandr
--listproviders" to list one provider. I also did not want to hack my
Linux installation all that much, I was willing to do a few config
changes but things like recompiling the kernel, etc, were beyond where
I wanted to go.

xrandr --listproviders
# cat /etc/X11/xorg.conf
Section "ServerLayout"
    Identifier "layout"
    Screen 0 "intel"
    Screen 1  "nouveau"
EndSection

Section "Device"
    Identifier  "intel"# lspci | grep VGA ; lsmod | grep
"kms\|drm" ; find /dev -group video ; cat /proc/cmdline ; find
/etc/modprobe.d/; cat /etc/modprobe.d/*kms* ; ls /etc/X11/xorg.conf ;
glxinfo | grep -i "vendor\|rendering" ; grep LoadModule
/var/log/Xorg.0.log
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core
Processor Integrated Graphics Controller (rev 06)
drm_kms_helper         49210  1 i915
drm                   249998  4 i915,drm_kms_helper
i2c_core               46012  7
drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,v4l2_common,videodev
/dev/fb0
/dev/video0
/dev/dri/card0
/dev/dri/controlD64
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64
root=UUID=53bdda7b-4e01-4bb2-a483-8fbbe61b13e3 ro quiet
/etc/modprobe.d/
/etc/modprobe.d/dist.conf
/etc/modprobe.d/intel-microcode-blacklist.conf
/etc/modprobe.d/fbdev-blacklist.conf
/etc/modprobe.d/amd64-microcode-blacklist.conf
/etc/modprobe.d/dkms.conf
/etc/modprobe.d/modesetting.conf
/etc/modprobe.d/vmware-fuse.conf
/etc/modprobe.d/bumblebee.conf
# modprobe information used for DKMS modules
#
# This is a stub file, should be edited when needed,
# used by default by DKMS.
/etc/X11/xorg.conf
direct rendering: Yes
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
OpenGL vendor string: Intel Open Source Technology Center
[     4.749] (II) LoadModule: "glx"xrandr --listproviders
[     4.764] (II) LoadModule: "intel"
[     4.767] (II) LoadModule: "nouveau"
[     4.834] (II) LoadModule: "fb"
[     4.835] (II) LoadModule: "dri2"
[     4.921] (II) LoadModule: "evdev"
[     4.928] (II) LoadModule: "synaptics"

    Driver      "intel"
    BusID       "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection


Section "Device"
    Identifier  "nouveau"
    Driver      "nouveau"
    BusID       "PCI:1:0:0"
    VendorName  "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier "nouveau"
    Device "nouveau"
EndSection

=====================================================================================

# lspci | grep VGA ; lsmod | grep "kms\|drm" ; find /dev -group video
; cat /proc/cmdline ; find /etc/modprobe.d/; cat /etc/modprobe.d/*kms*
; ls /etc/X11/xorg.conf ; glxinfo | grep -i "vendor\|rendering" ; grep
LoadModule /var/log/Xorg.0.log
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core
Processor Integrated Graphics Controller (rev 06)
drm_kms_helper         49210  1 i915
drm                   249998  4 i915,drm_kms_helper
i2c_core               46012  7
drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,v4l2_common,videodev
/dev/fb0
/dev/video0
/dev/dri/card0
/dev/dri/controlD64
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64
root=UUID=53bdda7b-4e01-4bb2-a483-8fbbe61b13e3 ro quiet
/etc/modprobe.d/
/etc/modprobe.d/dist.conf
/etc/modprobe.d/intel-microcode-blacklist.conf
/etc/modprobe.d/fbdev-blacklist.conf
/etc/modprobe.d/amd64-microcode-blacklist.conf
/etc/modprobe.d/dkms.conf
/etc/modprobe.d/modesetting.conf
/etc/modprobe.d/vmware-fuse.conf
/etc/modprobe.d/bumblebee.conf
# modprobe information used for DKMS modules
#
# This is a stub file, should be edited when needed,
# used by default by DKMS.
/etc/X11/xorg.conf
direct rendering: Yes
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
OpenGL vendor string: Intel Open Source Technology Center
[     4.749] (II) LoadModule: "glx"
[     4.764] (II) LoadModule: "intel"
[     4.767] (II) LoadModule: "nouveau"
[     4.834] (II) LoadModule: "fb"
[     4.835] (II) LoadModule: "dri2"
[     4.921] (II) LoadModule: "evdev"
[     4.928] (II) LoadModule: "synaptics"


# xrandr --listproviders Providers: number : 1
Provider 0: id: 0x45 cap: 0xb, Source Output, Sink Output, Sink
Offload crtcs: 3 outputs: 3 associated providers: 0 name:Intel

# DRI_PRIME=1 glxinfo | grep "OpenGL vendor string"
OpenGL vendor string: Intel Open Source Technology Center
# DRI_PRIME=0 glxinfo | grep "OpenGL vendor string"
OpenGL vendor string: Intel Open Source Technology Center


===================================================================================

https://wiki.archlinux.org/index.php/NVIDIA_Optimus

https://nouveau.freedesktop.org/wiki/Optimus/

https://wiki.archlinux.org/index.php/PRIME

http://bumblebee-project.org/

https://wiki.debian.org/NvidiaGraphicsDrivers

http://askubuntu.com/questions/264247/proprietary-nvidia-drivers-with-efi-on-mac-to-prevent-overheating/613573#613573






More information about the linux mailing list