Temp script to minus value to display in conky?
Hello,
I have an K10 AMD CPU and unfortunately it has a borked temp sensor. I have figured out that if I subtract 8 from value stored in /proc/acpi/thermal_zone/temperature that the result is very close to being spot on. The problem is I have no idea to do this and conky has no built in way to do this. The data stored in /proc/acpi/thermal_zone/temperature looks like this: Code:
temperature: 52 C Thanks in advance! |
You could use the exec command to run a bash script to do it for you man
|
And by the way, I would definitely whip up a quick script for you, but I'm at work, and the military computers run f*cking windows >:O
|
Quote:
The problem is the script? ---------- Post added 01-18-11 at 07:26 PM ---------- Quote:
I hear that! |
And dude, I am so not relying on google to create a script. I can't even ssh into my god damn server, because they realized what I was doing for the past 5 years, and decided to put an end to that.... You in the military too? Or you just saying you hear that cause im bitching about windows? LOL
|
Quote:
I feel bad for anyone that "has" to use it! LOL |
Thanks for your sympathy! :D
|
But anyway, i'm gonna give this a shot... Can you post the contents of the /proc/acpi/thermal_zone/temperature file?
|
Quote:
Code:
temperature: 52 C |
Ok, I got this that will extract the value, how do I get it to subtract 8 from the value to post the result to conky?
Code:
#!/bin/bash |
alright, well i've been working on my some-what own, between google, my experience, and hope...... lmao....
Code:
#!/bin/bash |
Gives an error:
Code:
[ron@iggy scripts]$ sh temps |
For the hell of it, try yours and see what works:
Code:
#!/bin/bash |
Still giving an error. Strange thing is my command actually gives the result outside the script.
in script: Code:
sh temps Code:
[ron@iggy scripts]$ grep -oE "[[:digit:]]{1,}" /proc/acpi/thermal_zone/temperature |
Yours works right outside of script as well:
Code:
[ron@iggy scripts]$ sed -n 's/temperature:[[:space:]]*//p' /proc/acpi/thermal_zone/temperature | tr -d [:cntrl:][:space:] | cut -c1-2 |
All times are GMT -5. The time now is 05:47 AM. |