Results 1 to 7 of 7

Thread: Nvidia GF 960M - struggling with drivers for X on Optimus enabled laptop

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2016-Dec
    Posts
    5

    Nvidia GF 960M - struggling with drivers for X on Optimus enabled laptop

    Hi All,

    Looking for your assistance as I’m getting clueless on how to get running X on Nvidia drivers.
    The hardware is Lenovo Y50-70 with Intel and Nvidia GeForce 960M.

    Code:
    00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
    01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
    As per above, switchable graphic is enabled in bios. There’s option for Nvidia GPS (GPU Performance Scaling).

    I’ve followed almost any recommendation on the web (and I’m sure I’ve missed the right one), but couldn’t get the system working.
    I’ve properly disabled nouveau, have X starting on Intel (confirmed with running X directly). With current layout I can’t get GDM3 login window and I’m being presented with white screen that something went wrong.
    Troubleshooting and log review confirmed that this is due to missing GLX support.

    I’ve tried multiple settings and I’m missing the right one.
    Understanding of the problem is that Intel (i915 driver?) is responsible for VGA interface and display leaving Nvidia in the background for 3D/GLX.



    Starting X from console and from other console (via ssh):

    running
    Code:
    # DISPLAY=:0 xterm
    works and displays xterm window.

    Code:
    # DISPLAY=:0 optirun nvidia-settings
    On the console:
    Xlib: extension "GLX" missing on display ":0".
    Code:
    And within X, claims that system doesn’t seem to be using Nvidia driver.
    running DISPLAY=:0 option xterm
    Code:
    ==> /var/log/syslog <==
    Dec 30 16:46:24 host kernel: [ 3081.727656] vgaarb: this pci device is not a vga device
    Dec 30 16:46:24 host kernel: [ 3081.732595] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:46:24 host kernel: [ 3081.732653] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:46:24 host kernel: [ 3081.732683] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:46:24 host kernel: [ 3081.732729] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:46:24 host kernel: [ 3081.732758] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:46:24 host kernel: [ 3081.732817] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:46:24 host kernel: [ 3081.732846] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:46:24 host kernel: [ 3081.737593] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:46:24 host kernel: [ 3081.855165] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  375.26  Thu Dec  8 18:04:14 PST 2016
    Dec 30 16:46:24 host kernel: [ 3081.855659] nvidia-modeset: Allocated GPU:0 (GPU-4b30fe9c-c50f-697a-9feb-2515b19caa83) @ PCI:0000:01:00.0
    Dec 30 16:46:24 host kernel: [ 3081.855723] nvidia-modeset: Freed GPU:0 (GPU-4b30fe9c-c50f-697a-9feb-2515b19caa83) @ PCI:0000:01:00.0
    Dec 30 16:46:24 host kernel: [ 3081.856816] vgaarb: this pci device is not a vga device
    Dec 30 16:46:25 host bumblebeed[2048]: [ 3082.371145] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
    Dec 30 16:46:31 host kernel: [ 3088.411881] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:46:31 host kernel: [ 3088.415258] nvidia-modeset: Unloading
    Dec 30 16:46:31 host bumblebeed[2048]: [ 3088.704256] [ERROR]Failed to unload module 'nvidia' (ref count: 3)
    Code:
    # DISPLAY=:0 optirun glxgears
    Xlib:  extension "GLX" missing on display ":0".
    Error: couldn't get an RGB, Double-buffered visual
    Code:
    Dec 30 16:48:28 host kernel: [ 3205.662489] vgaarb: this pci device is not a vga device
    Dec 30 16:48:28 host kernel: [ 3205.667082] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:48:28 host kernel: [ 3205.667134] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:48:28 host kernel: [ 3205.667161] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:48:28 host kernel: [ 3205.667202] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:48:28 host kernel: [ 3205.667228] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:48:28 host kernel: [ 3205.667281] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:48:28 host kernel: [ 3205.667307] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:48:28 host kernel: [ 3205.671754] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:48:28 host kernel: [ 3205.802699] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  375.26  Thu Dec  8 18:04:14 PST 2016
    Dec 30 16:48:28 host kernel: [ 3205.803165] nvidia-modeset: Allocated GPU:0 (GPU-4b30fe9c-c50f-697a-9feb-2515b19caa83) @ PCI:0000:01:00.0
    Dec 30 16:48:28 host kernel: [ 3205.803229] nvidia-modeset: Freed GPU:0 (GPU-4b30fe9c-c50f-697a-9feb-2515b19caa83) @ PCI:0000:01:00.0
    Dec 30 16:48:28 host kernel: [ 3205.804168] vgaarb: this pci device is not a vga device
    Dec 30 16:48:29 host bumblebeed[2048]: [ 3206.311128] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
    Dec 30 16:48:29 host kernel: [ 3206.213648] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
    Dec 30 16:48:29 host kernel: [ 3206.217025] nvidia-modeset: Unloading
    Dec 30 16:48:29 host bumblebeed[2048]: [ 3206.516345] [ERROR]Failed to unload module 'nvidia' (ref count: 3).

    kernel started with (tried with different settings with same results as above:
    Code:
    BOOT_IMAGE=/vmlinuz-4.8.0-kali2-amd64 root=UUID=<UUID> ro initrd=/install/gtk/initrd.gz quiet nouveau.modeset=0 i915.preliminary_hw_support=1 nouveau.modeset=0 tpm_tis.interrupts=0 acpi_osi=Linux i915.preliminary_hw_support=1 idle=nomwait
    Code:
    # lsmod|egrep -i "nvidia|vga|i915"
    i915                 1282048  3
    video                  40960  2 i915,ideapad_laptop
    i2c_algo_bit           16384  1 i915
    button                 16384  1 i915
    drm_kms_helper        155648  1 i915
    drm                   360448  4 i915,drm_kms_helper
    nvidia              11939840  3
    Code:
    #cat /etc/bumblebee/xorg.conf.nvidia
    Section "ServerLayout"
        Identifier  "Layout0"
        Option      "AutoAddDevices" "true"
        Option      "AutoAddGPU" "true"
    EndSection
    
    Section "Device"
        Identifier  "DiscreteNvidia"
        Driver      "nvidia"
        VendorName  "NVIDIA Corporation"
    
        Option "ProbeAllGpus" "false"
    
        Option "NoLogo" "true"
        Option "UseEDID" "false"
        Option "UseDisplayDevice" "none"
        Option "ConnectedMonitor" "DFP"
        BusID "PCI:01:00:0"
    EndSection
    
    
    Section "Screen"
        Identifier "Default Screen"
        Device "DiscreteNvidia"
    EndSection
    The most far I’ve went was by following one of guides (can’t find link):
    Code:
    # /etc/X11/xorg.conf
    Section "ServerLayout"
        Identifier "layout"
        Screen 0 "nvidia"
        Inactive "intel"
    EndSection
    
    Section "Device"
        Identifier "intel"
        Driver "intel"
        BusID "PCI:0@0:2:0"
        Option "AccelMethod" "SNA"
    EndSection
    
    Section "Screen"
        Identifier "intel"
        Device "intel"
    EndSection
    
    Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        BusID "PCI:1@0:0:0"
        Option "ConstrainCursor" "off"
    EndSection
    
    Section "Screen"
        Identifier "nvidia"
        Device "nvidia"
        Option "AllowEmptyInitialConfiguration" "on"
        Option "IgnoreDisplayDevices" "CRT"
    EndSection
    This was giving me (note bumblebee is disabled):
    Code:
    # DISPLAY=:0 glxgears
    
    
    Running synchronized to the vertical refresh.  The framerate should be
    approximately the same as the monitor refresh rate.
    182631 frames in 5.0 seconds = 36526.180 FPS
    183675 frames in 5.0 seconds = 36734.848 FPS
    btw. values seem to me really high, probably way too high.

    TBC in next post.
    Last edited by kalimera; 2016-12-31 at 14:53.

Similar Threads

  1. Replies: 87
    Last Post: 2018-08-20, 03:34
  2. Replies: 375
    Last Post: 2017-06-19, 11:32
  3. Replies: 0
    Last Post: 2017-01-15, 10:39
  4. Screen issues on a NVIDIA Optimus Laptop
    By Neotec00 in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2016-10-14, 09:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •