View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 37 posts ] 
Go to page Previous  1, 2, 3  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Sat Jun 09, 2007 9:44 pm 
Offline
Joined: Wed Mar 07, 2007 9:51 am
Posts: 173
Location: Uniontown, PA
Just to add my $0.02 into this thread:

I've loaded R5F1 fresh on my MStation HT-1100 front end with the VFD, and using the hacks I found for R5E50, the VFD still needs the chmod for permissions.

I can 'echo' to the VFD as root, but mythtv can't speak to the bugger.

Since I'm running the VFD on an FE box with no program storage or tuners, so I could help out in the testing, too. :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 10, 2007 7:12 am 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
larrybpsu wrote:
Just to add my $0.02 into this thread:

I've loaded R5F1 fresh on my MStation HT-1100 front end with the VFD, and using the hacks I found for R5E50, the VFD still needs the chmod for permissions.

I can 'echo' to the VFD as root, but mythtv can't speak to the bugger.
I don't know what you mean by this. "chmod for permissions" on what? The only thing I chmod'd was /dev/lcd0 (as I was root when I ran the script and created the device), and that's in the script I posted.

If there's something else that needs permissions changed let me know so I can update the script.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 12, 2007 8:03 am 
Offline
Joined: Wed Mar 07, 2007 9:51 am
Posts: 173
Location: Uniontown, PA
slowtolearn:

I DID get it to work WITH the permission change on /dev/lcd0. I was just referencing my past hack's which didn't include the chmod.

Sorry about the misunderstanding, and thanks for the script!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 12, 2007 11:21 am 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
larrybpsu wrote:
slowtolearn:

I DID get it to work WITH the permission change on /dev/lcd0. I was just referencing my past hack's which didn't include the chmod.
Ahh, OK.

larrybpsu wrote:
Sorry about the misunderstanding, and thanks for the script!
No problem, just wanted to make sure the script was complete.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 3:44 pm 
Offline
Joined: Mon Mar 12, 2007 1:47 pm
Posts: 25
Slowtolearn - OK, so a complete newbie question here...

How do I use the script? In complete ABC steps please...

copy down and save as....? Does the name have to have anything special in it?

how do I run it? Seems stupid but I've tried what I would have thought was obvious stuff but it didn't seem to work...

Apologies...

bag.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 14, 2007 7:48 am 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
bag wrote:
Slowtolearn - OK, so a complete newbie question here...

How do I use the script? In complete ABC steps please...

copy down and save as....? Does the name have to have anything special in it?
Nope. Save it into whatever name you like, make it executable and run it. For example, say you saved it as "vfd_setup":
Code:
chmod 755 vfd_setup
./vfd_setup


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 14, 2007 11:50 am 
Offline
Joined: Mon Mar 12, 2007 1:47 pm
Posts: 25
Ok, so i've done that but come up against another problem. I've saved it as imon_vfd_setup and chmod'ed the file as you described. But it still throws a curveball at me...

Output looks like this:

Code:
root@mythtv:/home/mythtv# ./imon_vfd_setup
bash: ./imon_vfd_setup: /bin/bash^M: bad interpreter: No such file or directory


I am absolutely certain that the file in question is called this - and that it is in the current directory.

So I'm obviously doing something silly - just need pointing in the right direction about this...

Help appreciated.

bag.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 14, 2007 12:01 pm 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
bag wrote:
Ok, so i've done that but come up against another problem. I've saved it as imon_vfd_setup and chmod'ed the file as you described. But it still throws a curveball at me...

Output looks like this:

Code:
root@mythtv:/home/mythtv# ./imon_vfd_setup
bash: ./imon_vfd_setup: /bin/bash^M: bad interpreter: No such file or directory
Copied it from a Windoze machine? Run
Code:
dos2unix imon_vfd_setup

That will remove the ^M at the end of each line (you can see them with vi but not more), and you should be set.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 14, 2007 12:44 pm 
Offline
Joined: Mon Mar 12, 2007 1:47 pm
Posts: 25
Thanks - that got it working.

I got a do you wish to configure question... followed by it telling me that it all already exists.

so I'm still stuck - i can still echo to the vfd but can't get mythlcdserver to connect to it somehow...

Will keep plugging away.

bag


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 15, 2007 8:10 am 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
bag wrote:
Thanks - that got it working.

I got a do you wish to configure question... followed by it telling me that it all already exists.
As it would, if you have already configured everything :wink: I built the script for a stock R5F1 setup, assuming none of the configuration had been done.

