Driver

Next you have to load the correct driver to make it work. Add to the file /etc/modules the entry:

uinput

Create a new file /etc/udev/rules.d/55-uinput with one line:

KERNEL=="uinput", MODE="0666"

hardware.conf

Now you must tell lirc to start the mouse daemon and where the config file is. Edit your /etc/lirc/hardware.conf to have these settings:

START_LIRCMD="true"
LIRCMD_CONF="/etc/lirc/lircmd.conf"

Here is an example file:

# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Packard Bell receiver"
REMOTE_MODULES="lirc_dev lirc_serial"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="packard_bell/lircd.conf.packard_bell"
REMOTE_LIRCD_ARGS=""
#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
#Enable lircd
START_LIRCD="true"
#Don't start lircmd even if there seems to be a good config file
START_LIRCMD="true"
#Try to load appropriate kernel modules
LOAD_MODULES="true"
# Default configuration files for your hardware if any
LIRCMD_CONF="/etc/lirc/lircmd.conf"
#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"

lircmd.conf

Create a new file /etc/lirc/lircmd.conf. You have to tell lirc which buttons will move the cursor what direction. use irw to determine your button names if you need. Also note the TOGGLE_ACTIVATE is the button you will push to turn on and off your mouse capabilities of your remote. You must push this button before the other buttons will command the cursor, and you must push it again for these buttons to have their regular usage.

/etc/init.d/lirc

There is an issue with the init script in Ubuntu. There is no way to pass arguments to the lircmd daemon at start up. We need to start it with the --uinput flag. to do this you need to edit /etc/init.d/lirc. Note: line 194 added " -- --uinput".