Conky looks in the wrong sysfs dir for hwmon temperature info
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Conky |
Unknown
|
Unknown
|
|||
conky (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: conky
ctrler@jupiter:~$ lsb_release -d
Description: Ubuntu karmic (development branch)
ctrler@jupiter:~$ apt-cache policy conky
conky:
Installed: (none)
Candidate: 1.7.2-0ubuntu1
Version table:
1.7.2-0ubuntu1 0
500 http://
100 /var/lib/
When I add the following line in .conkyrc to get my cpu temperature from hwmon:
CPU Temp: ${hwmon 0 temp 1}°Cr
I get the following error when starting conky:
Conky: can't open '/sys/class/
please check your device or remove this var from Conky
Conky: X Error: type 0 Display 9ee7788 XID 0 serial 25 error_code 3 request_code 61 minor_code 0 other Display: 9ee7788
Aborted (core dumped)
What I think is happening Conky is looking in the wrong place because there is nothing in /sys/class/
ctrler@jupiter:~$ cat /sys/class/
cat: /sys/class/
and the file with the temperature information is actually in /sys/class/
ctrler@jupiter:~$ cat /sys/class/
34000
ctrler@jupiter:~$ cat /sys/class/
CPU Temperature
Related branches
Changed in conky (Ubuntu): | |
status: | Incomplete → Fix Committed |
There is already a check for /device which is eventually stripped out. The problem with the kernel 2.6.31 is that /sys/class/ hwmon/hwmon0/ device apparently still exists so that check fails.
Waiting to find a proper solution upstream that maintains compatibility with older kernels, I made an horrible hack that should work for karmic (hopefully it doesn't break anything else). Can you check it out? The package is available in my ppa:
https:/ /launchpad. net/%7Enorsetto /%2Barchive
If you do that please check if it still works for vol too, not just temp, and also if the device is not specified or specified as *.
(I can't test myself as my VM stopped working after the latest karmic upgrade).
PS. If in the future you open a bug also upstream, can you please link it to the launchpad one?