Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MCE remote in MythTV doesn't work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
DAharon
Apprentice
Apprentice


Joined: 17 Jun 2004
Posts: 155

PostPosted: Fri Sep 22, 2006 8:26 am    Post subject: MCE remote in MythTV doesn't work Reply with quote

I'm trying to figure out how to get my Microsoft MCE remote to work with MythTV.
I have the lircd.conf done, and irw reads correctly, but when I am in MythTV nothing happens.
I know that I am supposed to have a .lircrc file but mythtv doesn't seem to see it.
Right now I am just using the lircrc.example, and its using irxevent. If I run irxevent, I get nothing.
I'm using MythTV-0.19.
What am I doing wrong?
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Fri Sep 22, 2006 12:24 pm    Post subject: Reply with quote

mythfrontend uses ~/.mythtv/lircrc for lirc. If you are using the right file, can you post it please, along with /etc/lircd.conf.
Back to top
View user's profile Send private message
PraetorX
n00b
n00b


Joined: 01 Jan 2004
Posts: 13

PostPosted: Fri Sep 22, 2006 3:55 pm    Post subject: Reply with quote

What version of the remote are you using? I've got an older-model Microsoft-branded, Phillips MCE remote working perfectly with one of my frontends.

I'm not at home right now the firewall blocks unknown apps, so I can't get the specifics of my install right now, but pteppic is correct regarding the location of the config file.
Back to top
View user's profile Send private message
DAharon
Apprentice
Apprentice


Joined: 17 Jun 2004
Posts: 155

PostPosted: Fri Sep 22, 2006 4:18 pm    Post subject: Reply with quote

Here is my lircd.conf:
Code:
#
# 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


And my .lircrc file:
Code:
begin
    prog = irxevent
    button = ChannelUp
    repeat = 3
    config = Key Up CurrentWindow
end

begin
    prog = irxevent
    button = ChannelDown
    repeat = 3
    config = Key Down CurrentWindow
end

begin
    prog = irxevent
    button = Power
    config = Key Escape CurrentWindow
end

begin
    prog = irxevent
    button = Menu
    config = Key M CurrentWindow
end

begin
    prog = irxevent
    button = MenuUp
    repeat = 3
    config = Key W CurrentWindow
end

begin
    prog = irxevent
    button = MenuRight
    repeat = 3
    config = Key D CurrentWindow
end

begin
    prog = irxevent
    button = MenuDown
    repeat = 3
    config = Key S CurrentWindow
end

begin
    prog = irxevent
    button = MenuLeft
    repeat = 3
    config = Key A CurrentWindow
end

begin
    prog = irxevent
    button = Enter
    config = Key KP_Enter CurrentWindow
end

begin
    prog = irxevent
    button = 0
    config = Key KP_0 CurrentWindow
end

begin
    prog = irxevent
    button = 1
    config = Key 1 CurrentWindow
end

begin
    prog = irxevent
    button = 2
    config = Key 2 CurrentWindow
end

begin
    prog = irxevent
    button = 3
    config = Key 3 CurrentWindow
end

begin
    prog = irxevent
    button = 4
    config = Key 4 CurrentWindow
end

begin
    prog = irxevent
    button = 5
    config = Key 5 CurrentWindow
end

begin
    prog = irxevent
    button = 6
    config = Key 6 CurrentWindow
end

begin
    prog = irxevent
    button = 7
    config = Key 7 CurrentWindow
end

begin
    prog = irxevent
    button = 8
    config = Key 8 CurrentWindow
end

begin
    prog = irxevent
    button = 9
    config = Key 9 CurrentWindow
end


I'm just using the example .lircrc because it seemed to be enough to test with.
The remote is version two, but it appears to be missing the red, blue, yellow buttons on the bottom.

EDIT: Ah, I figured out my mistake. I should not have used that example .lircrc, because it's setup completely wrong for me and just confused me. Thanks for the input.
I'll post my finished config files here when I am done fixing .lircrc.

If you guys could post your .lircrc config files, that would be great too.
Back to top
View user's profile Send private message
DAharon
Apprentice
Apprentice


Joined: 17 Jun 2004
Posts: 155

PostPosted: Sun Sep 24, 2006 6:06 pm    Post subject: Reply with quote

Here's the .lircrc file I'm using right now. It's just one I found and downloaded real quick. Haven't had time to edit it but it seems to work fine.

Code:
# lircrc.mceusb

###################
#
#  IRExec
#
###################
begin
    prog = irexec
    button = Power
    repeat = 3
    config = /home/mythtv/bin/mythstart.sh
    #config = Key Alt-Escape CurrentWindow
end

begin
    prog = irxevent
    button = Power
    repeat = 3
    config = Key Alt-Escape CurrentWindow
end

###################
#
#  MythTV
#
###################
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 = Zero
    config = 0
end

begin
    prog = mythtv
    button = Back
    config = Esc
end

