[mythtv-users] Problem with lirc

James Oltman cnlibmyth at gmail.com
Thu Apr 6 00:22:16 UTC 2006


OK.  I performed those commands.  I can now create and edit the lircrc in
/home/mythtv/.mythtv.  I also noticed that there was a difference in the
/etc/lircd.conf and the lircrc.  One button was labeled Rewind and the other
labeled Reverse.  I have made them both rewind.  Let's see if that does
it...Nope.  Myth still isn't taking it's commands from the remote.  I am
pretty much stuck.  Any thoughts?  I am going to give the contents of my
files:

/etc/lircd.conf

#
# RC-6 config file
#
# source: http://home.hccnet.nl/m.majoor/projects__remote_control.htm
#         http://home.hccnet.nl/m.majoor/pronto.pdf
#
# used by: Philips
#
#########
#
# Philips Media Center Edition remote control
# For use with the USB MCE ir receiver
#
# Dan Conti  dconti|acm.wwu.edu
#
# Updated with codes for MCE 2005 Remote additional buttons
# *, #, Teletext, Red, Green, Yellow & Blue Buttons
# Note: TV power button transmits no code until programmed.
# Updated 12th September 2005
# Graham Auld - mce|graham.auld.me.uk
#
# Radio, Print, RecTV are only available on the HP Media Center remote
control
#

begin remote

  name mceusb
  bits           16
  flags RC6|CONST_LENGTH
  eps            30
  aeps          100

  header       2667   889
  one           444   444
  zero          444   444
  pre_data_bits 21
  pre_data      0x37FF0
  gap          105000
  toggle_bit     22
  rc6_mask     0x100000000


      begin codes

    Blue    0x00007ba1
    Yellow    0x00007ba2
    Green    0x00007ba3
    Red    0x00007ba4
    Teletext    0x00007ba5

# starts at af
        Radio    0x00007baf
        Print    0x00007bb1
        Videos   0x00007bb5
        Pictures 0x00007bb6
        RecTV    0x00007bb7
        Music    0x00007bb8
        TV       0x00007bb9
# no ba - d8

        Guide    0x00007bd9
        LiveTV   0x00007bda
        DVD      0x00007bdb
        Back     0x00007bdc
        OK       0x00007bdd
        Right    0x00007bde
        Left     0x00007bdf
        Down     0x00007be0
        Up       0x00007be1

        Star       0x00007be2
        Hash       0x00007be3

        Replay   0x00007be4
        Skip     0x00007be5
        Stop     0x00007be6
        Pause    0x00007be7
        Record   0x00007be8
        Play     0x00007be9
        Rewind   0x00007bea
        Forward  0x00007beb
        ChanDown 0x00007bec
        ChanUp   0x00007bed
        VolDown  0x00007bee
        VolUp    0x00007bef
        More     0x00007bf0
        Mute     0x00007bf1
        Home     0x00007bf2
        Power    0x00007bf3
        Enter    0x00007bf4
        Clear    0x00007bf5
        Nine     0x00007bf6
        Eight    0x00007bf7
        Seven    0x00007bf8
        Six      0x00007bf9
        Five     0x00007bfa
        Four     0x00007bfb
        Three    0x00007bfc
        Two      0x00007bfd
        One      0x00007bfe
        Zero     0x00007bff
      end codes

end remote



This is my /home/mythtv/.mythtv/lircrc:

# Config for mceusb2 file for mythtv, mplayer & xine
# Start with a few jump points
begin
prog = mythtv
button = TV
config = !
end

begin
prog = mythtv
button = Music
config = $
end

begin
prog = mythtv
button = Pictures
config = %
end

begin
prog = mythtv
button = Videos
config = ^
end

begin
prog = mythtv
button = RecTV
config = (
end

begin
prog = mythtv
button = Guide
config = &
end

begin
prog = mythtv
button = LiveTV
config = _
end

begin
prog = mythtv
button = DVD
config = @
end


# Now the normal keys
begin
prog = mythtv
button = ChanUp
config = Up
end

begin
prog = mythtv
button = ChanDown
config = Down
end

begin
prog = mythtv
button = Power
config = ALT-F4
end

begin
prog = mythtv
button = Home
config = M
end

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

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

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

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

begin
prog = mythtv
button = OK
config = Enter
end

begin
prog = mythtv
button = Zero
config = 0
end

begin
prog = mythtv
button = One
config = 1
end

begin
prog = mythtv
button = Two
config = 2
end

begin
prog = mythtv
button = Three
config = 3
end

begin
prog = mythtv
button = Four
config = 4
end

begin
prog = mythtv
button = Five
config = 5
end

begin
prog = mythtv
button = Six
config = 6
end

begin
prog = mythtv
button = Seven
config = 7
end

begin
prog = mythtv
button = Eight
config = 8
end

begin
prog = mythtv
button = Nine
config = 9
end

begin
prog = mythtv
button = VolUp
repeat = 1
config = ]
end

