Comment 10 for bug 1548486

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Reproduced on trusty. In xenial the sleed.d packagekit hook is gone.

sudo apt install pm-utils packagekit

I hacked /usr/lib/pm-utils/pm-functions to log which hook it was running, and forced a suspend with "pm-suspend". In my case I got multiple runs of 98video-quirk-db-handler right after the incorrect packagekit directory was hit:

hook var is
base is 99video
runing hook /usr/lib/pm-utils/sleep.d/99video
hook var is /usr/lib/pm-utils/sleep.d/99video
base is 98video-quirk-db-handler
runing hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler
hook var is /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler
base is 95packagekit
runing hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler
hook var is /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler
base is 95led
runing hook /usr/lib/pm-utils/sleep.d/95led
hook var is /usr/lib/pm-utils/sleep.d/95led
base is 95hdparm-apm
...

With the proposed fix, the packagekit hook isn't run, and we also don't get double runs of other hooks.

So the fix could be what is proposed, or/and moving the packagekit hook to the right place.