I can't enable the HDMI output in laptop with opitmus

Hi!
I bought a new laptop, DELL Inspiron 15 7000 Gaming and I can’t enable the HDMI output. (of course, in Windows works).
Any help is welcome

INFO:
Opensuse Leap 42.3 (clean install)
Plasma: 5.8.7
Kernel: 4.4.79-19-default
Video: Intel / Nvidia 1050 Ti (4GB)

/var/log/Xorg.0.log

https://pastebin.com/FQimfEDS

xrandr -q


xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected primary 1920x1080+0+0 0mm x 0mm
   1920x1080     77.00*

lspci | egrep 'VGA|3D’

00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1c8c (rev ff)

systemctl status bumblebeed

● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: active (running) since lun 2017-08-21 02:21:53 -05; 13min ago
 Main PID: 1337 (bumblebeed)
    Tasks: 1 (limit: 512)
   CGroup: /system.slice/bumblebeed.service
           └─1337 /usr/sbin/bumblebeed

ago 21 02:21:53 linux-r6jt systemd[1]: Started Bumblebee C Daemon.
ago 21 02:21:53 linux-r6jt bumblebeed[1337]:     8.699982] [INFO]/usr/sbin/bumblebeed 3.2.1 started

zypper lr -d


#  | Alias                     | Nombre                                  | Habilitado | Comprobación GPG | Actualizar | Prioridad | Tipo   | URI                                                                          | Servicio
---+---------------------------+-----------------------------------------+------------+------------------+------------+-----------+--------+------------------------------------------------------------------------------+---------
 1 | bumblebee                 | bumblebee                               | Si         | (r ) Si          | Si         |   80      | rpm-md | http://download.opensuse.org/repositories/X11:/Bumblebee/openSUSE_Leap_42.3/ |         
 2 | openSUSE-Leap-42.3-0      | openSUSE-Leap-42.3-0                    | No         | ----             | ----       |   99      | yast2  | hd:///?device=/dev/disk/by-id/usb-hp_v245o_070D59582459A246-0:0-part2        |         
 3 | packman                   | packman                                 | Si         | (r ) Si          | Si         |   70      | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_42.3/           |         
 4 | repo-debug                | openSUSE-Leap-42.3-Debug                | No         | ----             | ----       |   99      | NONE   | http://download.opensuse.org/debug/distribution/leap/42.3/repo/oss/          |         
 5 | repo-debug-non-oss        | openSUSE-Leap-42.3-Debug-Non-Oss        | No         | ----             | ----       |   99      | NONE   | http://download.opensuse.org/debug/distribution/leap/42.3/repo/non-oss/      |         
 6 | repo-debug-update         | openSUSE-Leap-42.3-Update-Debug         | No         | ----             | ----       |   99      | NONE   | http://download.opensuse.org/debug/update/leap/42.3/oss/                     |         
 7 | repo-debug-update-non-oss | openSUSE-Leap-42.3-Update-Debug-Non-Oss | No         | ----             | ----       |   99      | NONE   | http://download.opensuse.org/debug/update/leap/42.3/non-oss/                 |         
 8 | repo-non-oss              | openSUSE-Leap-42.3-Non-Oss              | Si         | (r ) Si          | Si         |   99      | yast2  | http://download.opensuse.org/distribution/leap/42.3/repo/non-oss/            |         
 9 | repo-oss                  | openSUSE-Leap-42.3-Oss                  | Si         | (r ) Si          | Si         |   99      | yast2  | http://download.opensuse.org/distribution/leap/42.3/repo/oss/                |         
10 | repo-source               | openSUSE-Leap-42.3-Source               | No         | ----             | ----       |   99      | NONE   | http://download.opensuse.org/source/distribution/leap/42.3/repo/oss/         |         
11 | repo-source-non-oss       | openSUSE-Leap-42.3-Source-Non-Oss       | No         | ----             | ----       |   99      | NONE   | http://download.opensuse.org/source/distribution/leap/42.3/repo/non-oss/     |         
12 | repo-update               | openSUSE-Leap-42.3-Update               | Si         | (r ) Si          | Si         |   99      | rpm-md | http://download.opensuse.org/update/leap/42.3/oss/                           |         
13 | repo-update-non-oss       | openSUSE-Leap-42.3-Update-Non-Oss       | Si         | (r ) Si          | Si         |   99      | rpm-md | http://download.opensuse.org/update/leap/42.3/non-oss/                       |     

rpm -qa | grep kernel

kernel-default-4.4.76-1.1.x86_64
kernel-source-4.4.79-19.1.noarch
patterns-openSUSE-devel_kernel-20170518-6.1.x86_64
kernel-firmware-20170530-9.1.noarch
kernel-devel-4.4.79-19.1.noarch
kernel-default-4.4.79-19.1.x86_64
kernel-default-devel-4.4.79-19.1.x86_64
kernel-syms-4.4.79-19.1.x86_64
kernel-macros-4.4.79-19.1.noarch

rpm -qa | grep nvidia

nvidia-bumblebee-32bit-375.66-1.1.x86_64
nvidia-bumblebee-375.66-1.1.x86_64

Your Xorg.0.log shows that the frame buffer driver is in use. No sign of the nvidia driver. Which guide did you follow?

This: ultimate tutorial installing Bumblebee driver for SUSE - Hardware - openSUSE Forums

