[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

Đang mở
#3,069 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/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ệ
c, linux
Lĩnh vực
backend, embedded-iot

Hướng nghiên cứu

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.

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

Mô tả

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.
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ề Backend & API Design

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.