[SOLVED] hddtemp

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
mzsade
Level 5
Level 5
Posts: 776
Joined: Sun Jul 19, 2009 4:36 am

[SOLVED] hddtemp

Post 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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Linux User #481272 Reg: 15th Sept., 2008
optimize me

Re: hddtemp

Post by optimize me »

sudo chmod u+s /usr/sbin/hddtemp
User avatar
mzsade
Level 5
Level 5
Posts: 776
Joined: Sun Jul 19, 2009 4:36 am

Re: hddtemp

Post 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.
Linux User #481272 Reg: 15th Sept., 2008
optimize me

Re: hddtemp

Post 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.
User avatar
mzsade
Level 5
Level 5
Posts: 776
Joined: Sun Jul 19, 2009 4:36 am

Re: hddtemp

Post 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
Linux User #481272 Reg: 15th Sept., 2008
optimize me

Re: hddtemp

Post 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.
User avatar
mzsade
Level 5
Level 5
Posts: 776
Joined: Sun Jul 19, 2009 4:36 am

Re: hddtemp

Post by mzsade »

Maestro, I pledge my fealty to you! :D
Linux User #481272 Reg: 15th Sept., 2008
Locked

Return to “Software & Applications”