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. -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1548486 Title: Sleep hook in a subdirectory ignored but causes double execution of previous hook To manage notifications about this bug go to: https://bugs.launchpad.net/pm-utils/+bug/1548486/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs