linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.48k stars 730 forks source link

No HDMI with Intel Iris Xe Graphics #11593

Open vince35400 opened 1 year ago

vince35400 commented 1 year ago

Hi

I have a XMG Focus 17 laptop. i7-12700H with Intel Iris Xe Graphics Nvidia RTX 3060. Dualboot LinuxMint 21.1 / Windows 10

Kernel 5.15.0-67-generic

HDMI output (2nd screen, TV) works fine with : -Windows -LinuxMint with Nvidia card activated

BUT don't work with : LinuxMint with Intel Graphic GPU. I have the same pb on another laptop DELL VOSTRO 5630 (no Nvidia, only Intel GPU), running LinuxMint 21.1 too.

So the issue comes from the Intel Iris GPU. My hdmi wires are OK.

Here are some command lines ouputs : $ inxi -bG System: Host: vincent-XMG-FOCUS-M22 Kernel: 5.15.0-67-generic x86_64 bits: 64 Desktop: Cinnamon 5.6.8 Distro: Linux Mint 21.1 Vera Machine: Type: Laptop System: SchenkerGmbH product: XMG FOCUS (M22) v: N/A serial: Mobo: NB01 model: NP5x_NP6x_NP7xPNP serial: UEFI: INSYDE v: 1.07.09RTR2 date: 12/01/2022 Battery: ID-1: BAT0 charge: 51.3 Wh (100.0%) condition: 51.3/52.5 Wh (97.8%) CPU: Info: 14-core (6-mt/8-st) 12th Gen Intel Core i7-12700H [MST AMCP] speed (MHz): avg: 715 min/max: 400/4600:4700:3500 Graphics: Device-1: Intel Alder Lake-P Integrated Graphics driver: i915 v: kernel Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] driver: N/A Device-3: Acer BisonCam NB Pro type: USB driver: uvcvideo Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting unloaded: fbdev,vesa gpu: i915 resolution: 1920x1080~144Hz OpenGL: renderer: Mesa Intel Graphics (ADL GT2) v: 4.6 Mesa 22.2.5 Network: Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi Device-2: Intel Ethernet I219-V driver: e1000e Drives: Local Storage: total: 2.73 TiB used: 1.13 TiB (41.5%) Info: Processes: 386 Uptime: 3h 12m Memory: 15.34 GiB used: 3.21 GiB (20.9%) Shell: Bash inxi: 3.3.13

$ grep . /sys/class/drm/*/status /sys/class/drm/card0-DP-1/status:disconnected /sys/class/drm/card0-DP-2/status:disconnected /sys/class/drm/card0-DP-3/status:disconnected /sys/class/drm/card0-DP-4/status:disconnected /sys/class/drm/card0-eDP-1/status:connected

Thanks a lot

Lanchon commented 1 year ago

hi,

first, your hw requires a recent kernel to work well. kernel 5.15 is not appropriate. make sure you install HWE kernels. the easiest way is via the update manager, view/linux kernels, installing the newest (5.19), and reboot. (this might not fix this issue but it will fix others.)

your laptop may have muxless video outputs which means that each output is directly connected to a specific GPU. in this scenario, eDP (the embedded laptop screen) is typically connected to the integrated graphics (intel) and most external connectors (HDMI, DP) are connected to the discrete graphics. (but sometimes thunderbolt video output is connected to integrated graphics for reasons.) muxless designs save cost, space, and weight.

the rationale is this: if you are on battery power, you are most likely using the embedded display with integrated graphics which is generally preferred to save power. (and if you need the power of the discreet GPU anyway, you render to video ram and then copy the result to the integrated GPU for display, a frame at a time. this is a tad slower and less power efficient but works.)

however if you are using an external monitor, you most likely are running on AC power. so having to keep the discrete GPU powered on is not really a big disadvantage regarding power usage, and the direct connection to the discrete GPU maximizes performance by avoiding the GPU to GPU frame copying.

so unless you have the discrete GPU powered on, you might be physically unable to output video on certain ports (not matter what Windows have you believe). this is fine if your only reason to power down the discrete GPU is saving power, as you are probably using AC anyway.

however if your reason to disable the discrete GPU is mistrust, because it is running untrusted and buggy binary-only drivers, that's a whole different ballgame and, aside from switching ports (ie, trying thunderbolt), you might be screwed. this is why it is extremely important to never buy any laptop that contains an nvidia GPU, because as you can see, having one can be worse than not having anything, as you can't really disable it without crippling your laptop. amd and intel (ARC) discrete GPUs don't have this issue, as the drivers are now open (with closed firmware, but that runs inside the GPU and the CPU can defend from the GPU and rouge devices in general via the VT-d style extensions).

here is more info on the kernel's video switching subsystem: https://www.kernel.org/doc/html/latest/gpu/vga-switcheroo.html

take away: NEVER EVER BUY ANYTHING NVIDIA.

things you can do: