View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 15 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Jun 04, 2005 12:55 pm 
Offline
Joined: Sun Nov 14, 2004 10:04 am
Posts: 263
Location: Toronto, Canada
Hi all:

Well, after getting my PVR-150 remote working with irw, I figured it would be a breeze
to get it to work in Myth. The remote is still not working in Myth.

I copied the lircrc file for the PVR-150 made by Robert.pdx to the folders:

/etc/mythtv

/home/mythtv

/home/mythtv/.mythtv

However, I noticed that the " .lircrc " in the /home/mythtv folder is a symlink pointing to
/home/mythtv/.mythtv/lircrc . Is that wrong-is it supposed to be a file, and not a symlink? Is that likely what's causing the remote not to work in Myth?

Could someone please indicate which lircrc files exactly are supposed to contain what and where.
So many different versions of files is confusing to us Windoze converts. I think we could actually
use some kind of document that describes all of the common configuration files and,
the purpose of each one. I, for one, would be happy to help write this, though I'd need
help as I don't know much of it myself.


Thanks

shplad

_________________
KnoppMyth R5C7
Abit NF7-S
Athlon XP Mobile 2500+
Hauppauge PVR-150 + PVR-150MCE
nVidia Geforce 6600GT
Samsung Spinpoint SATA 120GB
NEC ND-3520A DVD
Seasonic Super Tornado 350
BTC 9019URF Wireless Kbd. w. Joystick


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 04, 2005 4:11 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
there is only one file. that is what the symlink is for. so that you can only have one file. because mythtv looks for the file in the .mythtv folder and other programs like irxevent mplayer xine etc. expect to find it at ~.lircrc so with a symlink you only have to have one file instead of having one for mythtv and one for other programs.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 04, 2005 9:00 pm 
Offline
Joined: Sun Nov 14, 2004 10:04 am
Posts: 263
Location: Toronto, Canada
Xsecrets:

Thanks for clarifying that for me. Now if only I could get Myth to work with the remote. Any suggestions?


shplad


Xsecrets wrote:
there is only one file. that is what the symlink is for. so that you can only have one file. because mythtv looks for the file in the .mythtv folder and other programs like irxevent mplayer xine etc. expect to find it at ~.lircrc so with a symlink you only have to have one file instead of having one for mythtv and one for other programs.

_________________
KnoppMyth R5C7
Abit NF7-S
Athlon XP Mobile 2500+
Hauppauge PVR-150 + PVR-150MCE
nVidia Geforce 6600GT
Samsung Spinpoint SATA 120GB
NEC ND-3520A DVD
Seasonic Super Tornado 350
BTC 9019URF Wireless Kbd. w. Joystick


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 12, 2005 8:22 pm 
Offline
Joined: Sun Nov 14, 2004 10:04 am
Posts: 263
Location: Toronto, Canada
Anyone still out there? I still have the same symptoms-irw shows all keypresses. However, nothing registers in MythTV.

I notice something, though-If I try to start mythfrontend from a console when I use the lircrc for the PVR-150, I get this:

Code:
 mythtv@box:~$ mythfrontend
2005-07-12 21:58:46.721 mythfrontend version: 0.17.20050130-1 www.mythtv.org
2005-07-12 21:58:46.722 Enabled verbose msgs : important general
2005-07-12 21:58:46.814 Switching to square mode (blue)
Found 2 Xinerama Screens.
Using first Xinerama screen, 800x600+0+0
mythtv: unknown token "name" in /home/mythtv/.mythtv/lircrc:16 ignored
mythtv: unknown token "bits" in /home/mythtv/.mythtv/lircrc:17 ignored
mythtv: unknown token "flags" in /home/mythtv/.mythtv/lircrc:18 ignored
mythtv: unknown token "eps" in /home/mythtv/.mythtv/lircrc:19 ignored
mythtv: unknown token "aeps" in /home/mythtv/.mythtv/lircrc:20 ignored
mythtv: unexpected token in line /home/mythtv/.mythtv/lircrc:22
mythtv: unexpected token in line /home/mythtv/.mythtv/lircrc:23
mythtv: unknown token "gap" in /home/mythtv/.mythtv/lircrc:24 ignored
mythtv: unknown token "min_repeat" in /home/mythtv/.mythtv/lircrc:25 ignored
mythtv: unknown token "toggle_bit" in /home/mythtv/.mythtv/lircrc:26 ignored
mythtv: bad file format, /home/mythtv/.mythtv/lircrc:28
Failed to read lirc config /home/mythtv/.mythtv/lircrc for mythtv
2005-07-12 21:58:46.946 Joystick disabled.
2005-07-12 21:58:46.963 Registering Internal as a media playback plugin.
2005-07-12 21:58:46.975 Registering MythDVD DVD Media Handler as a media handler
2005-07-12 21:58:46.975 Registering MythDVD VCD Media Handler as a media handler
2005-07-12 21:58:47.512 Registering MythMusic Media Handler as a media handler
2005-07-12 21:58:50.767 Connecting to backend server: 127.0.0.1:6543 (try 1 of 5)
2005-07-12 21:58:50.775 Using protocol version 14
mythtv@box:~$