I note the boot code “nouveau.modeset=0”. Is that not intended to disable the nouveau driver for nvidia hardware? Can you give a bit more background as to the technical approach you are trying adopt wrt disable drivers in your optimus ?

Nouveau is the opensource driver, I installed the official nvidia driver (with bumblebee).

PD. I can run programs with “optirun” (mpv for example), so the nvidia driver works, BUT my question is very different, I can’t enable the HDMI output (I want use my TV/external monitor in this laptop). With my old SONY VAIO Fit 15 (also, optimus), I can use the HDMI output by default, only press CTRL + F7 in openSUSE Leap 42.2 (the previous version)

Are you certain about that ? The log file you posted indicates the FBDEV driver loaded, which to the best of my recollection is not the nvidia driver. ie it does not appear to be loaded. Look at all the “FBDEV(0)” entries in that log file.

Maybe the following will be helpful:

https://en.opensuse.org/SDB:NVIDIA_Bumblebee#Verify_installation

Verify installation After installation of the software above, reboot your machine.
Check bumblebee is working by opening a terminal and typing:

optirun --status

If you see the message: “Bumblebee status: Ready (3.2.1). X inactive. Discrete video card is off.” Then bumblebee should be working properly. To use the discrete video card, you must launch the program from the terminal:

optirun program-name

You can test this by running:

optirun glxgears

(Note: glxgears is in Mesa-demo-x package)
If you see the gears, then your discrete card is working with bumblebee.
You may also verify your installation by running nvidia-settings program, which is installed along with the proprietary nvidia drivers:

optirun -b none nvidia-settings -c :8

This too perhaps:
https://forums.opensuse.org/showthread.php/510822-Leap-Bumblebee?p=2738541#post2738541

Yep, I’m sure. Because:

glxspheres

Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x1a4
Context is Direct
OpenGL Renderer: Gallium 0.4 on llvmpipe (LLVM 3.8, 256 bits)
34.686275 frames/sec - 38.709883 Mpixels/sec
34.755700 frames/sec - 38.787361 Mpixels/sec
36.524304 frames/sec - 40.761123 Mpixels/sec
36.885706 frames/sec - 41.164448 Mpixels/sec
35.982285 frames/sec - 40.156230 Mpixels/sec
35.188890 frames/sec - 39.270801 Mpixels/sec
37.165416 frames/sec - 41.476604 Mpixels/sec
36.637231 frames/sec - 40.887150 Mpixels/sec
36.361388 frames/sec - 40.579309 Mpixels/sec
37.687007 frames/sec - 42.058699 Mpixels/sec

** optirun glxspheres**

Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GTX 1050 Ti/PCIe/SSE2
187.472601 frames/sec - 209.219422 Mpixels/sec
189.738145 frames/sec - 211.747770 Mpixels/sec
180.724968 frames/sec - 201.689064 Mpixels/sec
188.873463 frames/sec - 210.782785 Mpixels/sec
185.966571 frames/sec - 207.538693 Mpixels/sec
188.303382 frames/sec - 210.146575 Mpixels/sec
184.786172 frames/sec - 206.221368 Mpixels/sec
179.954157 frames/sec - 200.828839 Mpixels/sec

Thanks for your answers but… What does this have to do with the HDMI output?.
Well…

optirun nvidia-smi


Mon Aug 21 22:19:12 2017                                                                                                                                                                                                                                                       
+-----------------------------------------------------------------------------+                                                                                                                                                                                                
| NVIDIA-SMI 375.66                 Driver Version: 375.66                    |                                                                                                                                                                                                
|-------------------------------+----------------------+----------------------+                                                                                                                                                                                                
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |                                                                                                                                                                                                
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |                                                                                                                                                                                                
|===============================+======================+======================|                                                                                                                                                                                                
|   0  GeForce GTX 105...  Off  | 0000:01:00.0     Off |                  N/A |                                                                                                                                                                                                
| N/A   45C    P0    N/A /  N/A |      6MiB /  4038MiB |      0%      Default |                                                                                                                                                                                                
+-------------------------------+----------------------+----------------------+                                                                                                                                                                                                
                                                                                                                                                                                                                                                                               
+-----------------------------------------------------------------------------+                                                                                                                                                                                                
| Processes:                                                       GPU Memory |                                                                                                                                                                                                
|  GPU       PID  Type  Process name                               Usage      |                                                                                                                                                                                                
|=============================================================================|                                                                                                                                                                                                
|    0      4450    G   Xorg                                             6MiB |                                                                                                                                                                                                
+-----------------------------------------------------------------------------+

optirun -b none nvidia-settings -c :8

The output you had provided so far suggest the discrete card is off, and using Xorg is using the frame buffer driver rather than the intel driver as I would expect to see. I would assume that might be why no HDMI output available. I note that the Xorg.0.log contains…

    83.583] intel: waited 2020 ms for i915.ko driver to load

but not sure what you might be missing here.

FWIW, I found a thread reporting the same behaviour (re HDMI) for a similar Dell laptop model.

Just install OpenSuse Leap 42.2 on my new laptop (Dell Inspiron 15 7567 Gaming). I am unable to make my screen work through HDMI.

I also found out that the machine is made in a little funky way. The laptop screen is using the Intel card and the HDMI port is on the NVIDIA card. It appear that opensuse or the driver has hard time handling a situation like this.

So, probably sums it up.