Display output remains disabled when monitor is connected after boot without an active display

Đang mở
#297 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
28/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
linux, python
Lĩnh vực
desktop-dev

Hướng nghiên cứu

The payload names no Slick Greeter source file, and the component responsible is explicitly unresolved. Start by reading the linked cinnamon issue and the Debian/Fedora threads, then inspect how the greeter's X11/Vala code initialises the display at startup and whether it subscribes to RandR events. Done means the maintainers have settled whether greeter, LightDM or another component owns hotplug activation, followed by a patch that activates a connected output when no CRTC is assigned at the greeter.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

When Linux Mint boots without a connected monitor, subsequently connecting a display does not automatically activate the display output at the LightDM login screen.

Xorg successfully detects the monitor, reads its EDID and generates RandR hotplug events. However, the display output remains disabled until explicitly activated using xrandr.

An event-driven RandR listener has been implemented and successfully tested as a workaround.

System information

Component | Version / model -- | -- Distribution | Linux Mint 22.3 Cinnamon Computer | Lenovo ThinkCentre M75q Gen 2 GPU | AMD Radeon integrated graphics (PCI ID 1002:1638) BIOS | M47KT41A Linux kernels tested | 6.17.0-40-generic, 7.0.0-42-generic Xorg server | 2:21.1.12-1ubuntu1.9 Xorg AMDGPU driver | 23.0.0-1ubuntu0.24.04.1 Alternative Xorg driver tested | modesetting libdrm-amdgpu1 | 2.4.125-1ubuntu0.1~24.04.2 Mesa DRI | 25.2.8-0ubuntu0.24.04.4 LightDM | 1.30.0-0ubuntu14 Slick Greeter | 2.2.6+zena Cinnamon | 6.6.9+zena Muffin | 6.6.3+zena systemd | 255.4-1ubuntu8.18 Plymouth | 24.004.60-1ubuntu7.2 Python Xlib | 0.33-2 RandR protocol | 1.5 Monitor | Samsung Odyssey G9 S49DG912SU Display switch | Ugreen AV701 (65878)

Implemented workaround

An external Python Xlib RandR event listener was implemented to verify whether the missing automatic activation could be addressed without restarting LightDM or interfering with the active desktop session.

The listener:

  1. Subscribes to RandR screen and output change events.

  2. Waits two seconds after the last relevant event for the connection state to settle.

  3. Verifies that the active local session belongs to the LightDM greeter.

  4. Checks whether at least one connected output has available display modes.

  5. Checks that no output has an assigned CRTC.

  6. Activates an available connected output using xrandr --auto --primary.

The greeter session is identified using the following systemd-logind properties:

Class=greeter
Service=lightdm-greeter
Type=x11
Active=yes
Seat=seat0
Display=:0
Remote=no

The listener is event-driven and does not continuously poll the display state. It does not intentionally modify display settings during a normal Cinnamon desktop session.

The listener is managed by a systemd service associated with LightDM.

Example journal output from a successful cold-boot test:

INFO: RandR listener started
INFO: Activating output DisplayPort-0
INFO: Output DisplayPort-0 activated

The workaround was successfully tested with both kernel versions, a direct DisplayPort connection and the original display-switch configuration.

Repeated display switching during an active Cinnamon desktop session continued to work normally, without observed changes to the configured resolution or refresh rate.

The Python implementation and systemd service configuration can be provided if useful.

Related reports

A similar Linux Mint issue:

https://github.com/linuxmint/cinnamon/issues/12866

A similar issue involving LightDM and GTK Greeter reported by a Debian user:

https://lists.debian.org/debian-user/2026/02/msg00056.html

A related report involving Fedora and a KVM switch:

https://lists.debian.org/debian-user/2026/02/msg00062.html

These reports suggest that the issue may not be specific to Slick Greeter, AMD graphics or Linux Mint.

Requested improvement

Could Slick Greeter handle RandR hotplug events by automatically activating an available connected display when no display output is currently active?

Alternatively, could the maintainers clarify whether this functionality should be implemented in Slick Greeter, LightDM or another component?

The exact component responsible for the missing activation has not been conclusively identified. The external listener is a tested workaround rather than a proposed upstream patch.

Additional diagnostic information and the workaround source code can be provided upon request.

Ngôn ngữ chính
Vala
Star
441
Fork
72
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của linuxmint/slick-greeter

Tất cả issue của linuxmint/slick-greeter

Issue tương tự

Thêm issue về Desktop Dev

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.