Comments (11)
You would have to post full information about your OS for this issue to be resolvable. That path is correct for Debian variants.
from victorconky.
I am running Linux Mint 20.3 Cinnamon
from victorconky.
That's odd. Mint is an Ubuntu derivative, just like my OS. Can you try running this script and see if it outputs good data?
If it does, we could change the method used to pull temperature in conky to match what the Mint team is doing to pull temperature.
from victorconky.
Maybe I'm too new to linux so this is going to sound dumb but when I run sh detect_temp.sh it outputs detect_temp.sh: 4: Syntax error: "(" unexpected
to the console.
from victorconky.
PROTIP: The first line of any shell script should tell you which command interpreter the script was written for. We can tell this script was written for the Bourne Again Shell (BASH) because the first line is:
#!/bin/bash
When you ran sh detect_temp.sh
you passed the script to /bin/sh
which is the old Bourne shell.
Try running the script through bash.
/bin/bash detect_temp.sh
For more information:
https://linuxhint.com/bin-sh-vs-bin-bash/
from victorconky.
I see. Thanks for your nice and helpful reply. When I run bash detect_temp.sh
I get a similar message. ls: cannot access '/sys/class/hwmon/hwmon2/temp*_input': No such file or directory
is output to the console. Even if I run as root
from victorconky.
That's odd. Those should be populated by kernel modules. There might be something wrong with your kenrel or the hardware it's trying to read.
In your Conky script file try changing:
${acpitemp}
TO
${hwmon coretemp temp 1}
from victorconky.
I changed it and still similar output:
conky: can't open '/sys/class/hwmon/hwmoncoretemp/temp1_input': No such file or directory
please check your device or remove this var from conky
from victorconky.
How can I check the hardware/kernel to debug why it's not populating that folder? CPU is AMD FX-6300 3.5 GHz 6-Core processor.
from victorconky.
That is an important bit of information. It looks like it's not just Linux, it's your chip.
That chip doesn't have a set of normal temperature sensors per core. The one it does have doesn't even report temperature in C, F, or K. It's arbitrary. You're not going to get a good number from it even if you do find the sensor.
I would close this issue as being hardware related and well outside the scope of conky.
from victorconky.
I'll look into AMD Overdrive and research if I could call it with your conky layout. I really like it and would hate to have to change it because of a blank cpu temp module. I see this issue is not with your conky config but with my hardware.
from victorconky.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from victorconky.