Manjaro can't recognize my HDMI port

I have bought a new monitor. It works fine with windows, but I cannot use it on Manjaro. The problem is HDMI does not appear on xrandr command. I tried to use this post to fix the problem, but it didn’t help much…although I might messed something up, I’m not sure

https://forum.manjaro.org/t/can-not-detect-and-connect-to-external-hdmi-monitor-on-hybrid-intel-nvidia-laptop/62859

the result of some commands:
inxi -Gazy

Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo
    driver: N/A alternate: nouveau, nvidia_drm, nvidia non-free: 520.xx+
    status: current (as of 2022-10) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 3 speed: 8 GT/s lanes: 8
    link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:2560 class-ID: 0300
  Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5.1
    code: Vega-2 process: TSMC n7 (7nm) built: 2018-21 pcie: gen: 3 speed: 8 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s ports: active: eDP-1 empty: none
    bus-ID: 06:00.0 chip-ID: 1002:1638 class-ID: 0300 temp: 44.0 C
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: BOE Display 0x0998 built: 2020 res: 1920x1080
    hz: 165 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: max: 1920x1080 min: 640x480
  API: OpenGL v: 4.6 Mesa 22.2.1 renderer: RENOIR (renoir LLVM 14.0.6 DRM
    3.42 5.15.76-1-MANJARO) direct render: Yes

inxi -f

    type: MT MCP cache: L2: 4 MiB
  Speed (MHz): avg: 2251 min/max: 1200/3200 cores: 1: 3391 2: 2995 3: 2939
    4: 2426 5: 2178 6: 1915 7: 1577 8: 1916 9: 1490 10: 1564 11: 2109 12: 2922
    13: 1916 14: 2114 15: 2256 16: 2319
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists erms extapic
    extd_apicid f16c flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht
    hw_pstate ibpb ibrs ibs invpcid irperf lahf_lm lbrv lm mba mca mce
    misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl npt
    nrip_save nx ospke osvw overflow_recov pae pat pausefilter pclmulqdq
    pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pku pni
    popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep
    sha_ni skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3
    stibp succor svm svm_lock syscall tce topoext tsc tsc_scale umip
    v_spec_ctrl v_vmsave_vmload vaes vgif vmcb_clean vme vmmcall vpclmulqdq
    wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves

cat /proc/version

Linux version 5.15.76-1-MANJARO (builduser@fv-az214-469) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0) #1 SMP PREEMPT Sat Oct 29 14:22:16 UTC 2022

xrandr

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080    165.00*+  60.01    59.97    59.96    59.93  
   1680x1050    165.00    59.95    59.88  
   1400x1050     74.76    59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024    165.00    85.02    75.02    60.02  
   1440x900     165.00  
   1400x900      59.96    59.88  
   1280x960      85.00    60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800     165.00    59.99    59.97    59.81    59.91  
   1152x864      75.00  
   1280x720     165.00    60.00    59.99    59.86    59.74  
   1024x768     165.00    85.00    75.05    60.04    85.00    75.03    70.07    60.00  
   1024x768i     86.96  
   960x720       85.00    75.00    60.00  
   928x696       75.00    60.05  
   896x672       75.05    60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   832x624       74.55  
   960x540       59.96    59.99    59.63    59.82  
   800x600      165.00    85.00    75.00    70.00    65.00    60.00    85.14    72.19    75.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       74.76    59.98  
   800x450       59.95    59.82  
   640x512       85.02    75.02    60.02  
   700x450       59.96    59.88  
   640x480      165.00    85.09    60.00    85.01    72.81    75.00    59.94  
   720x405       59.51    58.99  
   720x400       85.04  
   684x384       59.88    59.85  
   640x400       59.88    59.98    85.08  
   576x432       75.00  
   640x360       59.86    59.83    59.84    59.32  
   640x350       85.08  
   512x384       85.00    75.03    70.07    60.00  
   512x384i      87.06  
   512x288       60.00    59.92  
   416x312       74.66  
   480x270       59.63    59.82  
   400x300       85.27    72.19    75.12    60.32    56.34  
   432x243       59.92    59.57  
   320x240       85.18    72.81    75.00    60.05  
   360x202       59.51    59.13  
   360x200       85.04  
   320x200       85.27  
   320x180       59.84    59.32  
   320x175       85.27  

Thanks in advance

Hi and welcome to the forum :+1:

It shows that your driver is not loaded, but it gives you:

So check why your drivers are not being loaded in the logs via journalctl :vulcan_salute:

Hi and thanks for your response. this is the results of journalctl for me

