/usr/lib/pm-utils/sleep.d/50LCDd is in lcdproc 0.5.9-2.
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 24 25 26 27 28 29 30 31 32 33 34 | #!/bin/sh
# If we are running LCDd stop and restart
# Otherwise lirc_* modules won't get unloaded and
# they do not work properly with suspend/resume
# File contributed by Joel Ebel
# see https://bugs.launchpad.net/ubuntu/+source/lcdproc/+bug/365474
. "${PM_FUNCTIONS}"
suspend_lcd()
{
if [ -x /etc/init.d/LCDd ]; then
/etc/init.d/LCDd stop 2>&1 > /dev/null
fi
}
resume_lcd()
{
if [ -x /etc/init.d/LCDd ]; then
/etc/init.d/LCDd start 2>&1 > /dev/null
fi
}
case "$1" in
hibernate|suspend)
suspend_lcd
;;
thaw|resume)
resume_lcd
;;
*) exit $NA
;;
esac
|