‹ projects

reverb-m1

Native wired VR on Apple silicon: Reverb G1 display bring-up and stereo demo
git clone https://umhau.org/code/reverb-m1.git
Log | Files | Refs

verify.sh (919B)


      1 #!/bin/zsh
      2 # Passive, one-shot health check. It launches, kills, wakes and queries NOTHING on the hardware side:
      3 #   - no ioreg (even a one-off `ioreg -l` walks the port nodes), no system_profiler, no HID, no hpmctl.
      4 # It only reports boot-args and summarises existing passive logs.
      5 cd "$(dirname "$0")"
      6 
      7 echo "kern.bootargs: $(sysctl -n kern.bootargs)"
      8 case " $(sysctl -n kern.bootargs) " in
      9   *" hdcp-fuse-mask=0 "*) echo "  OK: hdcp-fuse-mask=0 active" ;;
     10   *) echo "  PROBLEM: hdcp-fuse-mask=0 not active; the headset will blank (see SETUP.md)" ;;
     11 esac
     12 
     13 # Summaries of passive logs, if an observer is already running (start tools/displaywatch yourself if wanted).
     14 [ -f displaywatch.log ] && { echo "--- last display events (displaywatch.log):"; grep -E "ADD|REMOVE" displaywatch.log | tail -5; }
     15 [ -f hmdwake.log ] && { echo "--- last headset 0x05 reports (hmdwake.log):"; grep status hmdwake.log | tail -3; }
     16 true