Topics / cleanyourtv-webos / tsk_fpig2tzsket4

Add power-off diagnostics to diagnose.sh and the Share log (issue 302)

OPEN Medium priority issue-302webos25

Done when

The report shows the last power state changes with PowerOffReason, the number of jails that carry the Home mount, and the criu flag. A test in tools/test/ covers the new section's masking and its output when the logs are missing. `sh tools/check.sh` passes under Node 8.12 and current Node. The PR says nothing ran on a real TV.

Details

Issue 302 (OLED55B23LA, webOS 25): with CleanYourTV as Home, remote power off ends in tvpowerd "Active -> Reboot (rebootByFault)" instead of Suspend. Today the report cannot show this. Add read-only sections to tools/diagnose.sh and helper/sharelog.js: the last tvpowerd NL_POWER_STATE lines (old, new, PowerOffReason), the power state from tvpower/power/getPowerState, how many LG jails carry the bind mount over com.webos.app.home (count and jail names only, no paths with user data), and the tvprofile criu value. Mask private data as the other sections do. Do not touch the TV or change any setting.

What happened

In order. Text written by an agent is marked: read it as a hint.
  1. @lasharor Proposed the task