How to use the IR remote control as mouse

Here is the correct sequence:
 – start “lircd” with the appropriate command.
 – start “lircmd”
 – start X

Configure xorg.conf as follows:

Put this section in your xorg.conf file to use the mouse in addition to your normal one.

Section "InputDevice"
        Identifier  "LIRC-Mouse"
        Driver      "mouse"
        Option      "Device" "/dev/lircm"
        Option      "Protocol" "IntelliMouse"
        Option      "SendCoreEvents"
        Option      "Buttons" "5"
        Option      "ZAxisMapping" "4 5"

And add a line to the ServerLayout section like this:

Section "ServerLayout"<br />        ...<br />        InputDevice    "LIRC-Mouse"           <-- add this line<br />EndSection

I didn’t try yet, but an easier way should be:
# modprobe uinput
# lircmd –uinput

How to start LIRC

My remote control is a Pinnacle PCTV, which uses the driver “pinsys”.

In order to see the driver available in lircd, use the command:
# lircd –driver=?

To see what are the supported remote control and the related driver:

To start the lirc daemon with the correct driver and serial port, use the command:
# lircd –driver=pinsys –device=/dev/ttyUSB0

Then in KDE start the IRKick program.

For other settings and deeper documentation:

How to sniff serial data on GNU/Linux

Use the Serial Line Sniffer program:

Consider the following scenario:

Device (A)
Host (B)
Sniffer (C)

All connections are set as 9600 N81.

Device (A) is connected to Sniffer (C) with a null modem (crossed serial cable) on port /dev/ttyUSB1 of Sniffer (C).
Host (B) is connected to Sniffer (C) with a null modem (crossed serial cable) on port /dev/ttyUSB0 of Sniffer (C).

On Sniffer (C), launch the slsnif program with the following parameter:

slsnif -p /dev/ttyUSB0 /dev/ttyUSB1

On the terminal of Sniffer (C), you can see the serial data exchanged between A and B.

On a modern computer without “native” serial ports, you must use Serial/USB adapters.
The important point is to use null modem between A and C and between B and C.

A ——( null modem )——- C ——-( null modem )—— B

A package for Slackware 12.2 is available here:

happy sniffing