Find the answer to your Linux question:
Results 1 to 8 of 8
I have installed fedora 10 with mythtv and cant get the remote control to work. i have only two users mythtv and root. I tried checking the permisions of the ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    19

    HELP with remote control model 1039

    I have installed fedora 10 with mythtv and cant get the remote control to work.

    i have only two users mythtv and root. I tried checking the permisions of the lirc and they are set to root. It looks as it is installed corectly

    # lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 003: ID 0471:0815 Philips eHome Infrared Receiver
    Bus 004 Device 002: ID 413c:2105 Dell Computer Corp.
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 002: ID 1532:00fb Razer USA, Ltd
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    #

    but when i press the buttons the remote comes on and the reciever blinks so it is sending something. but no movement on the screen.

    please anyone this is driving me crazy. I reimaged the machine twice because it was working before. dont know what to do . probably i have a symlink worng or wrong permisions please help anyone.

    rrichiez

  2. #2
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    If you are talking about a Windows Media Center Remote, your first stop should be the MythTV Wiki.

    MCE Remote - MythTV

    It will not work without the proper configuration files. Lirc had a large repository of files for specific remotes, that can be found here:
    Index of /remotes

    You can download a compressed file containing these file here:
    http://www.lirc.org/remotes.tar.bz2

    I found setting up lirc to be rather complex, you may want to study the documentation found on the lirc web site.
    LIRC - Linux Infrared Remote Control

    I have started using Mythbuntu for all my MythTV installs. It has a wonderful configuration GUI that sets up the remotes almost automatically. I have set up three of the 1039 remotes under Mythbuntu, rather, it did it for me.

    Hint: Look under the mceusb and the Hauppauge folders for some config files.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  3. #3
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    A little more info on this for you.

    You would use the lircd.conf.mceusb file. Rename it to just lircd.conf, and put it in the /etc folder. If you have a /etc/lirc folder, you should put it in there and make a link to it in /etc.

    You then should copy the lircrc file from the MythTV MCE wiki page, that I linked to earlier. It goes into your home directory in ./mythtv/lirc folder. The folder is hidden, so change the view to show hidden files.

    I'm trying to configure a MCE clone remote to work with my Eee PC/Ubuntu 9.04 system. There is no MythTV/Mythbuntu installed, and it is much harder to do!
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  4. #4
    Just Joined!
    Join Date
    May 2009
    Posts
    19
    Thanks for your help

    but last night. late night I reimaged the machine thinking it would go away but it didnt. I did find this though which has led me to beliee that it is a bug.

    I opend the remote control file that you posted and looked at the mceusb conf file and took "rc6_mask 0x100000000" this and pasted it into the one that i have . then I chown and chgrp the lircd.conf file to mythtv and then did irw command and was recieving . but as soon as i tried to configure it in mythtv all was lost .

    there is something that its not kicking in .....I think its eaither a bug or a permision problem.

    thanks anyway

    Rrichiez

  5. #5
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    I got my mceusb remote working, at least for mplayer!

    I followed some old instructions for Ubuntu. They may not be relevent to Fedora, but I think that it is the config files that they have that made it work.

    https://help.ubuntu.com/community/InstallLirc/Feisty

    The lircd.conf file is still the same. In Fedora copy the lircd.conf.mceusb directly to the /etc folder as lircd.conf. Then copy this file and save it in your home directoy as .lircrc (don't forget the preceding dot). It contains codes for vlc, xine, mplayer and MythTV. It also has some codes to make the Off switch work.
    Code:
    #VLC
    begin
        prog = vlc
        button = play
        config = key-play
    end
    
    begin
        prog = vlc
        button = pause
        config = key-pause
    end
    
    begin
        prog = vlc
        button = stop
        config = key-quit
    end
    
    begin
        prog = vlc
        button = chandown
        config = key-prev
    end
    
    begin
        prog = vlc
        button = chanup
        config = key-next
    end
        
    begin
        prog = vlc
        button = rewind
        config = key-slower
    end
    
    begin
        prog = vlc
        button = forward
        config = key-faster
    end
    
    begin
        prog = vlc
        button = VolDown
        config = key-vol-down
    end
    
    begin
        prog = vlc
        button = VolUp
        config = key-vol-up
    end
    
    begin
        prog = vlc
        button = mute
        config = key-vol-mute
    end
    
    begin
        prog = vlc
        button = left
        config = key-nav-left
    end
    
    begin
        prog = vlc
        button = right
        config = key-nav-right
    end
    
    begin
        prog = vlc
        button = down
        config = key-nav-down
    end
    
    begin
        prog = vlc
        button = up
        config = key-nav-up
    end
    
    begin
        prog = vlc
        button = ok
        config = key-nav-activate
    end
    
    begin
        prog = vlc
        button = dvd
        config = key-disc-menu
    end
    
    
    ######XINE############
    begin
        prog = xine
        button = back
        config = ToggleAspectRatio
    end
    
    begin
        prog = xine
        button = ok
        config = EventSelect
    end
    
    begin
        prog = xine
        button = info
        config = OSDStreamInfos
    end
    
    begin
        prog = xine
        button = VolUp
        config = Volume+
    end
    
    begin
        prog = xine
        button = VolDown
        config = Volume-
    end
    
    begin
        prog = xine
        button = forward
        config = SeekRelative+15
    end
    
    begin
        prog = xine
        button = rewind
        config = SeekRelative-15
    end
    
    
    begin
        prog = xine
        button = skip
        config = EventNext
    end
    
    begin
        prog = xine
        button = replay
        config = EventPrior
    end
    
    begin
        prog = xine
        button = pause
        config = Pause
    end
    
    begin
        prog = xine
        button = up
        config = EventUp
    end
    
    begin
        prog = xine
        button = right
        config = EventRight
    end
    
    begin
        prog = xine
        button = down
        config = EventDown
    end
    
    begin
        prog = xine
        button = left
        config = EventLeft
    end
    
    begin
        prog = xine
        button = enter
        config = Enter
    end
    
    begin
        prog = xine
        button = mute
        config = Mute  
    end
    
    begin
        prog = xine
        button = play
        config = Play  
    end
    
    begin
       prog = xine
       button = stop
       config = Quit
    end
    
    begin
       prog = xine
       button = home
       config = Menu
    end
    
    begin
       prog = xine
       button = dvd
       config = RootMenu
    end
    
    begin
       prog = xine
       button = rsurf
       config = RootMenu
    end
    
    #####MPLAYER#################
    begin
        prog = mplayer
        button = ok
        config = pause
    end
    
    begin
        prog = mplayer
        button = VolUp
        config = volume +1
    end
    
    begin
        prog = mplayer
        button = VolDown
        config = volume -1
    end
    
    begin
        prog = mplayer
        button = forward
        config = seek +30 0
    end
    
    begin
        prog = mplayer
        button = rewind
        config = seek -30 0
    end
    
    
    begin
        prog = mplayer
        button = skip
        config = seek +15 0
    end
    
    begin
        prog = mplayer
        button = replay
        config = seek -15 0
    end
    
    begin
        prog = mplayer
        button = pause
        config = pause
    end
    
    begin
        prog = mplayer
        button = up
        config = seek +60 0
    end
    
    begin
        prog = mplayer
        button = right
        config = seek +6 0
    end
    
    begin
        prog = mplayer
        button = down
        config = seek -60 0
    end
    
    begin
        prog = mplayer
        button = left
        config = seek -6 0
    end
    
    begin
        prog = mplayer
        button = enter
        config = pause
    end
    
    begin
        prog = mplayer
        button = mute
        config = mute
    end
    
    begin
        prog = mplayer
        button = play
        config = pause
    end
    
    begin
       prog = mplayer
       button = power
       config = quit
    end
    
    begin
       prog = mplayer
       button = stop
       config = quit
    end
    
    begin
       prog = mplayer
       button = home
       config = vo_fullscreen
    end
    
    begin
       prog = mplayer
       button = menu
       config = vo_fullscreen
    end
    
    ##########LAUNCHING BUTTONS#######################
    
    #Launch Myth
    #begin
    #    prog = irexec
    #    button = power
    #    delay= 6
    #    config = /home/supermario/.checkmythrunning.sh
    #end
    
    #Turn TV Off
    #begin
    #    prog = irexec
    #    button = power
    #    config = irsend -d /dev/lircd1 SEND_ONCE Samsung power
    #end
    
    #Put monitor into low power mode & turn off tv
    #begin
    #    prog = irexec
    #    button = back
    #    config = DISPLAY=:0 xset dpms force off; irsend -d /dev/lircd1 SEND_ONCE Samsung power
    #end
    
    #########MythTV######################
    begin 
        prog = mythtv
        button = chanup
        config = PgUp
    end
    
    begin
        prog = mythtv
        button = chandown
        config = PgDown
    end
    
    begin
        prog = mythtv
        button = ok
        config = Return
    end
    
    begin
        prog = mythtv
        button = home
        config = M
    end
    
    begin
        prog = mythtv
        button = menu
        config = M
    end
    
    begin
        prog = mythtv
        button = info
        config = I
    end
    
    begin
        prog = mythtv
        button = VolUp
        repeat = 3
        config = ]
    end
    
    begin
        prog = mythtv
        button = VolDown
        repeat = 3
        config = [
    end
    
    begin
        prog = mythtv
        button = forward
        repeat = 3
        config = >
    end
    
    begin
        prog = mythtv
        button = rewind
        repeat = 3
        config = <
    end
    
    begin
        prog = mythtv
        button = pause
        config = P
    end
    
    begin
        prog = mythtv
        button = up
        repeat = 3
        config = Up
    end
    
    begin
        prog = mythtv
        button = right
        repeat = 3
        config = Right
    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 = enter
        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 = replay
    # Use for backwards commercial skip
        config = Q  
    end
    
    begin
       prog = mythtv
       button = skip
    # Use for forward commercial skip
        config = Z  
    end
    
    begin
       prog = mythtv
       button = exit
       config = D  
    end
    
    begin
        prog = mythtv
        button = mute
        config = |  
    end
    
    begin
        prog = mythtv
        button = guide
        config = S
    end
    
    begin
        prog = mythtv
        button = play
        config = P  
    end
    
    begin
        prog = mythtv
        button = livetv
        config = %
    end
    
    begin
      prog = mythtv
      button = record
      config = R  
    end
    
    begin
       prog = mythtv
       button = rectv
       config = &
    end
    
    begin
       prog = mythtv
       button = dvd
       config = #
    end
    
    begin
       prog = mythtv
       button = caption
       config = T
    end
    
    begin
       prog = mythtv
       button = power
       config = Escape
    end
    
    begin
       prog = mythtv
       button = stop
       config = Escape
    end
    
    begin
       prog = mythtv
       button = back
       config = W
    end
    For MythTV, you need to create a link to this file.
    Code:
    ln -s ~/.lircrc ~/.mythtv/lircrc
    I didn't need to do most of the stuff on that How-To, and my hadrware.conf was formatted differently, so I left it alone.

    Hope this helps you out. I want to get this working with Open Office Presentation, that would be so cool!

    Edit: To record your own button mappings, use this command.
    Code:
    sudo irrecord -d /dev/lirc0 lircd.conf
    Last edited by waterhead; 05-27-2009 at 10:27 PM.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  6. #6
    Just Joined!
    Join Date
    May 2009
    Posts
    19

    Smile Hey!!!!

    I got it to work! thanks !

    one thing thoug! is there a way to give it some kind of protection against reconfirguring . for example if someone was to go to the myth settings and hit on the infrared devices and pick a remote it would screw it up again. I want to prevent this..

    do I do this by changing the file permisions?

    again thanks a milllion!

    rrichiez

  7. #7
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    You have to have root privileges to change lirc settings, so that would be safe. As for the files in the home folder, they are hidden. Make sure that viewing hidden files is disabled.

    Also, make backup copies of the configuration files. They can be used on other systems too.

    Bye the way, I got it working with this remote:
    Newegg.com - Anyware HA-IR01SV Infrared Certified MCE VISTA Remote Control

    For $23 you can't go wrong. I took it apart and found that it is small enough to mount internally. You just need to adapt an internal USB header cable to where the external cable plugs in. I tested this method and it works. (a little soldering is needed)
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  8. #8
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    I have found a way to get some basic remote functions with Open Office Impress presentations. Thanks to a thread in the Ubuntu forums about using a Macbook remote, I added this to my lircrc file:
    Code:
    ##############################################
    #### Evince y OpenOffice (Presentations) ####
    ##############################################
    
    begin
       prog = irxevent
       button = OK
       #config = Key F11 CurrentWindow
       config = Key F5 CurrentWindow
       repeat = 0
    end
    
    begin
       prog = irxevent
       button = Back
       config = Key Escape CurrentWindow
       repeat = 0
    end
    
    begin
       prog = irxevent
       button = Down
       config = Key Prior CurrentWindow
       repeat = 0
    end
    
    begin
       prog = irxevent
       button = Up
       config = Key Next CurrentWindow
       repeat = 0
    end
    
    begin
       prog = irxevent
       button = Right
       config = Key ctrl-plus CurrentWindow
       repeat = 0
    end
    
    begin
       prog = irxevent
       button = Left
       config = Key ctrl-minus CurrentWindow
       repeat = 0
    end
    I then have to start the irxevent program in a terminal. The OK button switches the presentation to full screen Slide Show mode. The Up/Down arrows move Forward/Back through the slides. And the Back button exits the Slide Show mode.

    The Left/Right arrows don't seem to be working, but you can do a slide presentation with the keys that do work. So I guess mission accomplished!

    Thanks for spurring me to do this. Even if it meant that I didn't do what I was suppose to do today.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...