begin
    prog = mythtv
    button = Guide
    config = M
end

begin
    prog = mythtv
    button = More
    config = I
end

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

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

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

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

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

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

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

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

begin
    prog = mythtv
    button = Play
    config = Return
end

begin
    prog = mythtv
    button = OK
    config = Return
end

begin
    prog = mythtv
    button = Enter
    config = Return
end

begin
    prog = mythtv
    button = Mute
    config = F9
end

begin
    prog = mythtv
    button = Rewind
    config = <
end

begin
    prog = mythtv
    button = Forward
    config = >
end

begin
  prog = mythtv
  button = Record
  config = R
end

begin
   prog = mythtv
   button = Stop
   config = O
end

begin
    prog = mythtv
    button = Pause
    config = P
end

# Use for backwards commercial skip
begin
   prog = mythtv
   button = Replay
   config = Q
end

# Use for forward commercial skip
begin
   prog = mythtv
   button = Skip
   config = Z
end

### The following keys need to be mapped before they can be used
### (I mapped mine using MythWeb)
begin
   prog = mythtv
   button = LiveTV
   config = !
end

begin
   prog = mythtv
   button = Videos
   config = ^
end

begin
   prog = mythtv
   button = Pictures
   config = &
end

begin
   prog = mythtv
   button = Music
   config = $
end

begin
   prog = mythtv
   button = TV
   config = @
end

begin
   prog = mythtv
   button = DVD
   config = (
end

begin
   prog = mythtv
   button = Home
   config = )
end

###################
#
#  MPlayer
#
###################
begin
   prog = mplayer
   button = Back
   config = quit
end

begin
   prog = mplayer
   button = More
   config = osd
end

begin
   prog = mplayer
   button = Replay
   config = seek -10
   repeat = 1
end

begin
   prog = mplayer
   button = Skip
   config = seek +10
   repeat = 1
end

begin
   prog = mplayer
   button = Rewind
   config = seek -60
   repeat = 1
end

begin
   prog = mplayer
   button = Forward
   config = seek +60
   repeat = 1
end

begin
    prog = mplayer
    button = Pause
    config = pause
end

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

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

begin
   prog=mplayer
   button=Mute
   config=mute
end

###################
#
#  XINE
#
###################
##
# xine key bindings.
# Automatically generated by xine-ui version 0.9.23.
##

# start playback
begin
        button = Play
        prog   = xine
        repeat = 0
        config = Play
end

# playback pause toggle
begin
        button = Pause
        prog   = xine
        repeat = 0
        config = Pause
end

# stop playback
begin
        button = Stop
        prog   = xine
        repeat = 0
        config = Stop
end

# take a snapshot
begin
        button = Record
        prog   = xine
        repeat = 0
        config = Snapshot
end

# set position to -60 seconds in current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SeekRelative-60
end

# set position to +60 seconds in current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SeekRelative+60
end

# set position to -30 seconds in current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SeekRelative-30
end

# set position to +30 seconds in current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SeekRelative+30
end

# set position to -15 seconds in current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SeekRelative-15
end

# set position to +15 seconds in current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SeekRelative+15
end

# set position to -7 seconds in current stream
begin
        button = Rewind
        prog   = xine
        repeat = 2
        config = SeekRelative-7
end

# set position to +7 seconds in current stream
begin
        button = Forward
        prog   = xine
        repeat = 2
        config = SeekRelative+7
end

# set position to beginning of current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SetPosition0%
end

# set position to 1027777754410f current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SetPosition10%
end

# set position to 2027777754410f current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SetPosition20%
end

# set position to 3027777754410f current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SetPosition30%
end

# set position to 4027777754410f current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SetPosition40%
end

# set position to 5027777754410f current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SetPosition50%
end

# set position to 6027777754410f current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SetPosition60%
end

# set position to 7027777754410f current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SetPosition70%
end

# set position to 8027777754410f current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SetPosition80%
end

# set position to 9027777754410f current stream
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SetPosition90%
end

# increment playback speed
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SpeedFaster
end

# decrement playback speed
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SpeedSlower
end

# reset playback speed
begin
        button = xxxxx
        prog   = xine
        repeat = 0
        config = SpeedReset
end

# increment audio volume
begin
        button = VolUp
        prog   = xine
        repeat = 1
        config = Volume+
end

# decrement audio volume
begin
        button = VolDown
        prog   = xine
        repeat = 1
        config = Volume-
end

# audio muting toggle
begin
        button = Mute
        prog   = xine
        repeat = 0
        config = Mute
end

# select next sub picture (subtitle) channel
#begin
#       button = xxxxx
#       prog   = xine
#       repeat = 0
#       config = SpuNext
#end

# select previous sub picture (subtitle) channel
#begin
#       button = xxxxx
#       prog   = xine
#       repeat = 0
#       config = SpuPrior
#end

# cycle aspect ratio values
begin
        button = Videos
        prog   = xine
        repeat = 0
        config = ToggleAspectRatio
