File hdparm-5.8-acoustic.patch of Package hdparm

--- hdparm.c
+++ hdparm.c
@@ -1290,14 +1290,14 @@
 		if (get_acoustic) {
 			printf(" setting acoustic management to %d\n", acoustic);
 		}
-#if 0
+#if 1
 		if (ioctl(fd, HDIO_SET_ACOUSTIC, acoustic))
 			perror(" HDIO_SET_ACOUSTIC failed");
 #else
 {
 		unsigned char args[4] = {WIN_SETFEATURES,0,0,0};
-		args[1] = acoustic;
 		args[2] = acoustic ? 0x42 : 0xc2;
+		args[3] = acoustic;
 		if (ioctl(fd, HDIO_DRIVE_CMD, &args)) {
 			err = errno;
 			perror(" HDIO_DRIVE_CMD:ACOUSTIC failed");
openSUSE Build Service is sponsored by