[Pm-utils] Quirk for running hdparm after resume from suspend and hibernate

Dan Nicholson dbn.lists at gmail.com
Thu Jan 29 06:50:12 PST 2009


On Wed, Jan 28, 2009 at 11:42 PM, Pacho Ramos
<pacho at condmat1.ciencias.uniovi.es> wrote:
> El dom, 18-01-2009 a las 21:30 +0100, Pacho Ramos escribió:
>> hi!
>>
>> On my laptop (a Dell XPS 1330) I need to run hdparm service at boot for
>> setting -B 256 (you can check for "Load_Cycle_Count problem at google
>> and you will see that a lot of laptops are affected).
>>
>> Until now, I were re-reunning hdparm after resume with a local script,
>> but now, I read about pm-utils and I created a quirk that seems to work
>> ok. I already know that pm-utils upstream prefers apps to install quirks
>> instead of making pm-utils do it itself, but I want to ask for reviewing
>> before sending this to hdparm upstream
>>
>> The quirk is attached
>>
>> Thanks a lot
>> _______________________________________________
>> Pm-utils mailing list
>> Pm-utils at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/pm-utils
>
> Does it look ok then for sending to hdparm upstream?
>
> Thanks :-)

Meant to get back sooner on this, sorry.

One issue is that it makes the assumption that the distro has a hdparm
initscript. None of the distros I've used have had one, so I don't
think this is universal. What system are you using? It might end up
being something that's distro specific. Here's what fedora does:

http://cvs.fedoraproject.org/viewvc/rpms/pm-utils/devel/pm-utils-99hd-apm-restore?view=markup

It may also be that hdparm upstream won't be that receptive, but
there's only one way to find out. :)

--
Dan


More information about the Pm-utils mailing list