View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: xOsd Issues
PostPosted: Thu Dec 14, 2006 1:55 am 
Offline
Joined: Mon Aug 22, 2005 7:58 pm
Posts: 28
I am trying to display live sports data while watching TV on MythTV. I posted a question about how to do it using mythtvosd in another thread.
I have found another program called xosd which might do the job.
( Link to xosd here: http://www.die.net/doc/linux/man/man1/osd_cat.1.html)

The problem is that I can't get it to work with MythTV.

My method to test it is to SSH into the machine while the machine is showing live TV. Then I type a command something like this:
osd_cat text_in_file_to_display.txt

It works in a BASH terminal directly on the machine. But in the SSH terminal I get the error:
Error initializing osd: No display

I was amazed that a Google search for this error produced only one unrelated result.

My thought is maybe xosd doesn't work from a remote machine. But I am unconvinced because I found a few discussions on the net where people were using it to display CallerID and it seemed like their machine with the CID modem was different than the one actually displaying the message.

Thanks.[/url]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 14, 2006 2:29 am 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
In the terminal before you run xosd, run this command:
Code:
export DISPLAY=:0.0
This will define DISPLAY so that xosd knows that you want to use screen 0 on xserver 0 on the local machine.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 14, 2006 6:15 pm 
Offline
Joined: Mon Aug 22, 2005 7:58 pm
Posts: 28
Thanks a lot Greg. You've got me on the right track. At the moment it doesn't quite work. I enter these commands and get the following error.
----------
export DISPLAY=:0.0
osd_cat helloworld.txt

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error initializing osd: Cannot open display
------------

I don't get any error to the very first "export DISPLAY" command. Only once I enter osd_cat.

Anyways, I'll mess with it some more but if anyone has bright ideas please let me know.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 14, 2006 6:25 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
Are you doing it as the root user or as the mythtv user? The mythtv user defines access controls to the xserver that it is running. The default is probably to prevent other users from connecting. You should do it as the mythtv user.

Alternatively, disable access control to the xserver by running this command as the mythtv user in an xterm on your box:
Code:
xhost +


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 16, 2006 12:45 am 
Offline
Joined: Mon Aug 22, 2005 7:58 pm
Posts: 28
That worked. If you are logged in as the mythtv user then osd_cat will send to the mythtv display after you have entered the export DISPLAY=:0.0 command.

Thanks a lot. I am now going to attempt to call osd_cat from a PHP script. Hopefully I can get that to work.

Thanks.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

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