Hi Bart,
I did indeed consider that; see below. With btrace I checked that it is hddtemp that is accessing the hd and causing it to spin up. FWIW, smartctl has the same behavior (as you already mentioned in <a href="https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695/comments/253">comment 253</a>).
Cheers Wouter
# hdparm -S1 /dev/sda && hddtemp /dev/sda && sleep 10 && hdparm -C /dev/sda && hddtemp /dev/sda && hdparm -C /dev/sda
/dev/sda: setting standby to 1 (5 seconds) /dev/sda: TOSHIBA MK8034GSX: 26°C
/dev/sda: drive state is: standby /dev/sda: TOSHIBA MK8034GSX: 26°C
/dev/sda: drive state is: active/idle
# hdparm -S1 /dev/sda && smartctl -a /dev/sda | grep Load_Cycle_Count && sleep 10 && hdparm -C /dev/sda && smartctl -a /dev/sda | grep Load_Cycle_Count && hdparm -C /dev/sda
/dev/sda: setting standby to 1 (5 seconds) 193 Load_Cycle_Count 0x0032 089 089 000 Old_age Always - 114151
/dev/sda: drive state is: standby 193 Load_Cycle_Count 0x0032 089 089 000 Old_age Always - 114152
Hi Bart,
I did indeed consider that; see below. With btrace I checked that it is hddtemp that is accessing the hd and causing it to spin up. FWIW, smartctl has the same behavior (as you already mentioned in <a href="https:/ /bugs.launchpad .net/ubuntu/ +source/ acpi-support/ +bug/59695/ comments/ 253">comment 253</a>).
Cheers
Wouter
# hdparm -S1 /dev/sda && hddtemp /dev/sda && sleep 10 && hdparm -C /dev/sda && hddtemp /dev/sda && hdparm -C /dev/sda
/dev/sda:
setting standby to 1 (5 seconds)
/dev/sda: TOSHIBA MK8034GSX: 26°C
/dev/sda:
drive state is: standby
/dev/sda: TOSHIBA MK8034GSX: 26°C
/dev/sda:
drive state is: active/idle
# hdparm -S1 /dev/sda && smartctl -a /dev/sda | grep Load_Cycle_Count && sleep 10 && hdparm -C /dev/sda && smartctl -a /dev/sda | grep Load_Cycle_Count && hdparm -C /dev/sda
/dev/sda:
setting standby to 1 (5 seconds)
193 Load_Cycle_Count 0x0032 089 089 000 Old_age Always - 114151
/dev/sda:
drive state is: standby
193 Load_Cycle_Count 0x0032 089 089 000 Old_age Always - 114152
/dev/sda:
drive state is: active/idle