Nov 07 09:09:39 legioncommander systemd-timedated[2552]: Changed local time to Mon 2022-11-07 09:09:39 +0330
Nov 07 09:09:39 legioncommander systemd-journald[357]: Time jumped backwards, rotating.
Nov 07 09:09:42 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=19 len=4
Nov 07 09:09:42 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=20 len=4
Nov 07 09:09:43 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=21 len=4
Nov 07 09:09:43 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=22 len=4
Nov 07 09:09:43 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=23 len=4
Nov 07 09:09:43 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=24 len=4
Nov 07 09:09:44 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=25 len=4
Nov 07 09:09:44 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=26 len=4
Nov 07 09:09:44 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=27 len=4
Nov 07 09:09:44 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=28 len=4
Nov 07 09:09:44 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=29 len=4
Nov 07 09:09:44 legioncommander kernel: RTL871X: cfg80211_rtw_dump_station(wlp6s0f3u2u2)
Nov 07 09:09:44 legioncommander kernel: RTL871X: Station is not found
Nov 07 09:09:45 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=30 len=4
Nov 07 09:09:49 legioncommander kded5[1360]: Registering ":1.61/StatusNotifierItem" to system tray
Nov 07 09:09:49 legioncommander plasmashell[1395]: QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
Nov 07 09:09:50 legioncommander kernel: RTL871X: cfg80211_rtw_dump_station(wlp6s0f3u2u2)
Nov 07 09:09:50 legioncommander kernel: RTL871X: Station is not found
Nov 07 09:09:52 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=31 len=4
Nov 07 09:09:53 legioncommander kernel: RTL871X: rtl8188f_c2h_packet_handler: C2H, ID=12 seq=32 len=4
Nov 07 09:09:56 legioncommander kernel: RTL871X: cfg80211_rtw_dump_station(wlp6s0f3u2u2)
Nov 07 09:09:56 legioncommander kernel: RTL871X: Station is not found
Nov 07 09:10:02 legioncommander kernel: RTL871X: cfg80211_rtw_dump_station(wlp6s0f3u2u2)
Nov 07 09:10:02 legioncommander kernel: RTL871X: Station is not found
Nov 07 09:10:08 legioncommander kernel: RTL871X: cfg80211_rtw_dump_station(wlp6s0f3u2u2)
Nov 07 09:10:08 legioncommander kernel: RTL871X: Station is not found
Nov 07 09:10:09 legioncommander systemd[1]: systemd-timedated.service: Deactivated successfully.
Nov 07 09:10:09 legioncommander audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-timedated comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 07 09:10:09 legioncommander kernel: audit: type=1131 audit(1667799609.445:168): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-timedated comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=s>
Nov 07 09:10:09 legioncommander audit: BPF prog-id=0 op=UNLOAD
Nov 07 09:10:09 legioncommander audit: BPF prog-id=0 op=UNLOAD
Nov 07 09:10:09 legioncommander audit: BPF prog-id=0 op=UNLOAD
Nov 07 09:10:09 legioncommander kernel: audit: type=1334 audit(1667799609.515:169): prog-id=0 op=UNLOAD
Nov 07 09:10:09 legioncommander kernel: audit: type=1334 audit(1667799609.515:170): prog-id=0 op=UNLOAD
Nov 07 09:10:09 legioncommander kernel: audit: type=1334 audit(1667799609.515:171): prog-id=0 op=UNLOAD
Nov 07 09:10:11 legioncommander plasmashell[2495]: [2495:23:1107/091011.731850:ERROR:srtp_transport.cc(216)] Failed to unprotect RTP packet: size=129, seqnum=14693, SSRC=6666, previous failure count: 0
Nov 07 09:10:14 legioncommander kernel: RTL871X: cfg80211_rtw_dump_station(wlp6s0f3u2u2)
Nov 07 09:10:14 legioncommander kernel: RTL871X: Station is not found
Nov 07 09:10:20 legioncommander kernel: RTL871X: cfg80211_rtw_dump_station(wlp6s0f3u2u2)
Nov 07 09:10:20 legioncommander kernel: RTL871X: Station is not found
Nov 07 09:10:26 legioncommander kernel: RTL871X: cfg80211_rtw_dump_station(wlp6s0f3u2u2)
Nov 07 09:10:26 legioncommander kernel: RTL871X: Station is not found
Nov 07 09:10:32 legioncommander kernel: RTL871X: cfg80211_rtw_dump_station(wlp6s0f3u2u2)
Nov 07 09:10:32 legioncommander kernel: RTL871X: Station is not found
Nov 07 09:10:38 legioncommander kernel: RTL871X: cfg80211_rtw_dump_station(wlp6s0f3u2u2)
Nov 07 09:10:38 legioncommander kernel: RTL871X: Station is not found
Nov 07 09:10:44 legioncommander kernel: RTL871X: cfg80211_rtw_dump_station(wlp6s0f3u2u2)
Nov 07 09:10:44 legioncommander kernel: RTL871X: Station is not found
Nov 07 09:10:50 legioncommander kernel: RTL871X: cfg80211_rtw_dump_station(wlp6s0f3u2u2)

I am a bit naive using Manjaro, so can you please help me in more details on how to fix it ?
thanks again

If you are using a Hybrid setup (AMD CPU + NVIDIA GPU), it is possible that only the discrete GPU (NVIDIA in this case) is connected to HDMI output.

I think you should install the drivers though driver manager, in case you havent done that yet. In case you install the hybrid driver you should also install optimus-manager and use hybrid mode. That’s what I did and it works (I have a Lenovo Legion like you, I suppose after reading your journalctl output).

I am no expert, but I hope that helps.

