LinHES Forums
http://forum.linhes.org/

LIRC after R5D1 to R5E50 upgrade - SOLVED
http://forum.linhes.org/viewtopic.php?f=6&t=13455
Page 1 of 2

Author:  neutron68 [ Thu Jan 11, 2007 11:29 pm ]
Post subject:  LIRC after R5D1 to R5E50 upgrade - SOLVED

Hi,

I'm trying to get my IR remote working again in R5E50. I got it to work fine with an RS-232 IR receiver in R5D1.
In order to get it working in R5D1, I had to make sure that the last lines in the /etc/init.d/bootmisc.sh file were as follows:
Code:
setserial /dev/ttyS0 uart none
modprobe lirc_serial
/usr/sbin/lircd

For version R5C7, the last lines had to be
Code:
setserial /dev/ttyS0 uart none
modprobe lirc_serial
/usr/local/sbin/lircd

Does the last line need to point somewhere else in R5E50?? I searched for some clue, but have found none. Does anyone know what the new LIRC serial specifics are?

Eric

Author:  tjc [ Fri Jan 12, 2007 12:12 am ]
Post subject: 

Did you check the ownership/permissions on the serial device to make sure that the mythtv user can access it (mythtv needs to be in the dialout group)? Did you check on the udev dictated config changes mentioned in the upgrade hints posting?

Author:  neutron68 [ Fri Jan 12, 2007 9:52 am ]
Post subject:  ownership?

tjc wrote:
Did you check the ownership/permissions on the serial device to make sure that the mythtv user can access it (mythtv needs to be in the dialout group)? Did you check on the udev dictated config changes mentioned in the upgrade hints posting?


No, I've never had to check/change ownership of any device before, so I am not familiar with the procedure.
All the ownership settings are out-of-the-box settings which originated in my install of R5C7 and followed into the upgrade to R5D1 and now exist as R5E50. So, they are Cecil's out-of-box Knoppmyth settings.

Yes, I had a printed copy of the R5E50 Upgrade Hints right next to me as I performed the upgrade last night. I specifically looked for headings and keywords related to LIRC remote controls and serial IR receivers and saw none.

During the install/upgrade process I told the installer that I had the RCA 6in1 remote. Was that a mistake? Should I have answered, NONE to the IR remote question?

I'm looking at the upgrade hints again now, and I don't see any mention of device ownership. In the Known Changes section I do see a "section 3" on hot-pluggable and USB devices. Is this where I should focus my attention?

I just looked at the /etc/lirc/hardware.conf file, and there is no reference to "/dev/lirc" or "/dev/usb/hiddev0" in that file.

The last lines of the /etc/lirc/hardware.conf file are
Code:
DEVICE="/dev/ttyS0"
MODULES="lirc_dev lirc_serial"

Do you think that executing the lirc-reconfig.sh script will fix the setup?

Eric

Author:  tjc [ Fri Jan 12, 2007 6:32 pm ]
Post subject: 

See this thread. http://mysettopbox.tv/phpBB2/viewtopic.php?t=13419&highlight=dialout Searching for lirc and R5E50 should have turned up a couple others.

Author:  Greg Frost [ Fri Jan 12, 2007 6:46 pm ]
Post subject: 

With the new udev setup, the lirc device that gets created when lirc-serial is loaded is /dev/lirc0 instead of what most of the lirc tools use as the default /dev/lirc. As a result, you must tell them which device to use. Make the command to run lircd:
/usr/local/bin/lircd -d /dev/lirc0

Author:  neutron68 [ Fri Jan 12, 2007 9:21 pm ]
Post subject:  phpbb search function SUCKS ASS

Thanks for the tips. They did not turn up in my searches of this forum.

Let me just get this out of the way...The search function in phpbb SUCKS ASS! When I type "lirc R5E50" in the serach box, I get over 100 hits and very few of them were relavant. Can we use Google to search this forum?

Now, back to the lirc topic, if I get the meaning of your messages: tjc, you are telling me I need to change ownership of the serial device and Greg Frost, you are telling me I need to define the serial device as /dev/lirc0 in the /etc/lirc/hardware.conf file. Do I need to do both?

So, tjc, all I need to do is type this as root?

Code:
useradd -D -G dialout mythtv


And Greg Frost, I need to change the last lines in my /etc/lirc/hardware.conf file?
Code:
DEVICE="/dev/lirc0"
MODULES="lirc_dev lirc_serial"


Please let me know if I understand correctly.

Guidence appreciated
Eric

Author:  tjc [ Fri Jan 12, 2007 10:01 pm ]
Post subject:  Re: phpbb search function SUCKS ASS

neutron68 wrote:
When I type "lirc R5E50" in the serach box, I get over 100 hits and very few of them were relavant. Can we use Google to search this forum?

1) Always use the "Search for all terms" check box. That would reduce the number to 27. After that, most recent threads are likely to have the most current information or links to it in past threads. It'll never be google, but it's not that bad if you use just a bit of technique.
2) No. The "subscription only" policy which Cecil instituted to block some truly obnoxious behavior precludes it. Sorry.

Time to repeat the secrets of my search mojo:
Quote:
The 3 key elements of my search mojo are:

1) Use the keywords that you'd use in a message title or that people tell you to try.
2) Try some basic synonyms and singular versus plural changes.
3) Use the "Search for all terms" radio button.


The rest looks about right.

Author:  neutron68 [ Fri Jan 12, 2007 10:20 pm ]
Post subject:  thanks for search tips

OK on the serach mojo. I'll use those tricks.

I did both things I asked about in the message above (and then rebooted) and the serial IR receiver still isn't working. :(

Do I need to add the new device owner of dialout to a file somewhere or was typing the command
Code:
useradd -D -G dialout mythtv
as root, supposed to work?

