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

未关闭
#297 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
28/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
linux, python
领域
desktop-dev

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Vala
星标
441
派生
72
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

linuxmint/slick-greeter 的其他 Issue

查看 linuxmint/slick-greeter 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。