View unanswered posts    View active topics

All times are UTC - 6 hours





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

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: didn't work
PostPosted: Sat Jan 13, 2007 12:56 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
I manually inserted mythtv into the /etc/group file and rebooted. Now the grep command gives the desired result, but the remote still doesn't work.
Code:
root@mythtv:~# grep dialout /etc/group
dialout:x:20:mythtv

Do we know that udev works properly with serial port devices and LIRC?

The http://www.lirc.org/html/install.html page says the following
Quote:
When you are using devfs or sysfs with your kernel, the /dev/lirc device node will disappear again once you reboot your machine. In that case the LIRC kernel module will generate the required entry every time it is loaded. But the device node won't be visible as /dev/lirc, but might be located in a different location like e.g. /dev/lirc/0. Please be aware of this fact when starting programs that access the device node like mode2 or lircd. You will have to use the --device command line option of these programs to point them to the correct location. When using sysfs together with the udev daemon you should copy the lirc.rules file located in the contrib directory of the source package to /etc/udev/rules.d/. This will make sure that the device node will be created.

So, perhaps we need to copy this lirc.rules file as suggested?

_________________
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 3:55 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 3:06 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
Ok, from the beginning. Remove those last two lines in bootmisc.sh. They are not needed. The /etc/init.d/lirc script should load the module and start lircd. Doing it in bootmisc.sh too is going to cause confusion.

Diagnosing serial port receivers:

Reboot. First thing to check is the lirc_serial module loaded?
Code:
lsmod | grep lirc_serial
dmesg | grep lirc


Next thing to check: Is it receiving a signal?
Code:
mode2 -d /dev/lirc0
Then press buttons to see mark/space information. If you see nothing then you have a problem.

If that works, next thing to check is is lircd running?
Code:
ps aux | grep lircd


Is lircd working?
Code:
irw
Again press buttons and see if you get a line displayed for each button that you press.

Let us know exactly which check fails first.


Top
 Profile  
 
 Post subject: Re: didn't work
PostPosted: Sat Jan 13, 2007 3:10 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
neutron68 wrote:
Do we know that udev works properly with serial port devices and LIRC?
It works fine with udev out of the box. I have tested this with my own serial receiver.


Top
 Profile  
 
 Post subject: requested information
PostPosted: Sat Jan 13, 2007 3:39 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
Greg Frost wrote:
Let us know exactly which check fails first.

NOTE: All the hardware is plugged together the same as it was a few days ago when I was still running R5D1. In fact, it was never disconnected. Only the software has been changed.

OK. I removed the last 2 lines in the miscboot.sh file and rebooted.

Code:
root@mythtv:~# lsmod | grep lirc_serial
lirc_serial            16128  1
lirc_dev               16628  1 lirc_serial

Code:
root@mythtv:~# dmesg | grep lirc
lirc_dev: IR Remote Control driver registered, at major 61
lirc_serial: auto-detected active low receiver
lirc_dev: lirc_register_plugin: sample_rate: 0

Code:
root@mythtv:~# mode2 -d /dev/lirc0
mode2: error opening /dev/lirc0
mode2: Device or resource busy

Code:
root@mythtv:~# irw
(no response)

_________________
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: Sat Jan 13, 2007 4:53 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
neutron68 wrote:
Code:
root@mythtv:~# mode2 -d /dev/lirc0
mode2: error opening /dev/lirc0
mode2: Device or resource busy
This probably means that lircd has started properly and is using /dev/lirc0. That is good. But to test that your receiver is working properly, you want to stop lircd and then use mode2.
Code:
/etc/init.d/lirc stop
mode2 -d /dev/lirc0
Then press buttons again and report what happens.


Top
 Profile  
 
PostPosted: Sat Jan 13, 2007 7:45 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
Thanks for your attention Greg. From my scanning of the forum, you are the LIRC expert, so I am in good hands!

Greg Frost wrote:
...you want to stop lircd and then use mode2. Then press buttons again and report what happens.

Code:
root@mythtv:~# /etc/init.d/lirc stop
Stopping lirc daemon: lircmd lircd.
root@mythtv:~# mode2 -d /dev/lirc0
(nothing happens when buttons are pressed)

Oh, I guess I hit the wall, here.