Those logs are only showing stuff related to your WiFi…
But do what @Volt above me just told you :wink:

thank you so much for your response…and yes…I have a Lenovo Legion
I tried to install optimus-manager, but it hasn’t run successfully on my laptop. this it the result of
optimus-manager and also optimus-manager --status:

ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Log at /var/log/optimus-manager/switch/switch-20221220T215622.log
If your login manager is GDM, make sure to follow those instructions:
https://github.com/Askannz/optimus-manager#important--gnome-and-gdm-users
If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki:
https://github.com/Askannz/optimus-manager/wiki/FAQ,-common-issues,-troubleshooting
Cannot execute command because of previous errors.

i couldn’t make the head or tail of this. so please help me with this.
also thank you @TriMoon

As said here, there are some extra steps if you are on

  • GNOME and GDM, or
  • Manjaro KDE

Depending of your setup, you may need to follow that extra steps. If you have already done that or you don’t have that setup, then I don’t know how to help sorry.

PS: you are on linux kernel 5.15, if nothing keeps you on that version I suggest you to upgrade to 6.1 (the latest version) after dealing with optimus-manager. Newer kernels add support for newer hardware.

thank you again for your help
I followed the instructions for KDE, which I have, and now optimus-manager is working without any conflict, and i switched it to hybrid-mode and reboot; but still i don’t have HDMI on xrandr and the monitor says “no signal”
i couldn’t upload any pictures of my “hardware configuration” on “system settings”, but this is the result of mhwd

> 0000:03:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI


> 0000:01:00.0 (0300:10de:2560) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2021.11.04               false            PCI
video-hybrid-amd-nvidia-470xx-prime            2021.11.04               false            PCI
          video-nvidia            2021.11.04               false            PCI
    video-nvidia-470xx            2021.11.04               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:06:00.0 (0300:1002:1638) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2021.11.04               false            PCI
video-hybrid-amd-nvidia-470xx-prime            2021.11.04               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

at the moment I have “video-hybrid-amd-nvidia-prime”,“video-linux” and “video-modesetting” installed.
Does it have anything to do with them? should I change them?

This may be a wild guess, but have you tried updating your kernel? (settings → kernel)
Kernel 5.15 was launched at 2021, more that a year ago.

Also, check if prime-run command is working.

No, do you recommend it?
and beside that i use Manjaro mainly for code development. Does it effect my work spaces, docker, etc?

also prime-run doesn’t do anything.

prime-run is used to run programs on GPU, so you should wrote prime-run minecraft or similar. I suggested that to check if the dGPU is available.

Regarding the kernel, yes I believe it is your best chance, and it should not break anything (idk how docker works though). Even if it does, you can always go back to an installed (older) kernel.

Regardless, it is a good practice to make backups.

I don’t have minecraft on, so the result of calling that command was “command not found”
I tried the prime-run glxinfo command and here is the result:

name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  50
  Current serial number in output stream:  51

i will try to change the kernel and inform you after I do. if you have any material on making backups on Manjaro, please also provide me with that. thanks again

The output does not look good to me (dont know how to solve sorry).

Regarding backups, I use timeshift for system backups (but not for personal files, though i think you can set up timeshift that way).

Please keep in mind that I’m not the best person to help, because Im no “poweruser” and the things mentioned above worked on first try to me.

thank you so much for you suggestion. I have changed the kernel to 6.1 and using optimus-manager on nvidia, the monitor finally works; although I cant use monitor on “integrated mode” and on “hybrid-mode”, i can use the monitor but the icons on program bar and application launcher doesn’t show and the whole system runs slower and bit of lag.
when i try to put it on “hybrid-mode”, this warning pops out:

No power management option is currently enabled
Switching between GPUs will work but you will likely experience poor battery life.
Follow these instructions to enable power management.

any idea on how to fix that on integrated and hybrid mode too?
and once again thank you so much @Volt for your help. I was trying for about 3 days and became really frustrated with my laptop and everything!
your help meant so much to me :slight_smile:

I’m glad for helping.

About the system lagging, it is strange to be honest. Since you have probably tweaked some configs, maybe a future clean install may help?

Regarding power management: according to this, and because your GPU is the same as mine, you should already support Runtime D3 power management. With this, using “integrated mode” would made no sense, since RD3 can completely turn off the card when not used, therefore you should use "hybrid or “nvidia” (use “hybrid” for better battery life, then use prime-run when needed).

I believe you can ignore that message (source) if cat /proc/driver/nvidia/gpus/0000:01:00.0/power prints fine-grained (as it should by default, at least on my pc).

If I helped you, please mark this thread as solved :slight_smile:.

Edit: I forgot sorry, I also installed TLP for a slightly better power management.

thanks you so much again for your help.
I marked the post regarding kernel change as the solution. should I do anything more than that to mark this thread as solved? I am a bit new here:)
about the hybrid mode, after I turned it off for a while and starting it again, it works fine now. If anything strange happens again, I will mention it in a new thread
and thanks for your advice on power management. I’ll try to check them out.

Usage of optimus-manager is also important to mention, the kernel update alone wont help. Other than that, no more things left to do lol.

I’m glad that helped you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.