2010-12-19, 19:29
Can advancedsettings.xml not handle | in commands? To get the output for CPU temp, I need to run: sensors | grep "CPU Temp" | cut -f5 -d\ | cut -c2-5
I can probably neat it up, but it works for the purpose. So I added the following to advancedsettings.xml:
<cputempcommand>echo "$(sensors | grep "CPU Temp" | cut -f5 -d\ | cut -c2-5)C"</cputempcommand>
However, it still just shows up as "CPU Temperature: ?" in System Info -> Hardware.
I followed the reasoning for the GPU temp, which worked fine (with <gputempcommand>echo "$(nvidia-settings -tq gpuCoreTemp) C"</gputempcommand>), but still nothing.
Am I missing something here?
I can probably neat it up, but it works for the purpose. So I added the following to advancedsettings.xml:
<cputempcommand>echo "$(sensors | grep "CPU Temp" | cut -f5 -d\ | cut -c2-5)C"</cputempcommand>
However, it still just shows up as "CPU Temperature: ?" in System Info -> Hardware.
I followed the reasoning for the GPU temp, which worked fine (with <gputempcommand>echo "$(nvidia-settings -tq gpuCoreTemp) C"</gputempcommand>), but still nothing.
Am I missing something here?