begin
prog = mythtv
button = VolDown
repeat = 1
config = [
end

begin
prog = mythtv
button = Mute
config = |
end

begin
prog = mythtv
button = Pause
config = P
end

begin
prog = mythtv
button = Record
config = R
end

begin
prog = mythtv
button = Rewind
config = PgUp
end

begin
prog = mythtv
button = Forward
config = PgDown
end

begin
prog = mythtv
button = Enter
config = C
end

begin
prog = mythtv
button = More
config = I
end

begin
prog = mythtv
button = Back
config = Esc
end

begin
prog = mythtv
button = Play
config = Return
end

begin
prog = mythtv
button = Stop
config = O
end

begin
prog = mythtv
button = Skip
config = Z
end

begin
prog = mythtv
button = Replay
config = Q
end

### Xine lirc setup

begin
prog = xine
button = Play
config = Play
end

begin
prog = xine
button = Stop
config = Stop
end

begin
prog = xine
button = Back
config = Quit
end

begin
prog = xine
button = Pause
config = Pause
end

begin
prog = xine
button = Up
repeat = 3
config = EventUp
end

begin
prog = xine
button = Down
repeat = 3
config = EventDown
end

begin
prog = xine
button = Left
repeat = 3
config = EventLeft
end

begin
prog = xine
button = Right
repeat = 3
config = EventRight
end

begin
prog = xine
button = OK
repeat = 3
config = EventSelect
end

begin
prog = xine
button = Guide
config = Menu
end

begin
prog = xine
button = Home
config = Menu
end

begin
prog = xine
button = Forward
repeat = 2
config = SeekRelative+60
end

begin
prog = xine
button = Rewind
repeat = 2
config = SeekRelative-60
end

begin
prog = xine
button = Skip
repeat = 2
config = SeekRelative+15
end

begin
prog = xine
button = Replay
repeat = 2
config = SeekRelative-15
end

begin
prog = xine
button = VolUp
repeat = 1
config = Volume+
end

begin
prog = xine
button = VolDown
repeat = 1
config = Volume-
end

begin
prog = xine
button = Mute
config = Mute
end

begin
prog = xine
button = DVD
config = RootMenu
end

begin
prog = xine
button = ChanUp
config = EventNext
end

begin
prog = xine
button = ChanDown
config = EventPrior
end

begin
prog = xine
button = Home
config = OSDStreamInfos
end


### MPlayer lirc setup

# Show OSD
begin
prog = mplayer
button = Guide
config = osd
end

begin
prog = mplayer
button = Home
config = osd
end

# Pause playback
begin
prog = mplayer
button = Pause
config = pause
end

# Skip ahead a minute if playing
# If paused, resume playing
begin
prog = mplayer
button = OK
config = seek +1
end

# Stop playback and exit
begin
prog = mplayer
button = Back
config = quit
end

# Mute
begin
prog = mplayer
button = Mute
config = mute
end

# Seek back 10 seconds
begin
prog = mplayer
button = Left
repeat = 1
config = seek -10
end

# Seek forward 30 seconds
begin
prog = mplayer
button = Right
repeat = 1
config = seek +30
end

# Seek forward 10 minutes
begin
prog = mplayer
button = Forward
repeat = 3
config = seek +600
end

# Seek backward 10 minutes
begin
prog = mplayer
button = Rewind
repeat = 3
config = seek -600
end

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

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

begin
prog = xmame
button = Back
config = 1
end

begin
prog = xmame
button = One
config = 2
end

begin
prog = xmame
button = Two
config = 3
end

begin
prog = xmame
button = Five
config = 6
end

begin
# fire
prog = xmame
button = OK
config = 29
end

begin
# right
prog = xmame
button = ChanUp
config = 77
end

begin
# left
prog = xmame
button = ChanDown
config = 75
end

begin
prog = irexec
button = Power
# config = mythtvosd --template=alert alert_text="Power pressed -
Shutting Down NOW!" && /sbin/halt
config = /sbin/halt
mode = halt
flags= once
end



Thanks for everyone's quick responses!!

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060405/78e0e3bd/attachment.htm 


More information about the mythtv-users mailing list