mirror of
https://github.com/saymrwulf/powermetrics.git
synced 2026-05-14 20:48:06 +00:00
42 lines
837 B
Markdown
42 lines
837 B
Markdown
|
|
# 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
|
||
|
|
DISPLAY_BIAS_W=2.5 THERMAL_SPREAD_C_PER_W=0.85 CLAMSHELL_FACTOR=1.08 ./tmux-wall.sh
|
||
|
|
```
|
||
|
|
|
||
|
|
The thermal section is an estimate derived from `powermetrics` CPU/GPU power and activity plus thermal pressure. It is not a direct temperature sensor reading.
|
||
|
|
|
||
|
|
If you want to attach to an existing session later:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
sudo tmux attach -t powermetrics
|
||
|
|
```
|