0

IR remote control

I'm trying to get a StreamZap remote control to work with the TV simulator.

Installing lirc as per https://help.ubuntu.com/community/InstallLirc/Hardy was simple and the remote worked immediately with the "irw" command line program. However, the buttons codes are not sent to the TV simulator out of the box. Looks like I have to configure a ~/.lircrc config file to send the correct keyboard codes to the simulator when the remote control buttons are pressed.

Any hints? Any prebuilt and read-to-go ~/.lircrc that I can use?

Or if it's a snowball-in-hades type of thing, I'd like to know about it ASAP.

-- Bosco

by
3 Replies
  • QUOTE (boscomonkey @ Apr 9 2009, 02:55 PM) <{POST_SNAPBACK}>
    Any hints? Any prebuilt and read-to-go ~/.lircrc that I can use?


    Our QA team already has this. I will follow up with them and see if I can get a copy to send out to you. Please give me a day or two to follow up on this.
    0
  • I kind of got it to work, and for what it's worth, here are the steps:

    • Installed lirc as per directions in https://help.ubuntu.com/community/InstallLirc/Hardy
    • Installed lirc-x package to get irxevent
    • Copied the text blob below as my ~/.lircrc file
    • Fired up irxevent to turn StreamZap remote control codes into keyboard equivalents
    • Fired up TV simulator

    The part I don't like about this approach is that I have to fire up irxevent first.


    CODE
    begin
    prog = irxevent
    button = OK
    config = Key Return CurrentWindow
    end
    begin
    prog = irxevent
    button = MENU
    config = Key Home CurrentWindow
    end
    begin
    prog = irxevent
    button = EXIT
    config = Key F10 CurrentWindow
    end
    begin
    prog = irxevent
    button = UP
    config = Key Up CurrentWindow
    end
    begin
    prog = irxevent
    button = DOWN
    config = Key Down CurrentWindow
    end
    begin
    prog = irxevent
    button = LEFT
    config = Key Left CurrentWindow
    end
    begin
    prog = irxevent
    button = RIGHT
    config = Key Right CurrentWindow
    end
    begin
    prog = irxevent
    button = RED
    config = Key F1 CurrentWindow
    end
    begin
    prog = irxevent
    button = GREEN
    config = Key F2 CurrentWindow
    end
    begin
    prog = irxevent
    button = YELLOW
    config = Key F3 CurrentWindow
    end
    begin
    prog = irxevent
    button = BLUE
    config = Key F4 CurrentWindow
    end
    0
  • Here's the config files our QA uses:

    Samsung:
    CODE
    # Please make this file available to others
    # by sending it to <lirc@bartelmus.de>
    #
    # this config file was automatically generated
    # using lirc-0.8.3(usb_uirt_raw) on Thu Feb 19 14:21:29 2009
    #
    # contributed by
    #
    # brand: BN59-00695A
    # model no. of remote control:
    # devices being controlled by this remote:
    #

    begin remote

    name BN59-00695A
    bits 16
    flags SPACE_ENC
    eps 30
    aeps 100

    header 4450 4250
    one 602 1500
    zero 602 417
    ptrail 602
    pre_data_bits 16
    pre_data 0xE0E0
    gap 45700
    toggle_bit_mask 0x0

    begin codes
    Power 0x40BF
    TV 0xD827
    1 0x20DF
    2 0xA05F
    3 0x609F
    4 0x10EF
    5 0x906F
    6 0x50AF
    7 0x30CF
    8 0xB04F
    9 0x708F
    - 0xC43B
    0 0x8877
    Pre-Ch 0xC837
    Vol+ 0xE01F
    Vol- 0xD02F
    Mute 0xF00F
    Source 0x807F
    Ch+ 0x48B7
    Ch- 0x08F7
    ChList 0xD629
    Menu 0x58A7
    W.Link 0x31CE
    Tools 0xD22D
    Return 0x1AE5
    Info 0xF807
    Exit 0xB44B
    Up 0x06F9
    Left 0xA659
    Right 0xFA05
    Down 0x8679
    Enter 0x16E9
    Red 0x36C9
    Green 0x28D7
    Yellow 0xA857
    Blue 0x6897
    CC 0xA45B
    InfoL 0xC936
    DMA 0xC639
    E.Mode 0x29D6
    P.Size 0x7C83
    Fav.Ch 0x22DD
    RW 0xA25D
    Pause 0x52AD
    FF 0x12ED
    Rec 0x926D
    Play 0xE21D
    Stop 0x629D
    end codes

    end remote


    And LG:
    CODE
    # Please make this file available to others
    # by sending it to <lirc@bartelmus.de>
    #
    # this config file was automatically generated
    # using lirc-0.8.3(usb_uirt_raw) on Thu Feb 19 14:03:17 2009
    #
    # contributed by
    #
    # brand: MKJ42519632
    # model no. of remote control:
    # devices being controlled by this remote:
    #

    begin remote

    name MKJ42519632
    bits 16
    flags SPACE_ENC|CONST_LENGTH
    eps 30
    aeps 100

    header 8900 4258
    one 525 1622
    zero 525 529
    ptrail 574
    repeat 8892 2070
    pre_data_bits 16
    pre_data 0x20DF
    gap 104448
    toggle_bit_mask 0x0

    begin codes
    Power 0x10EF
    Up 0x02FD
    Left 0xE01F
    Right 0x609F
    Down 0x827D
    Enter 0x22DD
    Return 0x14EB
    LG 0x9A65
    Widgets 0x1AE5
    Vol+ 0x40BF
    Vol- 0xC03F
    Fav 0x7887
    Mute 0x906F
    Ch+ 0x00FF
    Ch- 0x807F
    1 0x8877
    2 0x48B7
    3 0xC837
    4 0x28D7
    5 0xA857
    6 0x6897
    7 0xE817
    8 0x18E7
    9 0x9867
    - 0x32CD
    0 0x08F7
    Flashback 0x58A7
    Red 0x4EB1
    Green 0x8E71
    Yellow 0xC639
    Blue 0x8679
    Ratio 0x9E61
    Stop 0x8D72
    Play 0x0DF2
    Pause 0x5DA2
    RW 0xF10E
    FF 0x718E
    Q.Menu 0xA25D
    Menu 0xC23D
    Info 0x55AA
    AV-Mode 0x0CF3
    Input 0xD02F
    Smplink 0x7E81
    EnergySaving 0xA956
    end codes

    end remote


    I will see what I can do to write a few sample scripts to help with usage. Unfortunately, I can't release the ones our QA team uses, but that doesn't stop me from writing ones of my own. I can't guarantee how soon I will get to it, but I will try to do it soon.

    -Jeremy
    0

Recent Posts

in General - Yahoo! TV Widgets