Your message dated Tue, 19 Feb 2008 23:02:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#462766: fixed in hdparm 8.3-1
has caused the Debian Bug report #462766,
regarding hdparm: easier config of spindown time
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
462766: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=462766
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: hdparm
Version: 7.7-1
Severity: wishlist
Tags: patch
Hi,
the following patch for /etc/init.d/hdparm adds support for easier
entering of spindown times. You can use the suffixes s, m and h to define
the spindown time.
--- /etc/init.d/hdparm 2006-10-31 12:00:20.000000000 +0100
+++ /tmp/hdparm 2008-01-26 22:37:43.542443636 +0100
@@ -221,6 +221,47 @@
eval_value $VALUE -r
;;
spindown_time)
+ case "$VALUE" in
+ *[hms])
+ case "$VALUE" in
+ *h)
+ time=$((${VALUE%h} * 3600))
+ ;;
+ *m)
+ time=$((${VALUE%m} * 60))
+ ;;
+ *s)
+ time=${VALUE%s}
+ ;;
+ esac
+ if [ $time -lt 1260 ]; then # up to 21 minutes
+ new_VALUE=$(($time / 5))
+ if [ $new_VALUE -gt 240 ]; then
+ new_VALUE=240
+ fi
+ if [ $(($new_VALUE * 5)) -ne $time ]; then
+ log_warning_msg $VALUE not possible, \
+ using $(($new_VALUE * 5)) seconds
+ fi
+ VALUE=$new_VALUE
+ elif [ $time -lt 1800 ]; then
+ if [ $time -ne 1260 ]; then
+ log_warning_msg $VALUE not possible, using 21 minutes
+ fi
+ VALUE=252
+ else
+ new_time=$(($time / 1800))
+ if [ $new_time -gt 11 ]; then
+ new_time=11
+ fi
+ if [ $((new_time * 1800)) -ne $time ]; then
+ log_warning_msg $VALUE not possible, \
+ using $(($new_time * 30)) minutes
+ fi
+ VALUE=$((new_time + 240))
+ fi
+ ;;
+ esac
set_option -S$VALUE
;;
poweron_standby)
This is a snippet for hdparm.conf
# -S standby (spindown) timeout for the drive
# you can use the suffix' s for seconds, m for minutes and h for hours
#spindown_time = 2m
Bye, Jörg.
-- System Information:
Debian Release: unstable/experimental
APT prefers unstable
APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.24-rc6
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages hdparm depends on:
ii libc6 2.7-6 GNU C Library: Shared libraries
ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip
hdparm recommends no packages.
-- no debconf information
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
Source: hdparm
Source-Version: 8.3-1
We believe that the bug you reported is fixed in the latest version of
hdparm, which is due to be installed in the Debian FTP archive:
hdparm-dbg_8.3-1_i386.deb
to pool/main/h/hdparm/hdparm-dbg_8.3-1_i386.deb
hdparm-udeb_8.3-1_i386.udeb
to pool/main/h/hdparm/hdparm-udeb_8.3-1_i386.udeb
hdparm_8.3-1.diff.gz
to pool/main/h/hdparm/hdparm_8.3-1.diff.gz
hdparm_8.3-1.dsc
to pool/main/h/hdparm/hdparm_8.3-1.dsc
hdparm_8.3-1_i386.deb
to pool/main/h/hdparm/hdparm_8.3-1_i386.deb
hdparm_8.3.orig.tar.gz
to pool/main/h/hdparm/hdparm_8.3.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Stephen Gran <[EMAIL PROTECTED]> (supplier of updated hdparm package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 19 Feb 2008 22:39:32 +0000
Source: hdparm
Binary: hdparm hdparm-dbg hdparm-udeb
Architecture: source i386
Version: 8.3-1
Distribution: unstable
Urgency: low
Maintainer: Stephen Gran <[EMAIL PROTECTED]>
Changed-By: Stephen Gran <[EMAIL PROTECTED]>
Description:
hdparm - tune hard disk parameters for high performance
hdparm-dbg - debug files for hdparm
hdparm-udeb - tune hard disk parameters for high performance (udeb)
Closes: 462766
Changes:
hdparm (8.3-1) unstable; urgency=low
.
* New upstream release
* easier config of spindown time (closes: #462766)
* Update Standards-Version (no changes)
Files:
0a503339abae1eea6f71415768453a92 621 admin optional hdparm_8.3-1.dsc
9148669815cb98c2013776decbb5628a 69975 admin optional hdparm_8.3.orig.tar.gz
77c013ce4c0b94cf7fed89cbc8175427 17858 admin optional hdparm_8.3-1.diff.gz
bb5af7efd7cba5a174f19f178851a4bb 73344 admin optional hdparm_8.3-1_i386.deb
1147dddd35562d2a84fd9c41af1bbe08 44040 admin extra hdparm-dbg_8.3-1_i386.deb
c5f8ddd11a3e8cd9b01c2c1a053fe22a 32442 debian-installer optional
hdparm-udeb_8.3-1_i386.udeb
Package-Type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHu14YSYIMHOpZA44RAtJ7AKCqNS1vu+5J+gtolEMHRwKHhaGuJwCeI3EP
2vt92NLr6PLLttbfBwg3hEs=
=Wq9N
-----END PGP SIGNATURE-----
--- End Message ---