[laptop-mode] Wrong hdparm setting applied after resume
Bart Samwel
bart at samwel.tk
Sat Jul 12 23:16:14 CEST 2008
Hi Joss,
The problem is that pm-utils, the package that handles suspend on
Ubuntu, doesn't restart laptop-mode-tools after resuming from suspend.
This means that laptop-mode-tools won't be able to reapply its settings
at that point.
In debian bug #473055 you find this file:
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=70;filename=66LTM;att=1;bug=473055
If you put that in /etc/pm/sleep.d under the name "66LTM" (and make it
executable, I think!), it may work for you.
In Ubuntu and Debian, there are also some cases in which the
acpi-support package handles suspend (for instance when you suspend
using a laptop's suspend button while not logged in to Gnome or KDE --
but the exact set of cases is a bit diffuse). In Debian, acpi-support
restarts laptop mode when resuming from suspend. I'm not sure about
Ubuntu though. If it so happens that you turn out to use acpi-support
for suspend, you may want to add a script to /etc/acpi/resume.d which
restarts the laptop-mode service (through the command "invoke-rc.d
laptop-mode-tools restart").
Does this help?
Cheers,
Bart
Joss Winn wrote:
> Hello,
>
> I found the message below in the list archive. It describes exactly
> what I have found after installing the latest laptop-mode-tools Debian
> package on Ubuntu Hardy.
>
> After wrangling with laptop power management on Ubuntu, I think I've
> got it worked out, but I can't see a way to correct the hdparm value
> of 128 after resume from suspend.
>
> Any ideas on fixing this would be appreciated.
>
> Thank you
> Joss
>
>
> I've followed the conversation about this on launchpad, but haven't
> seen it arise on Debian Lenny as of yet, except for
> my own problems with it that is.
>
> The problem being that after resume from suspend an hdparm value of
> 128 is always applied. Removing then re-inserting
> the ac power applies the correct settings. Or, if you resume on
> battery simply plugging in the ac-power will apply the
> correct settings. So, this is really only a problem when resuming on
> battery. In all other respects laptop-mode is
> working quiet well. Thanks much for the iwl powersave stuff!
>
> I've attached text files of laptop-mode.conf, hdparm.conf, output of
> hdparm -I /dev/sda and a text file of all installed
> apps. The important ones to note - I think - are that I don't have
> acpi or acpi-tools installed. Everything but this one
> little bothersome thing is working so well, even without them, that
> I'm afraid of messing something more important up by
> installing them.
>
> Let me know what other information I can provide. Here's some basic
> info, and I noticed that I don't have at least one
> of the recommends, apmd. But this laptop is pretty new, and my
> understanding was that apm was disabled in the newer
> kernels by default anyway.
>
> Some basic info:
> ================
>
> Debian Lenny/Testing 2.6.24-1-686
>
> arthur at archnix:~$ aptitude show laptop-mode-tools
> Package: laptop-mode-tools
> State: installed
> Automatically installed: no
> Version: 1.42-1
> Recommends: acpid | apmd | pbbuttonsd | pmud, hdparm, sdparm, hal
>
>
> Best,
> Arthur
> _______________________________________________
> laptop-mode mailing list
> laptop-mode at mailman.samwel.tk
> http://mailman.samwel.tk/mailman/listinfo/laptop-mode
More information about the laptop-mode
mailing list