Donate Share

MoviX

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

lirc problem (lircd.conf?)

  1. 2003-06-11 16:08:10 UTC
    How can i configure a remote control? I find only a lircrc file that isn't similar with lircd.conf.
    Regards
  2. 2003-06-13 11:44:21 UTC
    You're totally right: I forgot to keep the lircd.conf out of the initrd.gz!

    This means basically that you should add the lircd.conf in the src/movix directory and then add a line in the rc.movix script that copies the lircd.conf from the movix dir to /etc.

    I'll fix this in the future releases of all movix distros.

  3. 2003-06-13 11:57:00 UTC
    Thx, I had just modified Movix. I suppose that the real problem is: lirc is compiled with only support miro tv receiver. I think that the only way is rebulid lirc and compile with an other support.
    Regards
  4. 2003-06-13 11:59:26 UTC
    That's good to know.
    I'll contact the lirc developers to ask if it is possible compiling lircd with support for all possible remotes because it would be a pain having a different copy of lircd for each remote.
  5. 2003-06-14 05:12:51 UTC
    > I'll contact the lirc developers to ask if it is possible compiling lircd with support for all possible remotes because it would be a pain having a different copy of lircd for each remote.

    Yeah! please!!

    I made a Lirc Device (for RS232 serial port). It works great with Lirc!!

    please support the native hardware od lirc :)

    saludos
  6. 2003-06-15 10:26:40 UTC
    Hi,
    could you explain how to configure Lirc to contrl Movix?
    I have a RS232 IR receiver, but I don't know haw to configure to assign a remote key to an action, neither how to load lirc while loading movix to RAM.

    Thanks a lot for any help!
  7. 2003-06-16 13:54:02 UTC
    I've resolved lirc_serial problem. I describe in some points the way:
    1-recompile lirc package with serial support (lirc_serial.o)
    2-you have to gunzip and remount initrd.gz and add lirc_serial.o module in /lib/modules/2.4.20/misc (after all you have to compress initrd again)
    3-modify rc.lirc (you can find it in "yourpath/movixXX/src/movix) in this way:
    ---cut here
    mknod /dev/lirc c 61 0;
    if [ -e /dev/lirc ] ; then
    setserial /dev/ttyS0 uart none
    insmod lirc_serial
    lircd -d /dev/lirc
    else
    rmmod lirc_serial
    fi
    ---cut here
    So:
    a- I force os to build a correct device (devfs doesn't make its job well :) )
    b-configure serial device (setserial..)
    4-you have to compress initrd image
    5-create your lircd.conf file and put it to "yourpath/movixXX/src/movix"
    6-edit rc.movix and add:
    cp -a /cdrom/movix/lircd.conf /etc/
    7-adjust your lircrc file
    Now I'll try to control the Movix interface via remote control with irexec (I suppose that I have to write o find some programs to simulate press keys). I'll say you something in the next days.
    Regards, Francesco


    ps:you'll see a "unresolved message" at the next boot time...it isn't a problem (you haven't compile lirc_serial module inside Movix but in your os)
  8. 2003-06-16 14:23:16 UTC
    Mmmm it is probabily to control Movix interface via lircmd..
    Francesco
  9. 2003-06-16 16:42:22 UTC
    Ciao Francesco,
    I'd like to [try to] use your recipe for the eMoviX rc2 version that I'm about to release.

    The only problem is that it is not clear how to detect that a serial remote is attached to the serial port.
    If you know a way pls let me know, otherwise I may just add a boot argument like "REMOTE=serial".

    Of course in MoviX it would be even more interesting, especially if you'll manage to make the remote send commands to the ncurses interface!

    Bye,
    Roberto
  10. 2003-06-17 06:50:45 UTC
    Welcome.
    Maybe it's stiupid question, but how to recompile f.e. lirc in Movix system?
    or You do it in Knoppix?
    Thanks for any answer
  11. 2003-06-17 07:43:30 UTC
    You ave to replace the /usr/sbin/lircd program too, I think.
    I add emovix support for my serial PCTV pro remote, replacing the lirc daemon and his configuration file...

    Anyway, I think that embed a lirc_client support in Movix interface isn't difficult, in the lirc web page there is an example...and is a very good idea!! If you need an help...ask me!



  12. 2003-06-17 09:44:39 UTC
    Mmm...I haven't change lircd daemon. Anyway I control ncurses via irpty. You have to:
    1-add irpty to your bin
    2-create a new (or the same lircrc) configuration file. Example:
    --cut here
    #return#
    begin
    remote = RM-836
    button = 0
    prog = irpty
    repeat = 0
    config = \r
    end
    #j is similar to pagedown#
    #k is similar to pageup#
    begin
    remote = RM-836
    button = VOL-
    prog = irpty
    repeat = 0
    config = \x6A
    end
    #h is similar to page left #
    #l is similar to page right#
    begin
    remote = RM-836
    button = VOL+
    prog = irpty
    repeat = 0
    config = \x68
    end
    --cut here
    In config options I use hex. After all you have to inizialize it in this way:
    irpty /yourpath/yourconfigfile /movixpath/movix.pl
    I think that you can use this on every controller (users have to change only button option).
    Regards, Francesco

    ps:I suppose that you can't recognize serial receiver in automatic way (it is based on a normal serial port and os recognizes it).
  13. 2003-06-17 10:21:18 UTC
    I forget a thing. It's of prime importance that you change the second line of inittab in this way:
    ::respawn:/bin/irpty /etc/irptyrc /usr/local/bin/movix.pl
    Regards, Francesco
  14. 2003-06-21 07:39:44 UTC
    > cp -a /cdrom/movix/lircd.conf /etc/

    can you post a copy of your lircd.conf?
  15. 2003-06-22 11:19:04 UTC
    It's a normal remote config file.
    --cut here
    #
    # this config file was automatically generated
    # using lirc-0.6.3pre4(sir) on Wed Feb 14 04:51:23 2001
    #
    # contributed by John G Ineson
    #
    # brand: Sony
    # model: RM-836
    # supported devices: KV-14T1U
    #

    begin remote

    name RM-836
    bits 9
    flags SPACE_ENC|CONST_LENGTH
    eps 30
    aeps 100

    header 2364 635
    one 1164 639
    zero 562 639
    ptrail 563
    post_data_bits 2
    post_data 0x0
    gap 45001
    min_repeat 3
    toggle_bit 0


    begin codes
    Mute 0x0000000000000052
    Standby 0x0000000000000152
    TV 0x000000000000003A
    Text 0x00000000000001FA
    AV_Text_size 0x000000000000014A
    1 0x0000000000000002
    2 0x0000000000000102
    3 0x0000000000000082
    4 0x0000000000000182
    5 0x0000000000000042
    6 0x0000000000000142
    7 0x00000000000000C2
    8 0x00000000000001C2
    9 0x0000000000000022
    0 0x0000000000000122
    -/-- 0x0000000000000172
    Info_Reveal 0x00000000000000BA
    Menu 0x000000000000000E
    Green 0x0000000000000167
    Blue 0x00000000000001E7
    Yellow 0x00000000000000E7
    Red 0x0000000000000067
    Vol+ 0x0000000000000092
    Vol- 0x0000000000000192
    Channel+ 0x0000000000000012
    Channel- 0x0000000000000112
    end codes

    end remote

    Ciao, Francesco
  16. 2003-06-22 19:22:41 UTC
    In MoviX is modul lirc_gpio missing for TV cards with IRC. Why?
  17. 2003-06-22 23:38:23 UTC
    > In MoviX is modul lirc_gpio missing for TV cards with IRC. Why?

    just did not know it was useful for anything :-)
    I'll add it in the next release
  18. 2003-07-01 15:09:53 UTC
    Hi Francesco,
    I implemented your idea and it works great!!!
    I included it in the last rc2 version of MoviX, pls try it and let me know.

    BTW, to use a serial remote you should pass the "REMOTE=serial" parameter at the boot.
    I sligthly modified your procedure for loading serial remotes because I read on the net that devfsd should really be able to create by itself the remote device once you load lirc_serial: the new device should be called
    /dev/lirc/0

    Once again, please test it and let me know!

    Thanks a lot for your help,
    Roberto
  19. 2003-07-02 06:48:23 UTC
    Welcome.
    I have two question:

    1. I did as you wrote. But I have comunicate:
    Device is busy
    when I do: rmmod lirc_serial
    what is it?

    2. I have "hand made" remote (it works in Win) and I want to configure it in movix, but there is no irrec program. What is your software configuration to do it? Do you use newest Slackware distribution or any else?

    Thanks
    Darek
  20. 2003-07-02 10:03:11 UTC
    > I did as you wrote. But I have comunicate:
    > Device is busy

    I don't know. I added support but could not test it since I have no serial remote :-(
    I hope that some owner of serial remotes will test it and fix it and report :-)

    > there is no irrec program

    I guess you mean you need irrec to generate a lircd.conf for you remote, right?
    Probably the best idea would be doing that in some linux box and then import in MoviX the correct lircd.conf, but if you think it makes sense I may add irrec to the distro.

    I'm developing on a slack8.1 box but soon thanks to Balazs we should have some nice 'UserModeLinux' environment to develop in a more systematic way.
  21. 2003-07-03 06:23:43 UTC
    Yes.
    Now, when MoviX can be on Hdd it make sens to add irrecord and maybe mode2 to test hardware.

    Maybe you can add mc? Now I use vi to edit movix.pl, but it isn't very friendly :)

    Thanks
    Darek
  22. 2003-07-07 21:57:54 UTC
    Is there setserial in Movix2?
    I don't see it. And my serial remote doesn't work.
    Please help.
    Darek
  23. 2003-07-08 21:40:51 UTC
    Hello.
    I really cann't find setserial. Is there anyone who use serial remote in movix2?
  24. 2003-07-08 22:28:17 UTC
    > Maybe you can add mc? Now I use vi to edit movix.pl, but it isn't very friendly :)

    Don't know this mc, is the "midnight commander"?
    Is it very big?

    > Is there setserial in Movix2? I don't see it.

    oops... if it's not there then it means I forgot it, I'll fix that asap!

  25. 2003-07-08 22:36:50 UTC
    yes. Midnight Commander. it is more friendly :)

    I copy setserial from my RedHat 7.3. Did I do correct?

    thanks
< Previous | 1 | 2 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.