/usr/lib/pm-utils/sleep.d/01laptop-mode is in laptop-mode-tools 1.71-2ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/sh
#
# 01laptop-mode: Re-apply laptop mode tools settings
if [ -f /etc/pm/sleep.d/99laptop-mode ]; then
continue
else
case "$1" in
hibernate|suspend)
# Stopping is not required.
;;
thaw|resume)
# Make laptop mode tools forcibly re-apply the hardware settings
# that laptop mode tools applies.
if [ -e /usr/sbin/laptop_mode ] ; then
/usr/sbin/laptop_mode auto force
fi
;;
*) exit $NA
;;
esac
fi
|