Comment 7 for bug 268877

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 268877] Re: bluetooth service does not restart after a suspend to ram

On Tue, 2008-10-21 at 20:01 +0000, Mario Limonciello wrote:
> Here's the debdiff for doing it with pm-utils. Subscribing ubuntu-
> release
>
> ** Attachment added: "pm-utils.debdiff"
> http://launchpadlibrarian.net/18779789/pm-utils.debdiff
>
> ** Changed in: bluez (Ubuntu)
> Status: Confirmed => Won't Fix
>
> ** Changed in: pm-utils (Ubuntu)
> Status: New => Confirmed
>
I believe you added the sleep hook in the wrong package. From pm-utils
source, I found a file called README.distributions, saying this:
Note for distro maintainers:

When writing sleep hooks, please consider adding any needed hooks to the
package
that requires the hooks, rather than pm-utils.

An example would be if you distro wants anacrom to run on resume -- the
optimal
fix would be to have the anacron package install a hook in
/usr/lib/pm-utils/sleep.d that wakes anacron up on resume.

This will also help package maintenance by allowing package maintainers
to
keep track of what the best way to handle any suspend/resume
functionality their
package requires insteas of leaving it up to the pm-utils maintainers to
guess
at what functionality is needed.

In other words, please put the hook in bluez, not in pm-utils.
--
Chow Loong Jin