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

Compiling rtorrent from source on Ubuntu Maverick

Download and compile libtorrent

sudo wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.6.tar.gz
sudo tar zxfv libtorrent-0.12.6.tar.gz
cd libtorrent-0.12.6
sudo ./configure
sudo make
sudo make install

Download and compile xmlrpc-c

sudo svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
cd xmlrpc-c/
sudo ./configure
sudo make
sudo make install

Download and compile rtorrent

sudo wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.6.tar.gz
sudo tar zxfv rtorrent-0.8.6.tar.gz
cd rtorrent-0.8.6
sudo ./configure --with-xmlrpc-c
sudo make
sudo make install