View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Mar 03, 2007 2:41 pm 
Offline
Joined: Mon Feb 19, 2007 3:45 pm
Posts: 7
My overall goal: to assign jumppoints to various keys on the MCE remote, such as Start Button -> Main Menu, Live TV button -> Watch TV, etc.

I think I've got the basic process down. I think it is as follows:

First, in Myth, I need to set up all my keybindings via Utilities/Settings -> Edit Keys.
Second, I need to edit lircrc, located in /home/mythtv/.mythtv.

When editing lircrc, the names of the buttons for the MCE Remote are listed in lircd.conf, which is located in /etc. These button names go in the "button = " parameter. Then for the "config =" parameter for the button, you put in the keystroke that you want to bind to that key, which was setup firstly in the Edit Keys section.

I noticed that almost all of the keyboard is already mapped. Rather than wade through the million keybindings, I'd rather just use Ctrl + key keybindings for the jumppoints. So I set Ctrl + Home key for Main Menu, and Ctrl + T for Watch TV in the Edit Keys menu. Then in lircrc I added the following:

Code:
begin
   prog = irxevent
   button = Home
   config = Key \Home CurrentWindow
end

begin
    prog = irxevent
    button = LiveTV
    config = Key \T CurrentWindow
end


According to the documentation for LIRC, the way to send CTRL + Key sequences is to put a backslash in front of the key. That is why the backslashes are there.

However, after I rebooted the PC, and reentered Myth, the new keys don't work! Can anyone tell me what I'm doing wrong? My MCE remote came from a Hauppauge PVR-150MCE kit. Also, here's my lircd.conf file:

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
#
# 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

# 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
# no e2,e3
        Replay   0x00007be4
        Skip     0x00007be5
        Stop     0x00007be6
        Pause    0x00007be7
        Record   0x00007be8
        Play     0x00007be9
        Rewind   0x00007bea
        LiveTV   0x00007bda
        DVD      0x00007bdb
        Back     0x00007bdc
        OK       0x00007bdd
        Right    0x00007bde
        Left     0x00007bdf
        Down     0x00007be0
        Up       0x00007be1
# no e2,e3
        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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 05, 2007 8:22 pm 
Offline
Joined: Mon Feb 19, 2007 3:45 pm
Posts: 7
Heh, well I solved it. The problem was that I looked at the wrong documentation. Once I found the documentation for irxevent, it clearly states that you are to use shift-key or ctrl-key for the modifiers. Did so and it worked peachy.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 10 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu