/usr/share/tlp-pm/tlp-nop is in tlp 0.9-3.
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 23 | #!/bin/sh
# tlp - if tlp is enabled, override corresponding pm-utils script
# in /usr/lib/pm-utils/power.d/
CONFFILE=/etc/default/tlp
LIBDIR='/usr/lib/pm-utils'
if [ -d "$LIBDIR/power.d" ]; then
# pm-utils script dir exists
blocked="$LIBDIR/power.d/${0##*/}"
if [ -x "$blocked" ]; then
# overridable pm-utils script exists --> check if TLP enabled
if [ -e "$CONFFILE" ] && . "$CONFFILE" && [ "$TLP_ENABLE" = '1' ]; then
# TLP is enabled --> disable $blocked
echo "Notice: '${blocked}' disabled by TLP."
else
exec "$blocked" $*
fi
fi # else: nothing to disable -> don't read $CONFFILE
fi
exit 0
|