Jeremy Sands

Res publica non dominetur

Incredibly Useful Config Files: /etc/lircd.conf and ~/.lircrc

This is my LIRC (Linux Infrared Remote Control) setup on my desktop. I have a Hauppauge WinTV PVR-250 tuner. It is a later model, and the remote is identical to what was traditionally considered the classic Hauppauge WinTV PVR-350 remote. It has a gray top and black bottom, and has red/green/yellow/blue buttons in a square around the directional pad.

In my setup, I have configured LIRC to work with Amarok, MPlayer, and MythTV.

The config files were last updated November 11th, 2008.

/etc/lircd.conf

begin remote                               

  name  hauppauge_pvr
  bits           13  
  flags RC5|CONST_LENGTH
  eps            30     
  aeps          100     

  one           969   811
  zero          969   811
  plead        1097      
  gap          114605    
  toggle_bit      2


      begin codes
          Power                    0x00000000000017FD
          Go                       0x00000000000017FB
          1                        0x00000000000017C1
          2                        0x00000000000017C2
          3                        0x00000000000017C3
          4                        0x00000000000017C4
          5                        0x00000000000017C5
          6                        0x00000000000017C6
          7                        0x00000000000017C7
          8                        0x00000000000017C8
          9                        0x00000000000017C9
          Back/Exit                0x00000000000017DF
          0                        0x00000000000017C0
          Menu                     0x00000000000017CD
          Red                      0x00000000000017CB
          Green                    0x00000000000017EE
          Yellow                   0x00000000000017F8
          Blue                     0x00000000000017E9
          Ch+                      0x00000000000017E0
          Ch-                      0x00000000000017E1
          Vol-                     0x00000000000017D1
          Vol+                     0x00000000000017D0
          Ok                       0x00000000000017E5
          Mute                     0x00000000000017CF
          Blank                    0x00000000000017CC
          Full                     0x00000000000017FC
          Rewind                   0x00000000000017F2
          Play                     0x00000000000017F5
          Forward                  0x00000000000017F4
          Record                   0x00000000000017F7
          Stop                     0x00000000000017F6
          Pause                    0x00000000000017F0
          Replay                   0x00000000000017E4
          Skip                     0x00000000000017DE
      end codes

end remote

~/.lircrc

# --------------------------------------------------------------------------------
# ===== MythTV Config ============================================================
#---------------------------------------------------------------------------------
# Channel Up                                                                      
begin                                                                             
prog = mythtv                                                                     
button = CH+                                                                      
repeat = 3                                                                        
config = Up                                                                       
end                                                                               

# Channel Down
begin         
prog = mythtv 
button = CH-  
repeat = 3    
config = Down 
end           

# OK/Select
begin      
prog = mythtv
button = OK  
config = Space
end           

# Play
begin 
prog = mythtv
button = PLAY
config = Return
end            

# Stop
begin 
prog = mythtv
button = STOP
config = Esc 
end          

# Escape/Exit/Back
begin             
prog = mythtv     
button = BACK/EXIT
config = Esc      
end               

# Power Off/Exit
begin           
prog = mythtv   
button = OFF    
config = Esc    
end             

# Red means left
begin           
prog = mythtv   
button = RED    
config = Left   
end             

# Green means right
begin              
prog = mythtv      
button = GREEN     
config = Right     
end                

# Pause
begin  
prog = mythtv
button = PAUSE
repeat = 3    
config = P    
end           

# Mute
begin 
prog = mythtv
button = MUTE
repeat = 3   
config = F9  
end          

# Fast forward (30 sec default)
begin                          
prog = mythtv                  
button = REW                   
repeat = 3                     
config = Left                  
end                            

# Rewind (10 sec default)
begin                    
prog = mythtv            
button = FFW             
repeat = 3               
config = Right           
end                      

# Skip forward (10 min default)
begin                          
prog = mythtv                  
button = SKIP                  
repeat = 3                     
config = PgDown                
end                            

# Skip backward (10 min default)
begin                           
prog = mythtv                   
button = REPLAY                 
repeat = 3                      
config = PgUp                   
end                             

# Record
begin   
prog = mythtv
button = RECORD
repeat = 3     
config = R     
end            

