FS#35391 - [hddtemp] 0.3beta15.52-2 only displays /dev/sda in gkrellm hddtemps

Attached to Project: Arch Linux
Opened by Dutch de Ruyter (straykat59) - Tuesday, 21 May 2013, 02:21 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 22 May 2013, 22:11 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description: gkrellm is only able to see /dev/sda in Sensors > Temperatures > hddtemp after upgrade of hddtemp to 0.3beta15.52-2. I have four (4) hard drives.

Package version: 0.3beta15.52-2

Rebuilt hddtemp from ABS with the following changes & all hard drives temps appear again in gkrellm.

ABS > hddtemp > service:

[Service]
ExecStart=/usr/bin/hddtemp -dF /dev/sda

Changed to:

[Service]
ExecStart=/usr/bin/hddtemp -dqF /dev/sda /dev/sdb /dev/sdc /dev/sdd

To reproduce: reinstall hddtemp via pacman -S hddtemp

I have attached my modified ABS > hddtemp > service file
   service (0.2 KiB)
This task depends upon

Closed by  Gaetan Bisson (vesath)
Wednesday, 22 May 2013, 22:11 GMT
Reason for closing:  Not a bug
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 21 May 2013, 03:10 GMT
Use the drop-in feature of recent systemd.
https://wiki.archlinux.org/index.php/User:Djgera#hddtemp
Comment by Dutch de Ruyter (straykat59) - Tuesday, 21 May 2013, 03:36 GMT
Pozzi,
I think that hddtemp needs to be compiled so your walk around is in fact not needed.

The change that I have applied to ABS > hddtemp adds your feature into systemd without having to edit systemd itself.

I am sure there is an "Acher" out there who can get hddtemp to automatically detect all hard drive temperatures?
Comment by Sergey (Luyan) - Tuesday, 21 May 2013, 15:38 GMT
I used hddtemp to obtain the temperature by: nc localhost 7634
My /etc/conf.d/hddtemp
PARAMS="-q -l 127.0.0.1"
DRIVES="/dev/sda /dev/sdb /dev/sdc"

So, I was getting details about 3 hards by netcat.
But now I getting details only about /dev/sda, even if DRIVES="/dev/sdb".

This report is connected with my problems?
Comment by Dutch de Ruyter (straykat59) - Tuesday, 21 May 2013, 22:58 GMT
Sergey,
hddtemp now ignores /etc/conf.d/hddtemp & systemd is fully implemented.

The "service" config file in ABS > hddtemp places the systemd "service" in /etc/systemd/system/multi-user.target.wants/hddtemp.service. This is the file I changed to get hddtemp to see all my drives.

As Pozzi has suggested you can place a "service" file in the /etc/systemd/system/ which will take priority, but I think it would be better if hddtemp was able to detect & display all hard drive temps. out of the box.

I have read some threads about this, mostly Fedora/Red Hat, about getting the "service" file to auto detect all hard drives.
Comment by Sergey (Luyan) - Wednesday, 22 May 2013, 07:15 GMT
Dutch de Ruyter,
Thank you for your explanation, now all works fine.
But this must be work "out of box", so I voted.
Comment by Gaetan Bisson (vesath) - Wednesday, 22 May 2013, 22:10 GMT
There will never be any autodetection to generate our service files.
We ship reasonable default values and it is up to the user to customize them to fit their needs (just as you had to customize /etc/conf.d or other configuration files before).

Loading...