bag wrote:
so I'm still stuck - i can still echo to the vfd but can't get mythlcdserver to connect to it somehow...
Is mythlcdserver running? Are you running LCDd on the default port of 13666? What are the permissions on /dev/lcd0?

EDIT: What is the output from lsusb? /EDIT


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 15, 2007 9:43 am 
Offline
Joined: Mon Mar 12, 2007 1:47 pm
Posts: 25
right - one thing at a time.

running lsusb brings up five lines, showing the following:

Code:
Bus 004 Device 002: ID 05e3:0710 Genesys Logic, inc. USB 2.0 33-in-1 Card Reader
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 15c2:ffdc Soundgraph Inc. iMon PAD Remote Controller
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000


I then tried to run the command:

Code:
#mythlcdserver


which punched up the fact that the connection was refused, maybe I have another copy of lcd server running... Probably right.

So I checked what was there:

Code:
#pa ax | grep mythlcdserver

3615 ?         S1     0:00 /usr/bin/mythlcdserver -v none
 869 ttyp0    S+    0:00 grep mythlcdserver


I presume that this basically says - yes you have a copy of mythlcdserver running on your machine... is this correct?

To recap - i can echo to the vfd but can't seem to get mythlcdserver to connect to it.

How do I check that the ports are correct?

thanks,

bag.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 15, 2007 10:15 am 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
bag wrote:
right - one thing at a time.

running lsusb brings up five lines, showing the following:

Code:
Bus 004 Device 002: ID 05e3:0710 Genesys Logic, inc. USB 2.0 33-in-1 Card Reader
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 15c2:ffdc Soundgraph Inc. iMon PAD Remote Controller
Ditto here...

bag wrote:
Code:
#pa ax | grep mythlcdserver

3615 ?         S1     0:00 /usr/bin/mythlcdserver -v none
 869 ttyp0    S+    0:00 grep mythlcdserver


I presume that this basically says - yes you have a copy of mythlcdserver running on your machine... is this correct?
Correct.

bag wrote:
To recap - i can echo to the vfd but can't seem to get mythlcdserver to connect to it.

How do I check that the ports are correct?
Check /etc/LCDd.conf and find Port=. The default is 13666, I don't know if mythlcdserver is trying to connect to that specific port or not (can't seem to find much information on that and can't locate a conf file or configuration options in mythtv-setup or Utilities/Setup...)

So, what are the perms on /dev/lcd0? The mythtv user would need read/write access...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 15, 2007 10:38 am 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
slowtolearn wrote:
(can't seem to find much information on that and can't locate a conf file or configuration options in mythtv-setup or Utilities/Setup...)
Do'h! Found http://www.mythtv.org/wiki/index.php/Mythlcdserver which indicates the default port for mythlcdserver is 6545. Try netstat -a | grep 6545. Mine gives me these entries:
Code:
tcp        0      0 *:6545                  *:*                     LISTEN
tcp        0      0 localhost:55343         localhost:6545          ESTABLISHED
tcp        0      0 localhost:6545          localhost:55343         ESTABLISHED


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 15, 2007 1:54 pm 
Offline
Joined: Mon Mar 12, 2007 1:47 pm
Posts: 25
Slowtolearn,

Thanks for all your help so far... I really appreciate it.

Right then. On to business..!

I've checked out /etc/LCDd.conf and the Port is correct.

Permissions on /dev/lcd0 are:

Code:
#ls -l /dev/lcd0
crw-rw-rw- 1 root root 180, 144 Jun 11 19.58 /dev/lcd0


Having run netstat as you suggested, I only come up with:

Code:
tcp               0         0  *:6545               *.*                      LISTEN


so am I missing something here???


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 15, 2007 3:02 pm 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
bag wrote:
Permissions on /dev/lcd0 are:

Code:
#ls -l /dev/lcd0
crw-rw-rw- 1 root root 180, 144 Jun 11 19.58 /dev/lcd0
So far, so good.

bag wrote:
Having run netstat as you suggested, I only come up with:

Code:
tcp               0         0  *:6545               *.*                      LISTEN


so am I missing something here???
Hmmm, as long as mythlcdserver is running on my system I have the 3 entries I noted above. Have you changed mythlcdserver in any way (like compiling Myth from SVN)? Try this: Disable the LCD setting in Utilities/Setup, then
Code:
pkill mythlcdserver
mythlcdserver -v all
from an xterm. Let's see what errors you get, if any. Also check /var/log/syslog, see if there is anything regarding imon in there.


Top
 Profile  
 

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



All times are UTC - 6 hours




Who is online

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