Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136848 - hdparm -M always says acoustic value is 0 after setting it, it does set value correctly though
Summary: hdparm -M always says acoustic value is 0 after setting it, it does set value...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-bugzilla-pending
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-14 21:45 UTC by Frank T. Lofaro Jr.
Modified: 2007-04-25 15:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
hdparm -I syscall trace (hdparm-I-trace.txt,5.00 KB, text/plain)
2006-12-18 09:21 UTC, Frank T. Lofaro Jr.
Details
hdparm -M syscall trace (hdparm-M-trace.txt,1.96 KB, text/plain)
2006-12-18 09:21 UTC, Frank T. Lofaro Jr.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank T. Lofaro Jr. 2006-06-14 21:45:49 UTC
# emerge --info
Portage 2.1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r8 i686)
=================================================================
System uname: 2.6.16-gentoo-r8 i686 Pentium II (Deschutes)
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks maketest metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.osuosl.org http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1 -l1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 apm arts avi bash-completion bcmath berkdb bitmap-fonts bzlib cdparanoia cdr cli crypt cups dri eds emacs emacs-w3 emboss encode examples fastcgi fbcon flac foomaticdb fortran gdbm gif glut gpm gstreamer gtk gtk2 imagemagick imlib ipv6 isdnlog jpeg kde lcms libg++ libwww lm_sensors lmsensors mad matrox mikmod mp3 mpeg ncurses nls nocd nptl nptlonly offensive ogg opengl oss pam pcre pdflib perl php png posix postgres pppd python qt quicktime readline reflection sdl session spell spl ssl sysvipc tcltk tcpd tidy truetype truetype-fonts type1-fonts udev usb vorbis wddx x-face xaw8 xml xmms xorg xv yahoo zlib elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

Using hdparm -M to set the acoustic value says it is set to 0 when it is not

# hdparm -M 128 /dev/hda

/dev/hda:
 setting acoustic management to 128
 acoustic     =  0 (128=quiet ... 254=fast)
# hdparm -I /dev/hda | grep acoustic
        Recommended acoustic management value: 192, current value: 128

So it sets it OK, it is just the displayed value in the first command that is wrong.
Comment 1 SpanKY gentoo-dev 2006-06-24 21:23:14 UTC
not a hdparm bug

sounds like either your hardware doesnt support it or the issue is in the kernel

run hdparm through strace and you can see the ioctl's being sent to the kernel ... that means hdparm has done its job
Comment 2 Frank T. Lofaro Jr. 2006-12-11 12:48:23 UTC
(In reply to comment #1)
> not a hdparm bug
> 
> sounds like either your hardware doesnt support it or the issue is in the
> kernel
> 
> run hdparm through strace and you can see the ioctl's being sent to the kernel
> ... that means hdparm has done its job
> 

hdparm -I gets the current value just fine, but when I set it using -M and it reports what the current value is set to it fails.

So if it would use the ioctl it uses to get the "Current value" in the output of -I above in reporting the value with -M it should work.

Comment 3 Daniel Drake (RETIRED) gentoo-dev 2006-12-17 10:19:10 UTC
Please attach output of "strace hdparm -M ..." and then attach output of "strace hdparm -I"
Comment 4 Frank T. Lofaro Jr. 2006-12-18 09:21:29 UTC
Created attachment 104292 [details]
hdparm -I syscall trace
Comment 5 Frank T. Lofaro Jr. 2006-12-18 09:21:48 UTC
Created attachment 104293 [details]
hdparm -M syscall trace
Comment 6 Frank T. Lofaro Jr. 2007-01-22 23:09:02 UTC
bump
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2007-04-25 15:06:37 UTC
Sorry for the delay in getting to this, other issues are taking priority. Please file this upstream at http://bugzilla.kernel.org -- hopefully it will get more attention there. Attach the strace output as well. Please post the new bug URL here when done.