[Steam Frame] Panels stay dark after waking from standby when analogGain is below ~20%: MP3317 boost (DMSL=1) can't restart on short backlight pulses
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- c, linux
- Ambito
- backend, embedded-iot
Direzione di ricerca
Read drivers/gpu/drm/panel/panel-deckard.c around lpm026m648c_enable() and set_brightness, then inspect drivers/leds/leds-mp3317.c around mp3317_reg_enable() and mp3317_config(). Reproduce the dark wake at low analogGain and confirm the suggested minimum pulse restores the panels after standby. Done means low brightness reliably wakes the panels without disrupting normal brightness behavior; the report says no kernel fix has been built or tested.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Your system information
- Steam client version: arm64 public beta (package version 1794364160); SteamVR 2.19.1 (
driver_cv2.19.1) - SteamOS version: Steam Frame 0.5.7 (BUILD_ID 20261103.6153824), kernel
7.2.0-g9a8c8ea46950, BOE panels (Displays match ( B == B ), using B) - Opted into Steam client beta?: Yes
- Opted into SteamOS beta?: Yes
- Have you checked for updates in Settings > System?: Yes
Please describe your issue in as much detail as possible:
Expected: with steamvr/analogGain set to a low value that the HMD advertises as valid, taking the headset off and putting it back on turns the panels back on at that brightness.
Actual: if analogGain is set below about 0.03, the panels stay dark after waking from standby. Such values are only reachable through the settings API: the stock slider bottoms out at 40% (0.133, backlight 49), which wakes normally. SteamVR does leave standby (0 - leaving standby, cv: Set displays on), audio and haptics work, and every backlight-related sysfs value and MP3317 register is the same as when the panels are lit at that level. Raising brightness to 40% for about 1 s turns them back on, and dropping back to the low level afterwards keeps them lit.
SteamVR's own slider stops at 40% (DisplayMinUIAnalogGain_Float = 0.4), possibly for this reason, so stock users don't hit this. The HMD does advertise DisplayMinAnalogGain_Float = 0.005, though, and driver_cv accepts and applies values down to that. Third-party apps that offer a "very dim" level hit this; it was found while adding a 10% level to frame-aux-shortcuts, for use while falling asleep in the headset.
Measurements (percentages use the slider's mapping, analogGain = (% / 100)^2.2, extended below its 40% floor; backlight value from /sys/class/backlight/ae94000.dsi.0/brightness; pulse length from panel-deckard.c, RTN 59 × 32.5 MHz = 1.815 µs per row):
| analogGain (equivalent %) | Backlight | Pulse | Boost cycles per frame at FSW 625 kHz | After waking from standby |
|---|---|---|---|---|
| 0.0063 (10%) | 2 | 3.6 µs | ~2 | stays dark (every attempt) |
| 0.0154 (15%) | 6 | 11 µs | ~7 | stays dark (3 s and 9.6 s asleep); may survive a very short sleep |
| 0.029 (20%) | 11 | 20 µs | ~12 | relights after a few seconds |
| 0.047 (25%) | 17 | 31 µs | ~19 | relights |
| 0.133 (40%) | 49 | 89 µs | ~55 | relights; holding it for 0.3 s isn't enough, 1 s is |
Cause, as far as I can tell: the backlight value isn't an analog dimmer. set_brightness() writes it to the panel as the strobe pulse width (gpo1_tew1), and the panel drives the MP3317 PWM inputs with that pulse. Both backlight MP3317s are configured with mp3317,ovp-max = 0x9f, i.e. DMSL = 1. The MP3317 datasheet describes this as "Traditional PWM dimming mode. Switching at dimming on, and no switching at dimming off". On every wake, mp3317_reg_enable() drives EN high and reruns mp3317_config(), so the output capacitor starts from zero and the boost converter, after its soft start, only switches during the pulse. At a 2–6-row pulse it gets a handful of switching cycles per frame and never brings VOUT up to the LED forward voltage. Once VOUT is up, the same short pulse is enough to keep it there, which is why dimming to 10% while awake works.
Supporting evidence:
- After a dark wake at 10%, writing
OVP_IMAX = 0x1f(DMSL = 0, constant voltage mode, the chip's reset default) throughreg_dumprelights both panels immediately. (Writing0x9fback while lit made one panel drop out for a moment before both recovered, so this isn't a usable workaround.) - Manual boost (
BLMOD = 0) at the configured 18.0 V keeps 40% lit, but doesn't relight a dark 10% wake. So the VOUT setpoint isn't the problem; the charging is. FAULT1/FAULT2read 0 throughout. Everything tested is within the datasheet's ratings (PWM minimum on/off time 1 µs, VOUT < 34 V, OVP 32 V, ILED 100 mA of 160 mA).
Suggested fix: in lpm026m648c_enable() (or driver_cv on LeaveStandby), drive a minimum pulse (49 rows / the 40% level worked) for about 1 s after backlight_enable(), then apply the requested brightness. With DMSL = 1 that gives the boost enough on-time to charge VOUT after the cold start. I haven't built or tested a kernel with this. Raising the advertised DisplayMinAnalogGain would hide the problem but also remove the low levels, which work fine once the panel is lit.
Line references are from the sm8650-7.2 branch of the public kernel mirror (drivers/gpu/drm/panel/panel-deckard.c: set_brightness, lpm026m648c_enable; drivers/leds/leds-mp3317.c: mp3317_config, mp3317_reg_enable), not the exact commit running on the headset.
Steps for reproducing this issue:
- With SteamVR running on the Frame, set brightness below the slider minimum through the OpenVR settings API, e.g.
vr::VRSettings()->SetFloat("steamvr", "analogGain", 0.0063f, &err);from any background OpenVR app. The panels dim normally and stay lit. - Take the headset off and wait for the screens to turn off (
power/turnOffScreensTimeout, 5 s by default). - Put the headset back on. SteamVR logs
leaving standby/Set displays on, the backlight sysfs value is back to 2 and both MP3317s are enabled, but the panels stay dark. - Set
analogGainto 0.133 (40%) and leave it for about 1 s: the panels light. Set 0.0063 again: they stay lit until the next standby.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 2.7k
- Fork
- 89
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ValveSoftware/SteamOS
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
ValveSoftware/SteamOS#3037 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ValveSoftware/SteamOS#2983 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ValveSoftware/SteamOS#2927 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ValveSoftware/SteamOS#2875 · 1 commento ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repairAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
ValveSoftware/SteamOS#2829 ·
Tutte le issue di ValveSoftware/SteamOS
Issue simili
-
possible bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Mintplex-Labs/anything-llm#7371 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 2 giorni
-
sumHorizontal, maxHorizontal, minHorizontal, allHorizontal, anyHorizontal, struct and argSortBy treat strings as literals instead of column namesForse già presa @tomaionescu l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pola-rs/nodejs-polars#486 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
The-Swarm-Corporation/swarms-rs#165 ·
I maintainer di solito rispondono entro 1 giorno