Skip to contentSkip to conversation

hdparm -C on SATA always prints "standby"

DISCUSSION Len Brown 2 participants 3 messages Oct 16, 2006 libata

lore
Share & tools
lore

Len Brown

author
#0 lore raw

hdparm -C seems to work on the PATA laptops I have, but it always returns standby on the SATA laptops I have.

Is this a known issue?

thanks,
-Len

#1 lore raw
Quoted 4 lines

hdparm -C seems to work on the PATA laptops I have, but it always returns standby on the SATA laptops I have.

Is this a known issue?

Yes, due to incomplete implemetation of the HDIO_* ioctls in libata. Somebody else posted a patch here recently to fix it.
I don't know if Jeff picked it up or not.

Cheers

#2 lore raw
Quoted 8 lines
Quoted 4 lines

hdparm -C seems to work on the PATA laptops I have, but it always returns standby on the SATA laptops I have.

Is this a known issue?

Yes, due to incomplete implemetation of the HDIO_* ioctls in libata. Somebody else posted a patch here recently to fix it.
I don't know if Jeff picked it up or not.

Correction on that. Jeff has indeed picked up the fix, as of his "pull" request on Ocober 11:

Quoted 2 lines

Eran Tromer:
libata: return sense data in HDIO_DRIVE_CMD ioctl

Cheers