2026-04-21 19:18:25 +00:00
# powermetrics inside tmux
Make the scripts executable once:
```bash
chmod +x CPUwall.sh GPUwall.sh tmux-wall.sh
```
Start the split view with one command:
```bash
./tmux-wall.sh
```
It will ask for your password once at startup, then create and attach to a root-owned tmux session.
Recreate the tmux session after script changes:
```bash
TMUX_RECREATE=1 ./tmux-wall.sh
```
Useful overrides:
```bash
SAMPLE_MS=2000 HOLD_SEC=2 ./tmux-wall.sh
```
Thermal estimate tuning:
```bash
2026-04-21 19:35:53 +00:00
AMBIENT_C=23 IDLE_OFFSET_C=9 DISPLAY_BIAS_W=2.5 CPU_THETA_C_PER_W=1.55 GPU_THETA_C_PER_W=1.35 CLAMSHELL_FACTOR=1.08 ./tmux-wall.sh
2026-04-21 19:18:25 +00:00
```
2026-04-21 19:35:53 +00:00
The thermal section now shows estimated absolute CPU-side and GPU-side temperatures plus the estimated gradient. These values are derived from `powermetrics` CPU/GPU power and activity plus thermal pressure. They are modeled estimates, not direct sensor readings.
2026-04-21 19:18:25 +00:00
If you want to attach to an existing session later:
```bash
sudo tmux attach -t powermetrics
```