View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 26 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Jan 11, 2007 11:29 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
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

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Last edited by neutron68 on Sun Jan 14, 2007 8:37 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 12:12 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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?


Top
 Profile  
 
 Post subject: ownership?
PostPosted: Fri Jan 12, 2007 9:52 am 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
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

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 6:32 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 6:46 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
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


Top
 Profile  
 
PostPosted: Fri Jan 12, 2007 9:21 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
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

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
PostPosted: Fri Jan 12, 2007 10:01 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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.


Top
 Profile  
 
 Post subject: thanks for search tips
PostPosted: Fri Jan 12, 2007 10:20 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
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

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 10:30 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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?


Top
 Profile  
 
PostPosted: Fri Jan 12, 2007 11:35 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
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).


Top
 Profile  
 
PostPosted: Fri Jan 12, 2007 11:42 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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\


Top
 Profile  
 
 Post subject: requested info
PostPosted: Sat Jan 13, 2007 10:57 am 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
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.

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 11:39 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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.


Top
 Profile  
 
 Post subject: trying suggestions
PostPosted: Sat Jan 13, 2007 12:36 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
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

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Last edited by neutron68 on Sat Jan 13, 2007 12:41 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject: Re: trying suggestions
PostPosted: Sat Jan 13, 2007 12:40 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 24 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu