roman

@hi@romanzolotarev.com




homehttps://romanzolotarev.com

193 following, 485 followers

3 ★ 0 ↺

[?]roman ยป 🌐
@hi@romanzolotarev.com

resolved an overheating issue on the that kept the fan running constantly. how? i simply lowered the room temperature by a few degrees. not too cold for me and not too hot for the laptop ❤️

the fan still kicks in under the load, but at least when cpu frequency is low, the fan is off

red: fan off or 2000 rpm, gray: cpu 400-4000mhz

Alt...red: fan off or 2000 rpm, gray: cpu 400-4000mhz

    ...
    0 ★ 0 ↺

    [?]roman ยป 🌐
    @hi@romanzolotarev.com

    here is the script

    #!/bin/sh
    b=$(apm -b) # 0 high, 1 low, 2 critical, 3 charging
    l=$(apm -l) # %
    m=$(apm -m) # minutes
    if test "$m" = 'unknown'; then mm='-'; else mm="${m}m"; fi
    p=$(apm -P) # 0
    d=$(date +%Y%m%d-%H%M%S)
    t=$(sysctl -n hw.sensors.acpithinkpad0.temp0 | cut -d. -f1)
    f=$(sysctl -n hw.sensors.acpithinkpad0.fan0 | cut -d' ' -f1)
    c=$(($(sysctl -n hw.sensors.cpu0.frequency0 | cut -d. -f1) / 1000000))
    echo "$d ${c}mhz +${t} ${f}rpm $b ${l}% $mm"
    output looks like this:

    20260310-233201 450mhz +42 0rpm 0 74% -
    running this script with crontab every minute:


    *       *       *       *       *       /bin/sh heat.sh >> /var/log/heat.log

    [?]๐™น๐š˜๐šŽ๐š• ๐™ฒ๐šŠ๐š›๐š—๐šŠ๐š โ™‘ ๐Ÿคช ยป 🌐
    @joel@gts.tumfatig.net

    @hi email the Sun to stop heating the atmosphere so that our fans stop blowing ๐Ÿคฃ

    ...
    1 ★ 0 ↺

    [?]roman ยป 🌐
    @hi@romanzolotarev.com

    no need for emails when you have direct ssh access...

    $ ssh root@sun "sysctl hw.setperf=99"

      ...

      History