Laptop Optimus with nvidia 1050 sometimes fail to display external monitor via HDMI

Hi everyone,

I am impressed with EndeavourOS as it’s easy to install and use. But I have problem here with my laptop. I have optimus laptop with intel and nvidia 1050. Installed nvidia driver with nvidia-inst command. but when connect to external monitor, sometimes my external monitor only display black screen. and when I try to utilize nvidia gpu (exacmple: prime-run glxgears), my laptop will hang. And after force restart then external monitor with hdmi will normal. I have no idea how to find the root cause. Because it’s sometimes happen, and sometimes fixed it by itself. I hope some one will read this. I try with Optimus manager and now using supergfxctl, this issue still happen. I see error nvidia in dmesg. I google it found out some people experience this bug. But I don’t know to solve it.

inxi
CPU: quad core Intel Core i5-7300HQ (-MCP-) speed/min/max: 2500/800/3500 MHz
Kernel: 6.2.2-arch2-1 x86_64 Up: 21h 24m Mem: 3190.6/7812.0 MiB (40.8%)
Storage: 965.99 GiB (51.0% used) Procs: 236 Shell: Bash inxi: 3.3.25

lsmod |grep nvidia
nvidia_drm             90112  5
nvidia_uvm           3117056  0
nvidia_modeset       1548288  3 nvidia_drm
nvidia              62218240  99 nvidia_uvm,nvidia_modeset
video                  73728  4 dell_wmi,dell_laptop,i915,nvidia_modeset
dmesg

[    9.238140] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    9.238142] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    9.238143] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    9.238145] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
[    9.238146] snd_hda_codec_realtek hdaudioC0D0:      Headphone Mic=0x1a
[    9.238148] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
[    9.291801] input: HDA Intel PCH Headphone Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input24
[    9.558535] i915 0000:00:02.0: [drm] *ERROR* Failed to probe lspcon
[    9.558538] i915 0000:00:02.0: [drm] *ERROR* LSPCON init failed on port B
[   10.223443] i915 0000:00:02.0: [drm] *ERROR* Failed to probe lspcon
[   10.223446] i915 0000:00:02.0: [drm] *ERROR* LSPCON init failed on port B
[   11.779647] wlan0: authenticate with 14:77:40:64:71:09
[   11.779658] wlan0: 80 MHz not supported, disabling VHT
[   11.783608] wlan0: send auth to 14:77:40:64:71:09 (try 1/3)
[   11.785907] wlan0: authenticated
[   11.787685] wlan0: associate with 14:77:40:64:71:09 (try 1/3)
[   11.791778] wlan0: RX AssocResp from 14:77:40:64:71:09 (capab=0x431 status=0 aid=2)
[   11.796900] wlan0: associated
[   11.871455] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   12.300939] i915 0000:00:02.0: [drm] *ERROR* Failed to probe lspcon
[   12.300942] i915 0000:00:02.0: [drm] *ERROR* LSPCON init failed on port B
[   13.908274] rfkill: input handler disabled
[   14.290369] Bluetooth: RFCOMM TTY layer initialized
[   14.290376] Bluetooth: RFCOMM socket layer initialized
[   14.290392] Bluetooth: RFCOMM ver 1.11
[   18.792309] systemd-journald[299]: /var/log/journal/8e1d8232c0804bf2b24b2ae3a11674ef/user-1000.journal: Monotonic clock jumped backwards relative to last journal entry, rotating.
[   19.377605] rfkill: input handler enabled
[   20.735300] i915 0000:00:02.0: [drm] *ERROR* Failed to probe lspcon
[   20.735304] i915 0000:00:02.0: [drm] *ERROR* LSPCON init failed on port B
[   23.122100] rfkill: input handler disabled
[   28.719800] nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000927c:0:0:1128
[   30.720243] nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000927c:0:0:1128
[   32.724821] nvidia-modeset: ERROR: GPU:0: Idling display engine timed out: 0x0000927c:0:0:1128
1 Like

Use EnvyControl or OptimusManager and switch into the Nvidia mode to have signal on HDMI.

Or instead of hdmi you can use type c to hdmi, or normal usb to hdmi if it’s support sending video signal over it.
USB to HDMI works in any mode, hybrid, integrated or nvidia, without need of EnvyControl or OptimusManager.

@wheelloader
Please use code tags around the output you post.

Edit: It would also be helpful if you post your hardware output. Please post the url.

inxi -Faz | eos-sendlog

this is the result

https://0x0.st/H-yx.txt

I have tried optimus manager, but sometimes it’s work, and sometime it is not. just black screen on my external monitor

Oke, I think I have to write this. I reinstall optimus manager. and external monitor now work. But I have no audio. when I ran “dmesg | grep snd_hda_intel”
I got “Unable to change power state from D3cold to D0, device inaccessible”. Some googling found answer I have to add “pcie_port_pm=off” to grub. Restart My laptop and audio now work. I hope this is consistent solution.

1 Like