Description: Check HIBERNATE_MODE in uswsusp module Author: Vadim Solomin Bug-Debian: http://bugs.debian.org/589553 --- pm/module.d/uswsusp +++ pm/module.d/uswsusp @@ -87,7 +87,11 @@ HIBERNATE_MODULE="uswsusp" do_hibernate() { - s2disk + if [ -n "$HIBERNATE_MODE" ]; then + s2disk -P "shutdown method=$HIBERNATE_MODE" + else + s2disk + fi } fi