nVidia and Intel - possible?

I’ve had this GeForce GTX 1660 for a while, using for CUDA only. Now I need to hook up an HDMI display and onboard Intel has none left. I figured I could use one of nVidia outputs. I loaded nvidia_drm module, noticed /dev/dri/card1 appeared. Then I added a Device section to xorg.conf, loading nvidia driver by BusID. Everything looks normal in Xorg log, but no cigar, xrandr does not show any new video outputs. Is it even possible? May I use these video outputs in addition to onboard Intel?

please include the nvidia-bug-report log file…
as root, run

$ nvidia-bug-report.sh

attach the log files here…
maybe somebody will examine the log and figure out what is happening…

Thanks! nvidia-bug-report.log.gz (1.3 MB)
Please note, I haven’t rebooted for ages. Lots of old irrelevant data in logs.

Here is also Xorg log with -logverbose 6. It finds the TV set connected, pulls EDID, but no video output becomes available for Xorg. Xorg.0.log.gz (23.9 KB)
Any ideas?

Installation of nvidia driver is good.
Just need to configure the xorg.conf
Try this one… you can adjust it to suit yours…

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
    Option         "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
    Option         "AllowIndirectGLXProtocal" "off"
    Option         "TripleBuffer" "on"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
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"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "GSM"
    ModelName      "LG Electronics LG TV"
    HorizSync       30.0 - 70.0
    VertRefresh     58.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1660"
    BusID          "PCI:1@0:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "intel"
    VendorName     "INTEL Corporation"
    BoardName      "HD Graphics 630"
    BusID          "PCI:0@0:2:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
EndSection  

Section "Screen"
    Identifier     "Screen1"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

No need to reboot… just restart the X…
in most cases… just type

$ init 3 ; init 5

Thanks. No joy, unfortunately. I can get nVidia outputs working only when using it exclusively. As soon as Intel is active, too, nVidia outputs do not show.
Here is my puzzle. This motherboard is not that old, but its video outputs do not make much sense, HDMI, DVI and VGA. I got a new monitor, 2560x1440, with speakers. Wanted to use HDMI for it, but HDMI had TV connected. Getting rid of VGA would have been a plus, too. Now I’m back using VGA for my second monitor, my new monitor is connected via dual link DVI and TV is back on HDMI. Wondering … I read somewhere DVI can do audio … aplay -l shows 5 digital outputs for Intel. This is the capability of chipset, physically not present on current motherboard. But I’m getting off topic here, this is an Intel question now.
Anyhow, if anyone has fresh information how to make nVidia video outputs work alongside of Intel I’m all ears. Maybe something in my kernel is not permitting it? Kernel is configured by hand, from scratch. I don’t see what it could be, though.

Edit: I tried sending audio to DVI output and what do you know … it works!!! Didn’t expect that.

1 Like

Okay…
as you are using Gentoo, please see this - NVIDIA/Optimus - Gentoo Wiki
I hope it can solve the problem.
Based on your Nvidia-bug-report log file, both of your Intel and Nvidia driver installed correctly, and you should be able to use both chipsets. My advice is you need to read about Prime/Bumblebee/BBSwitch/DisplayLink.
All of this is for Linux platform that wants to use the dual video card.

There is no Optimus. I don’t think they even make desktop motherboards with any kind of hybrid graphics. The idea of Optimus and other similar solutions is to prolong the run on battery, not an issue with desktops.