DVI/HDMI doesn't work on Dell M4700 (optimus).

Everything about X, Gnome, KDE, ... and everything running on it

DVI/HDMI doesn't work on Dell M4700 (optimus).

Postby pierrecdn » 2018-06-16 13:51

Hi,

I'm reinstalling a laptop on Debian, without any surprise I have graphic card issues.

It's a Dell M4700 with a Dell ePort 2 dock station.
I have no issue at all to work with an etxernal monitor using VGA, but once I use one of the DVI/HDMI adapters, black screen.
I'm using buster/testing.

This laptop uses an 'optimus' Nvidia setup:

Code: Select all
$ lspci | grep 'VGA'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107GLM [Quadro K2000M] (rev ff)


I tried doing the nvidia-driver setup, but still no luck.

The xrandr output is still weird:

Code: Select all
$ xrandr --listproviders
Providers: number : 0


When VGA screen is connected, I get this:

Code: Select all
$ xrandr --query
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
XWAYLAND0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080     59.96*+
XWAYLAND1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
   1920x1080     59.96*+


So, there's absolutely no mention of HDMI port or whatever.

I didn't follow exactly what happened with X11/Wayland, but I'm on wayland now, so this output may be completely normal.

I don't know where I should start, any hints?
Last edited by pierrecdn on 2018-06-16 19:10, edited 1 time in total.
pierrecdn
 
Posts: 8
Joined: 2018-03-29 07:25

Re: DVI/HDMI doesn't work on Dell M4700 (optimus).

Postby Wheelerof4te » 2018-06-16 15:02

Debian wiki has a page about setting up Optimus:
https://wiki.debian.org/Bumblebee
BTW, Wayland and NVIDIA don't play along nicely. Stick to X once you get Bumblebee set up.
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14

Re: DVI/HDMI doesn't work on Dell M4700 (optimus).

Postby pierrecdn » 2018-06-16 16:47

Thanks for your answer, I was currently doing that (from Wayland to X.org)

It works well, but nothing changes regarding my DVI output, I'm not able to make it work.

Here is the new output from xrandr when I connect a VGA display using X.org;

Code: Select all
$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 2 associated providers: 0 name:modesetting
$ xrandr -q
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
LVDS-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 344mm x 194mm
(...)
VGA-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
(...)


Why modesetting??

I already had a look at the Debian Bumblebee doc but it didn't help.
Right now I'm having a look at https://github.com/Bumblebee-Project/Bu ... itor-setup but still I can do
Code: Select all
export DISPLAY=:8
and stuff as much as I want, I don't get anything from the DVI.