Now, I figure this must be the problem-but why would it yield all those unknown token errors?


Thanks again for any help.


shplad

_________________
KnoppMyth R5C7
Abit NF7-S
Athlon XP Mobile 2500+
Hauppauge PVR-150 + PVR-150MCE
nVidia Geforce 6600GT
Samsung Spinpoint SATA 120GB
NEC ND-3520A DVD
Seasonic Super Tornado 350
BTC 9019URF Wireless Kbd. w. Joystick


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 12, 2005 9:49 pm 
Offline
Joined: Sat May 14, 2005 12:25 am
Posts: 51
Location: Portland, Oregon
I honestly don't know the error exactly, but it sounds like a parsing error. (parser/compiler programmers use the term token referring to language keywords)

I would check the lircrc file for missing or extra keywords. Maybe try a new copy of lircrc. I suspect the file has been corrupted somehow.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 13, 2005 1:29 pm 
Offline
Joined: Sun Nov 14, 2004 10:04 am
Posts: 263
Location: Toronto, Canada
I tried that, oh about 6 times. Still no joy. I just don't get it.

Anyone have any other ideas? Should I have a go at removing all traces of lirc and reinstalling again?

shplad



robert.pdx wrote:
I honestly don't know the error exactly, but it sounds like a parsing error. (parser/compiler programmers use the term token referring to language keywords)

I would check the lircrc file for missing or extra keywords. Maybe try a new copy of lircrc. I suspect the file has been corrupted somehow.

_________________
KnoppMyth R5C7
Abit NF7-S
Athlon XP Mobile 2500+
Hauppauge PVR-150 + PVR-150MCE
nVidia Geforce 6600GT
Samsung Spinpoint SATA 120GB
NEC ND-3520A DVD
Seasonic Super Tornado 350
BTC 9019URF Wireless Kbd. w. Joystick


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 4:18 pm 
Offline
Joined: Sun Aug 07, 2005 4:06 pm
Posts: 3
shplad wrote:
Anyone still out there? I still have the same symptoms-irw shows all keypresses. However, nothing registers in MythTV.

I notice something, though-If I try to start mythfrontend from a console when I use the lircrc for the PVR-150, I get this:

Code:
mythtv: bad file format, /home/mythtv/.mythtv/lircrc:28
Failed to read lirc config /home/mythtv/.mythtv/lircrc for mythtv




I have exactly the same problem. Do you solve this in the meantime ?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 4:51 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Go to line 28 and start looking backwards for an obvious syntax error... I know that doesn't sound terribly helpful but it's what I'd do. The syntax isn't all that complex, just by inspection it seems to be mostly begin - end blocks, with assignments in them. It looks like they want spaces around the '=' and # comments need to start in the first column of a line. Value keywords within each block seem to be "prog", "button", "config", and "repeat". Find something that doesn't match that. Also try looking for "control" characters or other damage...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 7:14 pm 
Offline
Joined: Sun Nov 14, 2004 10:04 am
Posts: 263
Location: Toronto, Canada
Thanks tjc:

Sorry, I haven't been back here in a while. There were no new posts to this thread for quite a while,
so I just ignored it. I actually have lirc working...sort of...

For some bizarre reason, it'll work when I first turn boot the Mythbox for about 10 minutes,
then it suddenly stops working. And lircd is still running, at least top says so. If I try to kill lircd
and run it again, it will run, but neither irw nor myth will acknowledge any keypresses.

So after thinking about it long and hard, I'm going to completely remove all traces of lirc
and install it again from scratch. As soon as I find time. :-)

Thanks again for your help, though.

shplad




tjc wrote:
Go to line 28 and start looking backwards for an obvious syntax error... I know that doesn't sound terribly helpful but it's what I'd do. The syntax isn't all that complex, just by inspection it seems to be mostly begin - end blocks, with assignments in them. It looks like they want spaces around the '=' and # comments need to start in the first column of a line. Value keywords within each block seem to be "prog", "button", "config", and "repeat". Find something that doesn't match that. Also try looking for "control" characters or other damage...