I wonder if my upgrade from R5D1 is the problem? I have the /etc/init.d/bootmisc.sh file as part of my restore files (in tjc's backup.list file).

Perhaps I need to get a "stock R5E50" version of the /etc/init.d/bootmisc.sh file? Does that sound reasonable? (can I extract this from the cd or can someone send it to me?)

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: Sat Jan 13, 2007 10:22 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
I have sent you a bootmisc.sh.


Top
 Profile  
 
PostPosted: Sun Jan 14, 2007 12:19 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
Greg Frost wrote:
I have sent you a bootmisc.sh.

Thanks very much! Logged in as root, and using nano, I just replaced the contents of my bootmisc.sh file with the version you sent me but left the last few lines as:
Code:
# enable DMA
 /sbin/hdparm -qd1 /dev/hda
 /sbin/hdparm -qd1 /dev/hdb
#
setserial /dev/ttyS0 uart none

I rebooted and tried the tests that you suggested before and got no response from the mode2 command, again.
After that, I rebooted several times and tried the tests again - no change. After that, I decided I didn't like the bootsplash screen and decided to remove it from the system by undoing what the add_bootsplash.sh script does. Then, I decided to remove the serial cable and IR receiver from the Mythtv computer and move it to another computer to test it. The IR receiver worked with a virgin auto-install of R5E50 on the other computer. So, I moved it back to my main Mythtv computer and reran your suggested tests.
:shock: JOY!
Code:
root@mythtv:~# /etc/init.d/lirc stop
Stopping lirc daemon: lircmd lircd.
root@mythtv:~# mode2 -d /dev/lirc0
space 2100314
pulse 4051
space 3928
pulse 560
space 1929
pulse 571
space 1924
pulse 569
space 1925
pulse 578
space 1918
pulse 577
space 926
pulse 484
space 1007
pulse 574
space 1921
pulse 574
space 1921
pulse 578
space 923
pulse 524
etc...


It's working now. I wonder if an iffy connection on my serial cable was the problem all along? :oops: I hope not - after I stated that I was sure my hardware setup had not changed since I was running R5D1 just a few days ago.

The bottom line is that the LIRC is working correctly with udev and all the settings are as you said they should be.

THANKS FOR ALL YOUR TROUBLESHOOTING HELP Greg and tjc!

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: Thu Jan 18, 2007 8:22 am 
Offline
Joined: Mon Nov 07, 2005 10:09 am
Posts: 153
can you summarize your experience for others. Like what, if anything, did you end up changing from your original install. thanks.


Top
 Profile  
 
PostPosted: Thu Jan 18, 2007 9:22 am 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
randomhtpcguy wrote:
can you summarize your experience for others. Like what, if anything, did you end up changing from your original install. thanks.

Well, I'm not 100% sure what the problem was, but my theory is:

1. part of the problem was my using a backup-restored version of the /etc/init.d/bootmisc.sh file from my R5D1 install. I did an automatic install of R5E50 to a blank hard drive in a different pc (to test my IR receiver with a stock R5E50 install) and my IR receiver and IR remote worked fine after only restoring my custom-tweaked LIRC config files. So, replacing my old /etc/init.d/bootmisc.sh file, with the "stock" version from R5E50 seemed to be important.

2. part of the problem may have been the connection of my serial IR receiver. The serial cable may have worked itself loose when I was using my KVM switch during the upgrade process. The KVM switch is down on the floor next to my Mythtv computer. Unplugging and replugging the IR receiver may have been part of the fix.

3. I did manually edit the /etc/group file so that mythtv was the owner of the dialout group (see top of this thread page), but since a stock install of R5E50 didn't have this addition, I don't think it was important to fixing my problem.

Based on my experimenting, it looks like a stock install of R5E50 works fine with a serial IR receiver and IR remote, but an upgrade may not work if you try and restore too many system files from a previous version.

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 Thu Jan 18, 2007 1:47 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 18, 2007 9:43 am 
Offline
Joined: Mon Nov 07, 2005 10:09 am
Posts: 153
thanks. my /etc/group file didn't have mythtv as the owner of the dialout group after auto upgrade either.
I guess since you did a clean auto install and manually copied your /etc/init.d/bootmisc.sh that could have been the problem.

I think my lirc.conf and .lircrc files were copied automatically during the "auto upgrade", but i'm not sure about my bootmisc.sh

anyway, glad you got things working.


Top
 Profile  
 

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



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 11 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