You are not logged in.
Pages: 1
Hello!
I have hddtemp installed, SUID set, hddtemp service is up and running, hddtemp program gives me temperature of all HDDs but not in conky.
/dev/sdb: ${alignr}${hddtemp /dev/sdb}
This is part of the line from conky which shows N/A in output. Why? It works if I do
$ hddtemp /dev/sdb
Offline
moving to Newbie Corner.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Actually I was suffering for the same problem. Conky (or hddtemp) doesn't have the privileges to read the hard disks. If you use the hddtemp command you have to use sudo. Is the same with conky, it can't read the temperature so it just give you a blank space. Try running conky with sudo.
Offline
> Try running conky with sudo.
Didn't help, still "N/A". I guess that's not the problem since conky shows info about /dev/sda, both are HDDs.
Offline
and did you put /usr/sbin/hddtemp in your sudoers file and gave it NOPASSWD access??
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
No, I set SUID.
# chmod +s `which hddtemp`
It's now
-rwsr-sr-x 1 root root 26740 Nov 12 2010 /usr/sbin/hddtemp
Offline
Try this: https://bbs.archlinux.org/viewtopic.php?id=69332 or http://plagatux.es/2009/01/conky-hddtemp/ (Is the same procedure in both links)
Offline
I changed it this way:
/dev/sdb: ${alignr}${exec hddtemp /dev/sdb | cut -c 34-36} Celcius
Now it works except that it doesn't show the "Celcius" part. Just a number of degrees.
Tried
/dev/sdb: ${alignr}${exec hddtemp /dev/sdb | cut -c 34-36 ; echo 'Celcius'}
but this adds "Celcius" to new line and I need it right after the number. Any suggestion?
Last edited by Mr. Alex (2011-08-08 10:44:13)
Offline
hddtemp watches only /dev/sda as default.
Edit /etc/conf.d/hddtemp as follows to add /dev/sdb:
DRIVES="/dev/sd[ab]"
Put this in .conkyrc:
${hddtemp /dev/sdb}°C
Above done, restart the daemon.
# rc.d restart hddtemp
Now you should get the temperature.
You don't need suid set.
Offline
Pages: 1