💾 Archived View for gemini.mingmengtou.org › 2021-05-17-cpu-temp-script.gmi captured on 2024-02-05 at 09:51:23. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

neil in gemini space

cpu temp script - 2021-05-17

2021-05-29 - changed

the original script was showing the correct current temperature, but average loads from last boot *not* current loads.

2021-05-29 - cpu temp script revisited - might even work as intended now.

2021-05-10 - original here for historical purposes only

so i wanted to keep an eye on my cpu temps (changed cpu and cpu fan) - i find psensor gui clunky and it didn't log correctly (does not respect log interval entered in gui). some really bad bash follows:

#!/bin/bash
#
# echoes datetime and cpu Tdie 
echo -n $(date -u +%FT%TZ); \
    echo -n " $(sensors k10temp-pci-00c3 | \
    grep Tdie | awk '{ print $1" "$2 }')"; \
    iostat | head -n4 | tail -n1 | \
    awk '{ print " "$1+$2+$3"% load" }'

a cron job gives me:

2021-05-17T14:56:01Z Tdie: +82.2°C 49.31% load
2021-05-17T14:58:01Z Tdie: +79.0°C 49.32% load
2021-05-17T15:00:01Z Tdie: +78.8°C 49.32% load
2021-05-17T15:02:01Z Tdie: +79.1°C 49.32% load
2021-05-17T15:04:01Z Tdie: +79.2°C 49.32% load
2021-05-17T15:06:01Z Tdie: +79.6°C 49.32% load
2021-05-17T15:08:01Z Tdie: +82.5°C 49.33% load
2021-05-17T15:10:01Z Tdie: +79.6°C 49.33% load
2021-05-17T15:12:01Z Tdie: +79.4°C 49.33% load
2021-05-17T15:14:01Z Tdie: +79.2°C 49.33% load

upgrade to cpu in anther post.... probably.

2021-05-18 changed fan settings

2021-05-18T11:00:01Z Tdie: +70.2°C 51.12% load
2021-05-18T11:02:01Z Tdie: +70.2°C 51.12% load
2021-05-18T11:04:01Z Tdie: +70.4°C 51.12% load
2021-05-18T11:06:01Z Tdie: +70.4°C 51.12% load
2021-05-18T11:08:01Z Tdie: +69.2°C 51.12% load
2021-05-18T11:10:01Z Tdie: +69.1°C 51.11% load
2021-05-18T11:12:01Z Tdie: +69.8°C 51.13% load
2021-05-18T11:14:01Z Tdie: +71.5°C 51.13% load
2021-05-18T11:16:01Z Tdie: +70.4°C 51.13% load
2021-05-18T11:18:02Z Tdie: +70.6°C 51.13% load

reduced temperatures well worth 5 minutes down time.

---

return to gemini.mingmengtou.org index page.

---

neil.gemini@mingmengtou.org

content licensed CC-BY-SA 4.0 unless stated.

creative commons licence information.