-

CommentStreams:2676695ae5c4fb74bb353980ad372dae

From Geekworm Wiki
< CommentStreams:9a244a3b52c5d9bd457e51997fed79f9
Revision as of 10:00, 10 December 2023 by 94.32.245.7 (talk) (Migrated reply #4185)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I had the same error. I'm italian too and we use the comma as separator for decimals. The solution is to modify x-c1-fan.sh file.

I have done as follow:

1) Type in terminal

   cd ~/xscript
   sudo nano x-c1-fan-sh

2) Modify

   function get_temp {
     RAW_TEMP="$(cat /sys/class/thermal/thermal_zone0/temp)"
     TEMP="$(awk -v temp="$RAW_TEMP" 'BEGIN { printf "%0.2f", temp / 1000; exit(0) }')"
     echo "$TEMP"
   }
   with this
   function get_temp {
     RAW_TEMP="$(cat /sys/class/thermal/thermal_zone0/temp)"
     TEMP="$(awk -v temp="$RAW_TEMP" 'BEGIN { printf "%0.0f", temp / 1000; exit(0) }')"
     echo "$TEMP"
   }

3) Then follow the istruction in this page to uninstall the script 4) Then follow the istruction in this page to reinstall the script

Now it works for me. Sorry to all of you for my bad english

PS: I've only modified 'printf "%0.2f"' with 'printf "%0.0f"' to get the integer right away.