Steam Deck OLED: DisplayPort alt mode times out on live USB-C plug-in and is never retried (works on LCD); forced hotplug re-probe fixes it

Đang mở
#3,132 0 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
18/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
Lĩnh vực
operating-systems

Hướng nghiên cứu

The failure is the amdgpu alt mode timeout logged as 'Alt mode has timed out after 504 ms' during USB-C DisplayPort negotiation on DP-1, and the reporter's workaround is the debugfs node /sys/kernel/debug/dri/0/DP-1/trigger_hotplug. Start by reading the amdgpu DP alt mode and hotplug handling in the kernel source, then reproduce with dmesg on a Deck OLED. Done would mean the display recovers after a timeout without the manual trigger, confirmed across repeated plug-ins.

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

Mô tả

Hardware and software

Steam Deck OLED, SteamOS 3.9.5[Stable/Beta; tested on both], kernel 7.2.7-valve2-2-neptune-72-g31504582a073, BIOS [version]F7G0114
RayNeo Air 4 Pro AR glasses (USB ID 1bbb:af50), direct USB-C, the cable supplied with them
The same glasses and cable work instantly on my Steam Deck LCD

Problem
Plugging the glasses in while the Deck is awake gives a brief system stutter and no picture. dmesg shows:
amdgpu 0000:04:00.0: [drm] Alt mode has timed out after 504 ms
The USB bus then re-registers and the glasses appear only as a USB HID device. The display never appears, and the driver never tries again. It happens in both gaming mode and desktop mode. In desktop mode, KDE sometimes shows the output as disabled afterwards.

What works

Connecting the glasses before boot, or sleeping and waking the Deck with them connected, brings the display up.
A dock works fine on the same port.

Workaround and result
Running echo 1 > /sys/kernel/debug/dri/0/DP-1/trigger_hotplug after the glasses enumerate brings the display up. I automated it with a udev rule that runs this when the glasses' USB device appears. Across 9 consecutive plug-ins, the display never recovered on its own (the script found it still disconnected every time), and the trigger fixed it every time, with delays of 3, 1 and 0 seconds. No delay is needed. The retry only has to happen after the glasses enumerate.

Ruled out: different cables, Stable vs Beta, BIOS/firmware reset, HDR on/off, 90Hz vs lower refresh rate, USB/DeckMTP settings (identical on my LCD).

Related: #1322 shows the same Alt mode has timed out error with a different trigger (Wake-on-LAN through a dock), which suggests the cause is a race in alt mode detection and not something specific to my glasses.

Request: Could the driver retry display detection after an alt mode timeout?

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.7k
Fork
89
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 ValveSoftware/SteamOS

Tất cả issue của ValveSoftware/SteamOS

Issue tương tự

Thêm issue về Operating Systems

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.