I have to admit that I have weird dmesg 's:
Code: Select all
june 16 19:17:29 dell-m4700 systemd[2224]: Started GNOME Terminal Server.
june 16 19:17:33 dell-m4700 kernel: bbswitch: enabling discrete graphics
june 16 19:17:34 dell-m4700 kernel: nvidia: module license 'NVIDIA' taints kernel.
june 16 19:17:34 dell-m4700 kernel: Disabling lock debugging due to kernel taint
june 16 19:17:34 dell-m4700 kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 241
june 16 19:17:34 dell-m4700 kernel: nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
june 16 19:17:34 dell-m4700 kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  390.48  Thu Mar 22 00:42:57 PDT 2018 (using threaded interrupts)
june 16 19:17:35 dell-m4700 kernel: resource sanity check: requesting [mem 0x000e0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000e0000-0x000e3fff window]
june 16 19:17:35 dell-m4700 kernel: caller _nv029948rm+0x57/0x90 [nvidia] mapping multiple BARs
june 16 19:17:35 dell-m4700 acpid[760]: client connected from 4146[0:996]
june 16 19:17:35 dell-m4700 acpid[760]: 1 client rule loaded
june 16 19:17:35 dell-m4700 kernel: ------------[ cut here ]------------
june 16 19:17:35 dell-m4700 kernel: Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_cache' (offset 11440, size 3)!
june 16 19:17:35 dell-m4700 kernel: WARNING: CPU: 3 PID: 4146 at /build/linux-43CEzF/linux-4.16.12/mm/usercopy.c:81 usercopy_warn+0x7e/0xa0
june 16 19:17:35 dell-m4700 kernel: Modules linked in: nvidia(PO) fuse xt_CHECKSUM ipt_REJECT nf_reject_ipv4 tun snd_hrtimer snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq ebtable_filter devlink snd_seq_device ebtables ip6table_filter ip6_tables ipmi_devintf ipmi_msghandler xt_nat xt_tcpudp veth vxlan ip6_udp_tunnel udp_tunnel iptable_mangle xt_mark ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter xt_conntrack nf_nat nf_conntrack libcrc32c br_netfilter bridge stp llc overlay nls_utf8 cifs ccm dns_resolver fscache bbswitch(O) binfmt_misc dm_crypt algif_skcipher af_alg snd_hda_codec_idt snd_hda_codec_generic intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm arc4 i915 iwldvm
june 16 19:17:35 dell-m4700 kernel:  irqbypass snd_hda_intel mac80211 dell_laptop dell_wmi snd_hda_codec iTCO_wdt crct10dif_pclmul iwlwifi dell_smbios crc32_pclmul uvcvideo snd_hda_core iTCO_vendor_support dcdbas ghash_clmulni_intel sparse_keymap snd_hwdep wmi_bmof dell_wmi_descriptor dell_smm_hwmon videobuf2_vmalloc snd_pcm_oss intel_cstate videobuf2_memops drm_kms_helper snd_mixer_oss videobuf2_v4l2 cfg80211 videobuf2_common snd_pcm drm videodev snd_timer intel_uncore mei_me snd intel_rapl_perf joydev evdev media pcspkr soundcore lpc_ich mei i2c_algo_bit sg serio_raw shpchp wmi dell_rbtn dell_smo8800 rfkill video ac battery button sunrpc parport_pc ppdev lp parport ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic fscrypto ecb dm_mod sr_mod sd_mod cdrom hid_generic usbhid hid crc32c_intel ahci aesni_intel
june 16 19:17:35 dell-m4700 kernel:  libahci sdhci_pci ehci_pci libata cqhci sdhci firewire_ohci aes_x86_64 xhci_pci crypto_simd cryptd glue_helper xhci_hcd ehci_hcd psmouse i2c_i801 scsi_mod firewire_core mmc_core crc_itu_t e1000e usbcore usb_common thermal
june 16 19:17:35 dell-m4700 kernel: CPU: 3 PID: 4146 Comm: Xorg Tainted: P           O     4.16.0-2-amd64 #1 Debian 4.16.12-1
june 16 19:17:35 dell-m4700 kernel: Hardware name: Dell Inc. Precision M4700/0DK7DT, BIOS A05 10/08/2012
june 16 19:17:35 dell-m4700 kernel: RIP: 0010:usercopy_warn+0x7e/0xa0
june 16 19:17:35 dell-m4700 kernel: RSP: 0018:ffffbacf498f3b60 EFLAGS: 00010282
june 16 19:17:35 dell-m4700 kernel: RAX: 0000000000000000 RBX: ffff9bb71691dcb0 RCX: 0000000000000006
june 16 19:17:35 dell-m4700 kernel: RDX: 0000000000000007 RSI: 0000000000000096 RDI: ffff9bb7ae2d6730
june 16 19:17:35 dell-m4700 kernel: RBP: 0000000000000003 R08: 00000000000003ee R09: 0000000000000004
june 16 19:17:35 dell-m4700 kernel: R10: ffffffffa8477220 R11: 0000000000000001 R12: 0000000000000001
june 16 19:17:35 dell-m4700 kernel: R13: ffff9bb71691dcb3 R14: 0000000000000000 R15: ffff9bb71691dcf8
june 16 19:17:35 dell-m4700 kernel: FS:  00007f44f58a66c0(0000) GS:ffff9bb7ae2c0000(0000) knlGS:0000000000000000
june 16 19:17:35 dell-m4700 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
june 16 19:17:35 dell-m4700 kernel: CR2: 00007f44ed997010 CR3: 0000000751514006 CR4: 00000000001606e0
june 16 19:17:35 dell-m4700 kernel: Call Trace:
june 16 19:17:35 dell-m4700 kernel:  __check_object_size+0x9c/0x1a0
june 16 19:17:35 dell-m4700 kernel:  os_memcpy_to_user+0x21/0x40 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  _nv009377rm+0xbf/0xe0 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? _nv028067rm+0x79/0x90 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? _nv028067rm+0x55/0x90 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? _nv013694rm+0xee/0x100 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? _nv015342rm+0x154/0x270 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? _nv008310rm+0x134/0x1a0 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? _nv008289rm+0x29c/0x2b0 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? _nv001072rm+0xe/0x20 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? _nv007316rm+0xd8/0x100 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? _nv001171rm+0x627/0x830 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? rm_ioctl+0x73/0x100 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? nvidia_ioctl+0xf0/0x720 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? nvidia_ioctl+0x519/0x720 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? kmem_cache_free+0x19c/0x1d0
june 16 19:17:35 dell-m4700 kernel:  ? nvidia_frontend_unlocked_ioctl+0x3e/0x50 [nvidia]
june 16 19:17:35 dell-m4700 kernel:  ? do_vfs_ioctl+0xa4/0x630
june 16 19:17:35 dell-m4700 kernel:  ? __fput+0x164/0x1e0
june 16 19:17:35 dell-m4700 kernel:  ? SyS_ioctl+0x74/0x80
june 16 19:17:35 dell-m4700 kernel:  ? do_syscall_64+0x6c/0x130
june 16 19:17:35 dell-m4700 kernel:  ? entry_SYSCALL_64_after_hwframe+0x3d/0xa2
june 16 19:17:35 dell-m4700 kernel: Code: 48 c7 c0 f1 d2 43 a8 48 0f 44 c2 41 50 51 41 51 48 89 f9 49 89 f1 4d 89 d8 4c 89 d2 48 89 c6 48 c7 c7 38 d3 43 a8 e8 62 4c e4 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 3c d3 44 a8 49 89 f1 49 89 f3 eb
june 16 19:17:35 dell-m4700 kernel: ---[ end trace c2fc80dd7e4fb239 ]---
june 16 19:17:35 dell-m4700 kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  390.48  Wed Mar 21 23:48:34 PDT 2018
june 16 19:17:35 dell-m4700 kernel: nvidia-modeset: Allocated GPU:0 (GPU-8970cf42-5fa9-2423-0584-30e36e0b702f) @ PCI:0000:01:00.0
june 16 19:17:35 dell-m4700 bumblebeed[769]: [ 1143.351269] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
june 16 19:17:35 dell-m4700 bumblebeed[769]: [ 1143.351305] [WARN][XORG] (WW) NVIDIA(0): Option "NoLogo" is not used
june 16 19:17:35 dell-m4700 bumblebeed[769]: [ 1143.351333] [ERROR][XORG] (EE) PreInit returned 2 for "<default keyboard>"
june 16 19:17:35 dell-m4700 bumblebeed[769]: [ 1143.351575] [WARN]Could not write data! Error: Broken pipe
june 16 19:17:36 dell-m4700 kernel: nvidia-modeset: Freed GPU:0 (GPU-8970cf42-5fa9-2423-0584-30e36e0b702f) @ PCI:0000:01:00.0
june 16 19:17:36 dell-m4700 kernel: nvidia-modeset: Unloading
june 16 19:17:36 dell-m4700 kernel: nvidia-nvlink: Unregistered the Nvlink Core, major device number 241
june 16 19:17:36 dell-m4700 acpid[760]: client 4146[0:996] has disconnected
june 16 19:17:36 dell-m4700 kernel: bbswitch: disabling discrete graphics
june 16 19:17:36 dell-m4700 kernel: pci 0000:01:00.0: Refused to change power state, currently in D0
june 16 19:17:36 dell-m4700 /usr/lib/gdm3/gdm-x-session[2241]: (II) modeset(0): EDID vendor "GSM", prod id 22221
june 16 19:17:36 dell-m4700 /usr/lib/gdm3/gdm-x-session[2241]: (II) modeset(0): Using hsync ranges from config file


