Hi again pm-utils maintainers,

Here's the file as something you can save to disk, if that makes it
easier to incorporate. It should be incorporated as

/usr/lib/pm-utils/sleep.d/99laptop-mode

I'll be setting the priority of this one back to normal for a couple of
reasons:

1. acpi-support suspend also does this. The latest versions of
acpi-support defer their suspend support to pm-utils, hoping that that
would be better supported than the upstream acpi-support suspend code.
I'm also the maintainer of acpi-support. If this doesn't go in, I'll
hack around it in acpi-support before the release. This is something
which I *don't* want to do, quite simply because it *stinks*.

2. Lots of people use laptop-mode-tools to set their hard drive's APM
levels, to fix this problem:

https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695

The use of laptop mode tools is one of the common workarounds for this
problem. However, if it doesn't get a chance to reprogram the hard drive
on resume, these people are screwed: their supposed workaround will not
work, and their hard drive will wear out without them knowing it.

3. Priority inheritance: this bug is reported as a normal bug for
laptop-mode-tools that cannot be fixed within laptop-mode-tools itself.
To fix it for laptop-mode-tools, this needs fixing in pm-utils. That
means the actual priority should be higher than the priority purely from
an intra-package standpoint.

IOW, pleasepleaseplease fix this. You can also convince me that it
shouldn't be fixed this way. But PLEASE don't leave this hanging in
wishlist limbo.

Cheers,
Bart
#!/bin/sh
#
# 99laptop-mode: Reload laptop mode

case "$1" in
        hibernate|suspend)
                ;;
        thaw|resume)
                if [ -e /etc/init.d/laptop-mode ] ; then
                        invoke-rc.d laptop-mode restart
                fi
                ;;
        *) exit $NA
                ;;
esac

Reply via email to