end

# jump to media Menu
begin
        button = DVD
        prog   = xine
        repeat = 0
        config = Menu
end

# jump to Title Menu
#begin
#       button = Menu
#       prog   = xine
#       repeat = 0
#       config = TitleMenu
#end

# jump to Root Menu
#begin
#       button = xxxxx
#       prog   = xine
#       repeat = 0
#       config = RootMenu
#end

# jump to Subpicture Menu
#begin
#       button = xxxxx
#       prog   = xine
#       repeat = 0
#       config = SubpictureMenu
#end

# jump to Audio Menu
#begin
#       button = Music
#       prog   = xine
#       repeat = 0
#       config = AudioMenu
#end

# jump to Angle Menu
#begin
#       button = TV
#       prog   = xine
#       repeat = 0
#       config = AngleMenu
#end

# jump to Part Menu
#begin
#       button = xxxxx
#       prog   = xine
#       repeat = 0
#       config = PartMenu
#end

# menu navigate up
begin
        button = Up
        prog   = xine
        repeat = 0
        config = EventUp
end

# menu navigate down
begin
        button = Down
        prog   = xine
        repeat = 0
        config = EventDown
end

# menu navigate left
begin
        button = Left
        prog   = xine
        repeat = 0
        config = EventLeft
end

# menu navigate right
begin
        button = Right
        prog   = xine
        repeat = 0
        config = EventRight
end

# menu select
begin
        button = OK
        prog   = xine
        repeat = 0
        config = EventSelect
end

# jump to next chapter
begin
        button = Skip
        prog   = xine
        repeat = 0
        config = EventNext
end

# jump to previous chapter
begin
        button = Replay
        prog   = xine
        repeat = 0
        config = EventPrior
end

# select next angle
#begin
#       button = TV
#       prog   = xine
#       repeat = 0
#       config = EventAngleNext
#end

# select previous angle
#begin
#       button = xxxxx
#       prog   = xine
#       repeat = 0
#       config = EventAnglePrior
#end

# display stream information using OSD
begin
        button = More
        prog   = xine
        repeat = 0
        config = OSDStreamInfos
end

# enter key binding editor
#begin
#       button = xxxxx
#       prog   = xine
#       repeat = 0
#       config = KeyBindingEditor
#end

# enter the number 0
begin
        button = Zero
        prog   = xine
        repeat = 0
        config = Number0
end

# enter the number 1
begin
        button = One
        prog   = xine
        repeat = 0
        config = Number1
end

# enter the number 2
begin
        button = Two
        prog   = xine
        repeat = 0
        config = Number2
end

# enter the number 3
begin
        button = Three
        prog   = xine
        repeat = 0
        config = Number3
end

# enter the number 4
begin
        button = Four
        prog   = xine
        repeat = 0
        config = Number4
end

# enter the number 5
begin
        button = Five
        prog   = xine
        repeat = 0
        config = Number5
end

# enter the number 6
begin
        button = Six
        prog   = xine
        repeat = 0
        config = Number6
end

# enter the number 7
begin
        button = Seven
        prog   = xine
        repeat = 0
        config = Number7
end

# enter the number 8
begin
        button = Eight
        prog   = xine
        repeat = 0
        config = Number8
end

# enter the number 9
begin
        button = Nine
        prog   = xine
        repeat = 0
        config = Number9
end

# add 10 to the next entered number
begin
        button = Ten
        prog   = xine
        repeat = 0
        config = Number10add
end

# quit the program
begin
        button = Power
        prog   = xine
        repeat = 0
        config = Quit
end

# select Audio mode
begin
        prog = xine
        button = Music
        repeat = 0
        mode = Audio
end

# select Subtitle mode
begin
        prog = xine
        button = Pictures
        repeat = 0
        mode = Subtitle
end

# select Angle mode
begin
        prog = xine
        button = TV
        repeat = 0
        mode = Angle
end

begin Audio

        # select next audio channel
        begin
                button = ChanUp
                prog   = xine
                repeat = 0
                config = AudioChannelNext
        end

        # select previous audio channel
        begin
                button = ChanDown
                prog   = xine
                repeat = 0
                config = AudioChannelPrior
        end

end Audio

begin Subtitle

        # select next sub picture (subtitle) channel
        begin
                button = ChanUp
                prog   = xine
                repeat = 0
                config = SpuNext
        end

        # select previous sub picture (subtitle) channel
        begin
                button = ChanDown
                prog   = xine
                repeat = 0
                config = SpuPrior
        end

end Subtitle

begin Angle

        # select next angle
        begin
                button = ChanUp
                prog   = xine
                repeat = 0
                config = EventAngleNext
        end

        # select previous angle
        begin
                button = ChanDown
                prog   = xine
                repeat = 0
                config = EventAnglePrior
        end

end Angle

##
# End of xine key bindings.
##
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum