Freevo

 

Lirc

  1. Overview
  2. Install steps
  3. File format

Overview

Basically what happens is, when Freevo starts up, it checks if it can initialize pylirc. If it can, it tries to open /etc/freevo/lircrc (or whatever the variable LIRCRC in local_conf.py is set to). It then uses these strings in the freevo code to perform actions.

First check if Lirc is working with your remote before attempting to get it to work with freevo.

(NOTE:: Check the remote section under supported hardware for stuff on specific remotes with lirc)

Install steps

  1. Install Lirc (remote control receiver software)

    • [WWW] Download and [WWW] install lirc.

    • insmod any lirc modules you need (i.e. lirc_serial)

    • Create the /dev/lirc and /dev/lircd devices

      • N.B. /dev/lirc is not required if your device does not use a lirc kernel module (e.g. IRman)

    • Use irrecord to [WWW] record your IR frequencies and associate them with names.

    • Copy the resulting file to /etc/lircd.conf or /etc/lirc/lircd.conf (depends on distro used)

  2. Install pylirc (python-lirc library)

  3. Start the lirc daemon

/etc/init.d/lircd start
  1. Run the lirc app irw to check the function of the remote control. you should see the names from your lircd.conf showing up when pressing those buttons.

  2. Create a new file: /etc/freevo/lircrc (see below for format)

  3. Test the remote using lirc's ircat application:

ircat --config=/etc/freevo/lircrc freevo
  1. Now try it with freevo.

File format

Essential commands:

LEFT, RIGHT, UP, DOWN, SELECT, ENTER, EXIT, DISPLAY

Recommended commands:

REC, REW, PLAY, FFWD, PAUSE, STOP, CH+, CH-

Format of file is:

begin 
    prog = freevo 
    button = <name from lircd> 
    config = <freevo name> 
end 

for example one section would be:

begin 
    prog = freevo 
    button = RECALL 
    config = REC 
end 

the file consists of many of the above sections separated by a blank line. For a listing of all available commands and how they are mapped within the different events (Playing Audio, Video, TV, etc...) look at freevo/src/event.py .

last edited 2005-01-05 10:28:55 by JohnMolohan
current version: http://freevo.sourceforge.net/cgi-bin/doc/Lirc