Discouraged,
Eric

Author:  tjc [ Fri Jan 12, 2007 10:30 pm ]
Post subject: 

You may need to use "/dev/ttyS0" or "/dev/ttyS1".

What does "ls -al /dev/lirc* /dev/ttyS?" show?

What does "grep dialout /etc/group" show?

Did you reboot after making those changes?

Author:  Greg Frost [ Fri Jan 12, 2007 11:35 pm ]
Post subject:  Re: phpbb search function SUCKS ASS

neutron68 wrote:
And Greg Frost, I need to change the last lines in my /etc/lirc/hardware.conf file?
Code:
DEVICE="/dev/lirc0"
MODULES="lirc_dev lirc_serial"


Please let me know if I understand correctly.

Guidence appreciated
Eric
Yes, but if you do it that way, you want to remove the call to lircd in your bootmisc.sh file (it should be started by /etc/init.d/lirc - You can call "/etc/init.d/lirc start" as root to start it interactively).
Also check that the /etc/init.d/lirc script actually passes the LIRCD_ARGS to the daemon (otherwise there is no point setting DEVICE= in hardware.conf).

Author:  tjc [ Fri Jan 12, 2007 11:42 pm ]
Post subject:  Re: phpbb search function SUCKS ASS

Greg Frost wrote:
Also check that the /etc/init.d/lirc script actually passes the LIRCD_ARGS to the daemon (otherwise there is no point setting DEVICE= in hardware.conf).

He means that the line in /etc/init.d/lirc should look like this:
Code:
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- $LIRCD_ARGS\

Author:  neutron68 [ Sat Jan 13, 2007 10:57 am ]
Post subject:  requested info

tjc wrote:
You may need to use "/dev/ttyS0" or "/dev/ttyS1".

What does "ls -al /dev/lirc* /dev/ttyS?" show?

What does "grep dialout /etc/group" show?

Did you reboot after making those changes?

Yes, I did reboot after I made the changes - just to make sure.
Here is the output you requested.

Code:
root@mythtv:~# ls -al /dev/lirc* /dev/ttyS?
crw-rw---- 1 root video   61,  0 Jan 13 10:37 /dev/lirc0
srw-rw-rw- 1 root root         0 Jan 13 10:37 /dev/lircd
crw-rw---- 1 root dialout  4, 64 Jan 13 10:37 /dev/ttyS0
crw-rw---- 1 root dialout  4, 65 Jan 13 10:37 /dev/ttyS1
crw-rw---- 1 root dialout  4, 66 Jan 13 10:37 /dev/ttyS2
crw-rw---- 1 root dialout  4, 67 Jan 13 10:37 /dev/ttyS3

Code:
root@mythtv:~# grep dialout /etc/group
dialout:x:20:

The end of my /etc/lirc/hardware.conf file looks like this:
Code:
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
DEVICE="/dev/lirc0"
MODULES="lirc_dev lirc_serial"

The end of my /etc/init.d/bootmisc.sh file looks like this:
Code:
setserial /dev/ttyS0 uart none
modprobe lirc_serial
/usr/sbin/lircd

The related section of the /etc/init.d/lirc file looks like this:
Code:
case "$1" in
  start)
    if [ "$LOAD_MODULES" = "true" ] && [ "$START_LIRCD" = "true" ]; then
        load_modules $MODULES
    fi
    echo -n "Starting lirc daemon:"
    if $START_LIRCD; then
      echo -n " lircd"
      LIRCD_ARGS=`build_args $LIRCD_ARGS`
      start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- $LIRCD_ARGS \
                < /dev/null
    fi
    if $START_LIRCMD; then
      echo -n " lircmd"
      start-stop-daemon --start --quiet --exec /usr/sbin/lircmd \
                < /dev/null
    fi
    echo "."
    ;;
  stop)
    echo -n "Stopping lirc daemon:"
    echo -n " lircmd"
    start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
    echo -n " lircd"
    start-stop-daemon --stop --quiet --exec /usr/sbin/lircd
    echo "."
    ;;
  reload|force-reload)
    if $START_LIRCD; then
      start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircd
    fi
    if $START_LIRCMD; then
      start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircmd
    fi
    ;;
  restart)
    $0 stop
    $0 start
    ;;
  *)
    echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}"
    exit 1
esac
I expect that some of the lines in these files need to be changed somehow. Which ones? Please let me know if you want more information.

Author:  tjc [ Sat Jan 13, 2007 11:39 am ]
Post subject: 

Try commenting out the last two lines in /etc/init.d/bootmisc.sh and rebooting.

If that doesn't do it, change the DEVICE to /dev/ttyS0 and reboot.

Author:  neutron68 [ Sat Jan 13, 2007 12:36 pm ]
Post subject:  trying suggestions

tjc wrote:
Try commenting out the last two lines in /etc/init.d/bootmisc.sh and rebooting.

If that doesn't do it, change the DEVICE to /dev/ttyS0 and reboot.


I just tried commenting out the last 2 lines in /etc/init.d/bootmisc.sh and rebooting. No joy.
I uncommented them again.

I just tried changing the DEVICE= to "/dev/ttyS0" in the /etc/lirc/hardware.conf file and rebooted. No joy.
I wil change it back to "/dev/lirc0".

What about going in and manually editing the /etc/group file so that it says?
Code:
dialout:x:20: mythtv

Author:  tjc [ Sat Jan 13, 2007 12:40 pm ]
Post subject:  Re: trying suggestions

neutron68 wrote:
What about going in and manually editing the /etc/group file so that it says:
Code:
dialout:x:20: mythtv

No spaces. It should look like this:
Code:
root@black2:~# grep dialout /etc/group
dialout:x:20:mythtv

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/