Using hdparm and idle3-tools - Do I have to enable something in Systemd?

I have an older WD Green drive which by default has some weird behavior on Linux (hdparm - ArchWiki SECTION 3.6).

I had, in the past, created udev rules in /etc/udev/rules.d/69-disk.rules

ACTION=="add", KERNEL=="sd[a-z]", ENV{ID_SERIAL_SHORT}=="[serial]", RUN+="/usr/bin/hdparm -S 60 /dev/%k"
ACTION=="add", KERNEL=="sd[a-z]", ENV{ID_SERIAL_SHORT}=="[serial]", RUN+="/usr/bin/idle3ctl -s 129 /dev/%k"

*[serial] - edited.

(I might, in this file, create rules for 2 more drives later that do not have sleep-spin down options available gnome-disk-utility 45.1)

I just noticed that neither hdparm nor idle3-tools were installed because I rolled back over these installations last year in July. But so I installed them again.

As I understand, the udev rule should trigger the actions above.

My question related to that is: Do I need to enable some
sudo systemctl status hdparm.service
or similar or am I fine without changing anything?

Also for idle3ctl to be applied?

Yeah and that is correct. The ACTION “add” means, that it will RUN the command everytime after the the device has been added. Why would run a systemd service here?

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.