[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

オープン
#3,069 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c, linux

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

Steam Frame
Your system information
  • Steam client version: arm64 public beta (package version 1794364160); SteamVR 2.19.1 (driver_cv 2.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) through reg_dump relights both panels immediately. (Writing 0x9f back 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/FAULT2 read 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:
  1. 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.
  2. Take the headset off and wait for the screens to turn off (power/turnOffScreensTimeout, 5 s by default).
  3. 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.
  4. Set analogGain to 0.133 (40%) and leave it for about 1 s: the panels light. Set 0.0063 again: they stay lit until the next standby.
主要言語
言語のデータがありません
スター
2.7k
フォーク
89
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ValveSoftware/SteamOS のほかの issue

ValveSoftware/SteamOS の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。