Black screen laptop

On a Redmibook pro laptop, intel 12450h, when connecting an external monitor via type-c - everything works. If you set the “display only on external monitor” setting, the picture in the laptop monitor disappears. I can’t get it back either programmatically or by disconnecting the external monitor. Only by rebooting. Where to dig?

Did you try connecting the external monitor before boot? I’ve found a similar post: Black screen after plugging external monitor, works if plugged before boot

I don’t have the hardware needed to reproduce your configuration, but for someone who does, you should provide more details so they can accurately reproduce the problem:

  • Exactly how are you setting “display only on external monitor” (e.g., Gnome settings, laptop Function key, …)?
  • Which Fedora version and spin are you using, and are you using Xorg or Wayland?
  • Post the output from running inxi -Fzxx in a terminal (as preformatted text using the </> button from the top line of the text entry panel). This allows us to see your graphics hardware and drivers, and can help others with similar hardware and issues find this post with a web search. Problems affecting multiple users are more likely to be actual bugs as opposed to something specfic to one hardware or user configuation settings.
  • Does the issue occur with a newly created user login?

It is usually best if you can ensure that your system is fully updated (both vendor firmware and Fedora packages) so you aren’t wasting time of a solved problem.

You may be avictim of the many recent changes in linux aimed at minimizing power consumption (to facilitate large enterprise adoption of linux for cubicle farms). Once we understand the problem there may be a workaround while waiting for an underlying bug/(mis)feature to be addressed.

I have investigated this problem. It only occurs when the external monitor is turned off with the laptop lid closed, it works correctly when the lid is open. Also the cooling system is turned off and the laptop starts to warm up to 100 degrees.

System:
  Kernel: 6.9.7-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: KDE Plasma v: 6.1.1 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: Fedora Linux 40 (KDE Plasma)
Machine:
  Type: Laptop System: TIMI product: Redmi Book Pro 15 2022 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: TIMI model: TM2111 v: V1.0 serial: <superuser required>
    part-nu: TM2111-39176 UEFI: TIMI v: RMAAD5B0P1010 date: 06/30/2023
Battery:
  ID-1: BAT0 charge: 66.7 Wh (100.0%) condition: 66.7/72.0 Wh (92.7%)
    volts: 17.6 min: N/A model: SUNWODA R15B06W serial: <filter>
    status: not charging
CPU:
  Info: 8-core (4-mt/4-st) model: 12th Gen Intel Core i5-12450H bits: 64
    type: MST AMCP arch: Alder Lake rev: 3 cache: L1: 704 KiB L2: 7 MiB
    L3: 12 MiB
  Speed (MHz): avg: 1417 high: 3549 min/max: 400/4400:3300 cores: 1: 3549
    2: 1067 3: 400 4: 400 5: 400 6: 400 7: 1328 8: 400 9: 1640 10: 1753 11: 2739
    12: 2929 bogomips: 59904
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Alder Lake-P GT1 [UHD Graphics] vendor: Xiaomi driver: i915
    v: kernel arch: Gen-12.2 ports: active: DP-1 off: eDP-1 empty: DP-2, DP-3,
    DP-4, HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:46a3
  Device-2: SunplusIT XiaoMi USB 2.0 Webcam driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-4:3 chip-ID: 2b7e:b557
  Display: wayland server: Xwayland v: 24.1.0 compositor: kwin_wayland
    driver: N/A display-ID: 0
  Monitor-1: DP-1 res: 1920x1080 size: N/A
  API: EGL v: 1.5 platforms: device: 0 drv: iris device: 1 drv: swrast
    surfaceless: drv: iris wayland: drv: iris x11: drv: iris inactive: gbm
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.1.2 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel Graphics (ADL GT2)
    device-ID: 8086:46a3 display-ID: :0.0
  API: Vulkan v: 1.3.283 surfaces: xcb,xlib,wayland device: 0
    type: integrated-gpu driver: N/A device-ID: 8086:46a3 device: 1 type: cpu
    driver: N/A device-ID: 10005:0000
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: Xiaomi
    driver: sof-audio-pci-intel-tgl bus-ID: 00:1f.3 chip-ID: 8086:51c8
  API: ALSA v: k6.9.7-200.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8152 Fast Ethernet Adapter driver: r8152 type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-1.4:13 chip-ID: 0bda:8152
  IF: enp0s20f0u1u4 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel AX211 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 3-10:8 chip-ID: 8087:0033
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.3 lmp-v: 12
Drives:
  Local Storage: total: 476.94 GiB used: 11.76 GiB (2.5%)
  ID-1: /dev/nvme0n1 vendor: Silicon Power model: SPCC M.2 PCIe SSD
    size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 34.9 C
Partition:
  ID-1: / size: 68.35 GiB used: 10.05 GiB (14.7%) fs: ext4 dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 290.6 MiB (29.8%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 397.92 GiB used: 1.41 GiB (0.4%) fs: ext4
    dev: /dev/nvme0n1p4
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 48.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 15.32 GiB used: 4.92 GiB (32.1%)
  Processes: 358 Power: uptime: 29m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 11 Compilers: N/A Shell: Bash v: 5.2.26
    running-in: konsole inxi: 3.3.34

After boot

Lid switch behaviour is specified by the ACPI standard. In practice. many vendors only implement enough of the standard to run Windows.

The systemd settings come from kernel.org, so are not specific to Fedora, and seem to assume that external monitors are only used with a docking station.

As the article describes, there are ways to work around limitations of the systemd mechanism, but I don’t like that:

I encountered overheating (due to badly designed and implemented HVAC) that damaged a couple SSD’s.

I edited your post 4 to add the requested ‘preformatted text’ tags so it is displayed as formatted on your screen. Please post text that you copy & paste using the </> button as previously requested.

I assume you mean the fans in the laptop are turned off but the laptop still is powered on and overheats. Is that correct?

Thanks, I’m just a newbie) Yes, when disconnecting the external monitor with the lid closed and then turning it back on, the external monitor works but the laptop monitor does not. And the laptop’s cooling is turned off.