# Vol-
begin 
prog = mythtv
button = BLANK
repeat = 3    
config = [    
end           

# Display EPG while in live TV,
# View selected show while in EPG
begin                            
prog = mythtv                    
button = MENU                    
repeat = 3                       
config = M                       
end                              

# Scroll up
begin      
prog = mythtv
button = VOL+
repeat = 3   
config = ]   
end          

# Scroll down
begin        
prog = mythtv
button = VOL-
repeat = 3   
config = [   
end          

# Bring up OSD info
begin              
prog = mythtv      
button = GO        
repeat = 3         
config = I         
end                

# Vol+
begin 
prog = mythtv
button = FULL
repeat = 3   
config = ]   
end          

# Seek to previous commercial cut point
begin                                  
prog = mythtv                          
button = YELLOW                        
repeat = 3                             
config = Q                             
end                                    

# Seek to next commercial cut point
begin                              
prog = mythtv                      
button = BLUE                      
repeat = 3                         
config = Z                         
end                                

# Numbers 0-9

begin
prog = mythtv
button = 0   
repeat = 3   
config = 0   
end          

begin
prog = mythtv
button = 1   
repeat = 3   
config = 1   
end          

begin
prog = mythtv
button = 2   
repeat = 3   
config = 2   
end          

begin
prog = mythtv
button = 3   
repeat = 3   
config = 3   
end          

begin
prog = mythtv
button = 4   
repeat = 3   
config = 4   
end          

begin
prog = mythtv
button = 5   
repeat = 3   
config = 5   
end          

begin
prog = mythtv
button = 6   
repeat = 3   
config = 6   
end          

begin
prog = mythtv
button = 7   
repeat = 3   
config = 7   
end          

begin
prog = mythtv
button = 8   
repeat = 3   
config = 8   
end          

begin
prog = mythtv
button = 9   
repeat = 3   
config = 9   
end          







# --------------------------------------------------------------------------------
# ===== MPlayer Config ===========================================================
# --------------------------------------------------------------------------------
begin                                                                             
prog = mplayer                                                                    
button = OFF                                                                      
config = quit                                                                     
end                                                                               

begin
prog = mplayer
button = BACK/EXIT
config = quit     
end               

begin
prog = mplayer
button = PAUSE
config = pause
end           

begin
prog = mplayer
button = REPLAY
config = seek -300
repeat = 1        
end               

begin
prog = mplayer
button = SKIP 
config = seek +300
repeat = 1        
end               

begin
prog = mplayer
button = GREEN
config = seek +30
repeat = 1       
end              

begin
prog = mplayer
button = RED  
config = seek -15
repeat = 1       
end              

begin
prog = mplayer
button = VOL+ 
config = volume 1
repeat = 1       
end              

begin
prog = mplayer
button = VOL- 
config = volume -1
repeat = 1        
end               





# --------------------------------------------------------------------------------
# ===== Amarok Config ============================================================
# --------------------------------------------------------------------------------
begin                                                                             
prog = irexec                                                                     
button = SKIP                                                                     
config = dcop amarok player next                                                  
end                                                                               

begin
prog = irexec
button = PLAY
config = dcop amarok player play
end                             

begin
prog = irexec
button = REPLAY
config = dcop amarok player prev
end                             

begin
prog = irexec
button = PAUSE
config = dcop amarok player playPause
end                                  

begin
prog = irexec
button = STOP
config = dcop amarok player stop
end                             

begin
prog = irexec
button = VOL+
config = dcop amarok player volumeUp
repeat = 1                          
end                                 

begin
prog = irexec
button = VOL-
config = dcop amarok player volumeDown
repeat = 1                            
end                                   

begin
prog = irexec
button = FWD 
config = dcop amarok player seekRelative 5
repeat = 1
end

begin
prog = irexec
button = GREEN
config = dcop amarok player seekRelative 5
repeat = 1
end

begin
prog = irexec
button = RED
config = dcop amarok player seekRelative -5
repeat = 1
end

begin
prog = irexec
button = REW
config = dcop amarok player seekRelative -5
repeat = 1
end

begin
prog = irexec
button = MUTE
config = dcop amarok player mute
end

begin
prog = irexec
button = OFF
config = dcop amarok player stop
end

begin
prog = irexec
button = BACK/EXIT
config = dcop amarok player stop
end

Comment

*


Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0