Bug 248905 - hdparm settings are reset during KDE startup
Summary: hdparm settings are reset during KDE startup
Status: RESOLVED DOWNSTREAM
Alias: None
Product: solid
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 15:21 UTC by Wonko
Modified: 2011-01-31 10:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wonko 2010-08-24 15:21:13 UTC
Version:           unspecified (using KDE 4.5.0) 
OS:                Linux

Disk drive settings like acoustic management or spindown time are somehow being reset when KDE starts up.

Reproducible: Always

Steps to Reproduce:
1. hdparm -M /dev/sda # get current setting, 0 for me
2. hdparm -M 128 /dev/sda # change to most quiet mode
3. log into KDE


Actual Results:  
hdparm -M /dev/sda again gives 0

Expected Results:  
hdparm -M /dev/sda should return 128

Other settings are also affected. I set the spindown time in /etc/init.d/hdparm, but when loging into KDE, I have to start the script again to make any of its settings work.

I also like some drives to spin down immeadiately after bootup, but they all spin up during login, even if no partitions are mounted.
Comment 1 Christoph Feck 2010-08-24 22:03:38 UTC
I doubt that KDE changes any "hdparm" settings, but reassigning for further clarification and for the spin-up issue.
Comment 2 Wonko 2010-08-25 00:14:33 UTC
Yeah, I was surprised, too. I had written about my drives spinning up on the gentoo-user mailing list, and someone else showed me this thread:
http://thread.gmane.org/gmane.linux.gentoo.user/232044

I confirmed the hdparm -M stuff and so reported the bug here. Could this be Gentoo-specific somehow?
Comment 3 Kevin Ottens 2010-08-25 08:25:54 UTC
Well, it's definitely not coming from solid, we don't touch hdparm at all in there... Sounds like something gentoo specific indeed (I'm not aware of anything playing with hdparm in the KDE Workspaces...).
Comment 4 Wonko 2010-08-25 10:44:06 UTC
Okay, so if it can't be reproduced on a non-gentoo system, I will report this on bugs.gentoo.org then. Sorry for the noise.
Comment 5 Wonko 2010-08-30 19:06:40 UTC
Just for the record, the solution is this comment from http://bugs.gentoo.org/show_bug.cgi?id=334393:

I had another pm related issue with KDE and it was caused by pm-utils (used by
powerdevil). pm-utils sets a lot of pm settings (see /usr/lib/pm-utils/*
scripts). Try to disable the harddrive features of pm-utils by:
touch /etc/pm/power.d/harddrive

and restart KDE.