_________________
KnoppMyth R5C7
Abit NF7-S
Athlon XP Mobile 2500+
Hauppauge PVR-150 + PVR-150MCE
nVidia Geforce 6600GT
Samsung Spinpoint SATA 120GB
NEC ND-3520A DVD
Seasonic Super Tornado 350
BTC 9019URF Wireless Kbd. w. Joystick


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 10:18 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Well actually my response was aimed more to akenathon ... Getting the same error message probably indicates the same issue in the file. Do you remember what you had to fix?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 08, 2005 2:52 am 
Offline
Joined: Sun Aug 07, 2005 4:06 pm
Posts: 3
tjc wrote:
Well actually my response was aimed more to akenathon ... Getting the same error message probably indicates the same issue in the file. Do you remember what you had to fix?



First of all I will say that I am using an unique lircrc file.
This is /root/.lircrc

then i have a symlink in the .mythtv directory:
Code:
sun .mythtv # ls -al lircrc
lrwxrwxrwx  1 root root 13 Aug  8 00:05 lircrc -> /root/.lircrc


Well I try to semplify my lircrc config file.

Code:
begin
prog = mythtv
button = UP
repeat = 4
config = Up
end



And these are the messages when I start mythfrontend...

Code:
" in /root/.mythtv/lircrc:1 ignored
mythtv: bad file format, /root/.mythtv/lircrc:2
Failed to read lirc config /root/.mythtv/lircrc for mythtv


I really do not understand the first line...

Code:
" in /root/.mythtv/lircrc:1 ignored


It seems that the begin statement is not recognized.

In fact when i try:

Code:
TEST_TEST
prog = mythtv
button = UP
repeat = 4
config = Up
end


The result is the same:

Code:
" in /root/.mythtv/lircrc:1 ignored
mythtv: bad file format, /root/.mythtv/lircrc:2
Failed to read lirc config /root/.mythtv/lircrc for mythtv


To be absolutely sure that I am editing the correct config file I insert some blanks to the top of the lircrc...

Code:


TEST_TEST
prog = mythtv
button = UP
repeat = 4
config = Up
END


log messages...

Code:
" in /root/.mythtv/lircrc:1 ignored
" in /root/.mythtv/lircrc:2 ignored
" in /root/.mythtv/lircrc:3 ignored
mythtv: bad file format, /root/.mythtv/lircrc:4
Failed to read lirc config /root/.mythtv/lircrc for mythtv


Do someone know were is the source code that make the parse of the lircrc config file ? This is my last option :((


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 08, 2005 7:14 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
well I wouldn't think it would work at all when mythtv is run as the user mythtv he won't have any access to the /root/.lircrc file even if you do have a symlink unless you chmod'd it 777 also knoppmyth is setup to use /home/mytht/.mythtv/lircrc which is then symlinked back to /home/mythtv/.lircrc cause at least previously mythtv would not use the /home/mythtv/.lircrc for some reason. Any particular reason you deciced to put the file in /root ? lirc really should have no need to run as root. on a knoppmyth box.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 08, 2005 7:30 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
What does:
Code:
hd /root/.mythtv/lircrc
show? I'm guessing you've got some funky stuff in there like MS-Windows CR-LF EOL sequences (0d oa) rather than Unix/Linux LF (0a) or maybe even VT (0b)....


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 09, 2005 8:22 am 
Offline
Joined: Sun Aug 07, 2005 4:06 pm
Posts: 3
tjc wrote:
What does:
Code:
hd /root/.mythtv/lircrc
show? I'm guessing you've got some funky stuff in there like MS-Windows CR-LF EOL sequences (0d oa) rather than Unix/Linux LF (0a) or maybe even VT (0b)....


That is the problem ! There are some CR-LF (0a0d) in the .lircrc ...

Code:
sun root # hexdump .lircrc
0000000 0a0d 0a0d 4554 5453 545f 5345 0d54 700a
0000010 6f72 2067 203d 796d 6874 7674 0a0d 7562
0000020 7474 6e6f 3d20 5520 0d50 720a 7065 6165
0000030 2074 203d 0d34 630a 6e6f 6966 2067 203d
0000040 7055 0a0d 4e45 0d44 000a


I edit the .lircrc with vi. I re-insert the LF.. and now the hexdump is...

Code:
sun root # hexdump .lircrc
0000000 6562 6967 0a6e 7270 676f 3d20 6d20 7479
0000010 7468 0a76 7562 7474 6e6f 3d20 5520 0a50
0000020 6572 6570 7461 3d20 3420 630a 6e6f 6966
0000030 2067 203d 7055 450a 444e 0a0a
000003c


and obviously no more errors !


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 09, 2005 6:38 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
The other thing for files like that is to use the function based on tr that I've described elsewhere...


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 


All times are UTC - 6 hours




Who is online

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