HOWTO: Hauppauge Remote Control in Kubuntu

Discussion in 'Linux, BSD and Other OS's' started by megamaced, May 27, 2006.

  1. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    Just finished writing up this guide for the guys at ubuntuforums. Thought I'd share it here as well :)

    ---------------------------------------------------------

    Took me several months to get my Hauppauge remote control working. I've followed several guides and got nowhere. Only now, after combining all the information I have gathered, have I finally got it working!
    Hopefully by the end of this guide, you too will be able to launch and control Kaffeine, Amarok and even Konqueror from the comfort of your arm chair :)

    NOTE: I can only confirm this guide works for the grey remote control that comes with the new Nova-T PCI. If you successfully set up a different remote control using this guide, please post details and help others!

    Okay, let's get to it..


    PART 1: Testing, Testing, 1.2.3

    We need to find out if the standard Kubuntu kernel has detected your remote control. We can check this by typing the following command into a terminal window.

    Code:
    cat /proc/bus/input/devices
    A load of text will appear. Look for something similar to what is shown below:

    Code:
    I: Bus=0001 Vendor=0070 Product=9002 Version=0001
    [b]N: Name="cx88 IR (Hauppauge Nova-T DVB-T"[/b]
    P: Phys=pci-0000:01:02.0/ir0
    S: Sysfs=/class/input/input3
    [b]H: Handlers=kbd event3[/b]
    B: EV=100003
    B: KEY=100fc312 214a802 0 0 0 0 18000 41a8 4801 9e1680 7bb80 0 10000000
    There are two important things to look for here. The 'N:Name' proves the remote control has been detected properly and the 'H:Handlers' shows us what 'event number' our remote control is mapped to.
    You will need to remember the event number later on so keep it in mind. My Hauppauge remote control event number is 3, but yours could be something different.

    We are going to test the remote control to make sure everything is working correctly. Type the command below into a terminal and replace 'eventx' with your event number. So if I were doing this, I'd have to type 'event3'.

    Code:
    sudo evtest /dev/input/eventx
    Press some buttons on the remote control. You should see some output in the terminal. This confirms communication with your remote control was received.

    Press Ctrl+C to finish the test.


    PART 2: Installing The Lirc Server

    We need to install lirc, the Linux Infra-Red Receiver. Lirc will handle all of the communication between your remote control and your computer

    Code:
    sudo apt-get install lirc
    Time for another little test! You will need to have two terminals open at the same time to perform this test. In the first terminal, type what you see below and replace 'eventx' with your event number

    Code:
    sudo /usr/sbin/lircd -H dev/input -d /dev/input/eventx -n
    And in the second terminal, type:

    Code:
    irw
    Press some buttons on the remote control and you should see some output in one of the terminals. Once you have finished, press CTRL+C to cancel


    PART 3: Configuration Files

    You need to download the two configuration files below and save them to your home folder

    lircd.conf

    hardware.conf

    Open up the hardware.conf configuration file with your favourite text editor and look for the line that starts with:

    Code:
    DEVICE="/dev/input/event2"
    .

    Change the event number to your own event number (if different).

    Once that's completed, you need to move these files to /etc/lirc

    Code:
    sudo mv lircd.conf /etc/lirc
    Code:
    sudo mv hardware.conf /etc/lirc
    Activate the Lirc server by typing:

    Code:
    sudo /etc/init.d/lirc start

    PART 4: Installing The KDE Lirc Front End, IRKICK

    The next thing we need to do is install the KDE front end for lirc, called IRKICK.

    Code:
    sudo apt-get install kdelirc
    NOTE: For this very reason, this guide is for Kubuntu users only. I am not aware of a GNOME front end for Lirc. But if you know of one, this is when you should install it.


    PART 5: Key Mapping

    Go to the K menu, point to Utilities and click on KDE Lirc Server (IRKICK).

    If you don't see it there, you may have to wait a couple of seconds, or reboot your computer.

    Look over at your taskbar and you will see a little antenna. If your configuration is a success, the antenna will be surrounded by red radiowaves.

    This icon will light up whenever a button is pressed on the remote control. Press a few buttons now to test it for yourself!

    All that is left to do now is to configure the buttons on the remote control to perform a specific action.
    Right click the antenna icon in your taskbar and select configure. Click the add button on the right hand side and a wizard will begin and guide you through the rest!


    PART 6: Starting IRKICK Automatically with KDE

    This is actually quite simple. Right click the IRKICK icon in the taskbar and choose 'Quit'. A notice pops up asking if you would like IRKICK to start automatically with KDE. Simply click OK.


    Enjoy!

    ******************
    Changes: 28/05/06: Added Step6 section; Minor changes elsewhere
    10/06/06: Added a crucial bit of information that i accidentally missed out :O
     
  2. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    Nice tutorial mega, I think i'll write a tut on ralink network card installation as well.
     

Share This Page