Ask Your Question

Setup hybrid graphics on a Slimbook Excalibur

asked 2017-06-18 10:54:50 -0500

glezalex gravatar image

I recently bought a Slimbook Excalibur with Fedora 25 pre-installed and I'd like to make the hybrid graphics work. The details are:

  • Integrated card: Intel® HD Graphics 520 (Skylake GT2)
  • Dedicated card: NVIDIA GeForce 940M

The lspci output is:

00:00.0 Host bridge: Intel Corporation Skylake Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 520 (rev 07)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 20)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 20)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 20)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 20)
00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f0)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 20)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 20)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 20)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 20)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
02:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)

Right now I'm running the kernel version 4.11.5-200.fc25.x86_64. So far I've tried with the indications at but I wasn't able to succeed. The package installation has created a xorg.conf like:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 381.22  (buildmeister@swio-display-x86-rhel47-02)  Thu May  4 01:29:00 PDT 2017

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"

Section "Files"
    FontPath        "/usr/share/fonts/default/Type1"

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24

But still, when I log in using using a Wayland session, only the integrated card is detected and used. Actually If I try to open nvidia-settings it fails with the error:

ERROR: Unable to find display on any available system

On the other hand, If I try to log in using Xorg, it just freezes. How could I make it work on Wayland? And on the other hand If's easier / better, how could I debug the Xorg session to see what's failing?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2017-06-21 15:58:11 -0500

kwizart gravatar image

Nvidia Optimus Laptop are supported easily since Fedora 25 using the Nvidia driver. This requires no change from the usual packaged installation process.

Please follow the official RPM Fusion documentation for Nvidia

And the section for Optimus

In your case, you shouldn't even need to use nvidia-xconfig, so you will have to remove the generated /etc/X11/xorg.conf And possibly clean conflicting libraries created by the nvidia installer.

edit flag offensive delete link more

answered 2017-06-20 04:59:09 -0500

ozeszty gravatar image

On F25 release Wayland would not work on nvidia hardware with proprietary drivers, I don't know they fixed it. Anyway, Xorg should be working, maybe some factory added config is interfering with your driver? Looking at this I'd say try removing it:

sudo rm -rf /etc/X11/xorg.conf.d/20-nvidia.conf

If this doesn't make Xorg work, reinstall nvidia driver. You may also undo what you installed following and use this guide on installing bumblebee in Fedora.

edit flag offensive delete link more


Yeap, Wayland on Nvidia blob on laptops is expected in F27, more info here.

ozeszty gravatar imageozeszty ( 2017-06-20 12:48:15 -0500 )edit

Question Tools

1 follower


Asked: 2017-06-18 10:54:50 -0500

Seen: 267 times

Last updated: Jun 21 '17