linuxOS_AP05/debian/test/usr/lib/pm-utils/sleep.d/00powersave

19 lines
438 B
Plaintext
Raw Normal View History

2025-09-26 01:40:02 +00:00
#!/bin/sh
. "${PM_FUNCTIONS}"
# do not run pm-powersave on ARM during suspend; the 1.5 seconds that it takes
# to run it don't nearly compensate the potentially slightly slower suspend
# operation in low power mode
ARCH=`uname -m`
command_exists pm-powersave || exit $NA
case $1 in
suspend|hibernate) [ "$ARCH" != "${ARCH#arm}" ] || pm-powersave false ;;
resume|thaw) pm-powersave ;;
*) exit $NA ;;
esac
exit 0