summaryrefslogtreecommitdiffstats
path: root/DOCS/LIRC
blob: 831ede3c6611e5387e421bec9efb30035fa61fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

LIRC support for MPlayer
 written by Andreas Ackermann in 2/2001
 contact: acki@acki-netz.de

o What is LIRC?

 Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver, 
 an (almost) arbitrary remote control and control your linux box with it!
 More about it at www.lirc.org.

o MPlayer and LIRC

 If you have installed the lirc-package, you can compile MPlayer with LIRC
 support using  ./configure --enable-lirc
 You should do 'make distclean' before re-compile with 'make dep;make'

 If everything went fine, MPlayer will print a message like 
   LIRC init was successful.
 on startup. If an error occurs it will tell you. If it doens't tell you 
 anything about LIRC there's no support compiled in. That's it :-)

 The application name for MPlayer is - oh wonder - mplayer.
 It understands the following commands:

 PAUSE  - pause playing. Any other keystroke will continue replay.
 QUIT   - exit mplayer
 RWND   - 10 secs back
 FRWND  - 60 secs back
 FWD    - skip 10 secs
 FFWD   - skip 60 secs

 Don't forget to enable the repeat flag for RWND/FWD in .lircrc. Here's an
 excerpt from my .lircrc:

 begin
  remote = CU-SX070
  prog = mplayer
  button = Tape_Play
  repeat = 1
  config = FFWD
 end

 begin
  remote = CU-SX070
  prog = mplayer
  button = Tape_Stop
  config = QUIT
 end
	      
 Enjoy

 -Andreas