kernel 4.16
Code: Select all
$ uname -a
Linux dell-m4700 4.16.0-2-amd64 #1 SMP Debian 4.16.12-1 (2018-05-27) x86_64 GNU/Linux


These graphics issue are soooo annoying.

If some experts are around, it will be very appreciated.
pierrecdn
 
Posts: 8
Joined: 2018-03-29 07:25

Re: DVI/HDMI doesn't work on Dell M4700 (optimus).

Postby Wheelerof4te » 2018-06-16 17:16

pierrecdn wrote:kernel 4.16

Is that from Stretch-backports, or are you running Testing/Sid? You should have mentioned that in your opening post.
I read that nvidia-driver has some dependency problems in backports. You can not use Stretch's bumblebee package for kernel 4.16.
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14

Re: DVI/HDMI doesn't work on Dell M4700 (optimus).

Postby pierrecdn » 2018-06-16 19:08

I'm using testing/buster, yes.
Meaning bumblebee & bumblebee-nvidia 3.2.1-17.

I did not find that much regarding compatibility issues, where did you find that? Edited my first message by the way, I agree it can be confusing.
pierrecdn
 
Posts: 8
Joined: 2018-03-29 07:25

Re: DVI/HDMI doesn't work on Dell M4700 (optimus).

Postby Wheelerof4te » 2018-06-16 19:28

pierrecdn wrote:I did not find that much regarding compatibility issues, where did you find that?

Testing does sometimes hold packages because of dependencies which didn't migrate from Sid due to bugs/regressions.
But, here it says that it did migrate safely:
https://tracker.debian.org/news/893564/ ... o-testing/
My guess was due to the nvidia-driver in stretch-backports having dependency problems:
https://lists.debian.org/debian-backpor ... 00082.html

I don't believe to know where your problem might be, since I have hybrid Intel/AMD notebook. There are regular users who may help more.
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable