I've currently have the next command in my post-installation script for fixing the bug:
tmp="$(mktemp)"&&wget https://launchpadlibrarian.net/73767502/pm-functions-run-hooks-with-local.patch -O"$tmp"&&\ echo "8b59fdcb8f79c40510c15f6a8f3695f9569b084c6f6640e8175cf3105d81439e $tmp"|sha256sum -c&&\ sudo patch /usr/lib/pm-utils/pm-functions "$tmp";rm $tmp The upstream bug has been reported two months after this one: https://bugs.freedesktop.org/show_bug.cgi?id=32210 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/665651 Title: pm-utils does not follow requests to inhibit suspend/hibernate from scripts in /etc/pm/sleep.d To manage notifications about this bug go to: https://bugs.launchpad.net/pm-utils/+bug/665651/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs