@sirenodeck/sirenodeck 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,13 +23,8 @@ export const pushBlackFrame = async (
23
23
  for (let i = 0; i < device.getKeyCount(); i++) {
24
24
  await device.fillKeyBuffer(i, buf.subarray(0, 3 * 8 * 8))
25
25
  }
26
- // ponytail: brightness is a feature report processed synchronously by the
27
- // device firmware, so dimming to 0 is a guaranteed "off" signal even if the
28
- // queued image writes above are dropped at USB disconnect.
29
- await device.setBrightness(0)
30
- // ponytail: give the queued USB writes a moment to drain before the caller
31
- // closes the device; otherwise node-hid may flush to a closed handle and
32
- // the panel keeps the last fully-rendered frame.
26
+ // ponytail: allow queued image writes to drain before the caller closes
27
+ // the device; brightness is intentionally left unchanged.
33
28
  await new Promise<void>((r) => setTimeout(r, 200))
34
29
  logger.info("black-frame: pushed")
35
30
  } catch (err) {
@@ -147,6 +147,8 @@ export class RealOutputClient implements OutputClient {
147
147
  let configUiSupervisor: SuperviseHandle | null = null
148
148
 
149
149
  try {
150
+ this.deviceBrightness = opts.runtime.getBrightness()
151
+ await device.setBrightness(this.deviceBrightness)
150
152
  // ponytail: paint the waiting state directly to hardware before Vite or
151
153
  // Playwright starts; the deck must remain useful when its frontend is down.
152
154
  const logoCandidates = [