Last active
July 10, 2025 07:52
-
-
Save cmetz/c06b140f34189a4d1cef2686470ecb88 to your computer and use it in GitHub Desktop.
simple evo-x2 monitor script using ec_probe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
while true; do | |
temp=$(sudo ec_probe read 0x70 | awk '{print $1}') | |
high_byte=$(sudo ec_probe read 0x35 | awk '{print $1}') | |
low_byte=$(sudo ec_probe read 0x36 | awk '{print $1}') | |
fan1=$((high_byte * 256 + low_byte)) | |
high_byte=$(sudo ec_probe read 0x37 | awk '{print $1}') | |
low_byte=$(sudo ec_probe read 0x38 | awk '{print $1}') | |
fan2=$((high_byte * 256 + low_byte)) | |
high_byte=$(sudo ec_probe read 0x28 | awk '{print $1}') | |
low_byte=$(sudo ec_probe read 0x29 | awk '{print $1}') | |
sfan=$((high_byte * 256 + low_byte)) | |
MODES="balance performance quiet" | |
arr_modes=($MODES) | |
mode=$(sudo ec_probe read 0x31 | awk '{print $1}') | |
echo "T: $temp C / F1: $fan1 / F2: $fan2 / SF: $sfan / ${arr_modes[mode]}" | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment