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

Abierto
#3,132 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
18/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
linux

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
Sin datos de lenguaje
Estrellas
2.7k
Forks
89
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ValveSoftware/SteamOS

Todos los issues de ValveSoftware/SteamOS

Issues similares

Más issues de Operating Systems

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.