Ubuntu 12.04 proper LCDd suspend

Please edit this file: /usr/lib/pm-utils/sleep.d/LCDd and make it executable chmod +x LCDd.

#!/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
 
. "${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

Leave a Reply

Your email address will not be published. Required fields are marked *