Page 1 of 1

[SOLVED] hddtemp

Posted: Tue Sep 22, 2009 10:51 pm
by mzsade
Hi, I have got hddtemp to show in my conky, but i have to do a "sudo gedit /etc/default/hddtemp" and close the file each time, even though i don't edit it (i have already set the 'Run_Daemon' value to false), otherwise there is no output in that field in the conky. Please tell me what i need to do?

Re: hddtemp

Posted: Wed Sep 23, 2009 1:52 am
by optimize me
sudo chmod u+s /usr/sbin/hddtemp

Re: hddtemp

Posted: Wed Sep 23, 2009 2:56 am
by mzsade
Thanks, but no joy. That command granted the required permissions only for that session, which was what i was already doing with my sudo gedit /etc/default/hddtemp command. A restart gives this:
sade@sade-desktop ~ $ conky
Conky: forked to background, pid is 3185
sade@sade-desktop ~ $
Conky: desktop window (14000a5) is subwindow of root window (1a7)
Conky: window type - normal
Conky: drawing to created window (0x2600001)
Conky: drawing to double buffer
[sudo] password for sade:
(my password)
bash: (my password): command not found
and the resulting conky has a blank line in the HDD temp field.

Re: hddtemp

Posted: Wed Sep 23, 2009 3:13 am
by optimize me
OK, then. Two things I can think of:
1. Without doing your [whatever it is you're doing], can you run hddtemp from the command line without using sudo?
2. Show me the line from your .conkyrc that you're using to call hddtemp.

Re: hddtemp

Posted: Wed Sep 23, 2009 9:13 am
by mzsade
Hi, really appreciate you taking all this trouble,
1) "Yes, we can!": sade@sade-desktop ~ $ hddtemp /dev/sda
/dev/sda: ST3160215AS: 37°C
sade@sade-desktop ~ $

2) Line from .conkyrc:
HDD Temp: ${color Tan1} sda:$color ${execi 300 sudo hddtemp /dev/sda | cut -c24-25} °C

Re: hddtemp

Posted: Wed Sep 23, 2009 9:20 am
by optimize me
mzsade wrote:Hi, really appreciate you taking all this trouble,
1) "Yes, we can!": sade@sade-desktop ~ $ hddtemp /dev/sda
/dev/sda: ST3160215AS: 37°C
OK, that's good... Now the .conkyrc line:
mzsade wrote:2) Line from .conkyrc:
HDD Temp: ${color Tan1} sda:$color ${execi 300 sudo hddtemp /dev/sda | cut -c24-25} °C
Just get rid of the sudo and it should work.

Re: hddtemp

Posted: Wed Sep 23, 2009 9:35 am
by mzsade
Maestro, I pledge my fealty to you! :D