Unix Technical Forum

How do I get xawtv to work?

This is a discussion on How do I get xawtv to work? within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> I'm trying to get xawtv to work but I get the following error bash-2.05b# xawtv This is xawtv-3.86, running ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 08:48 AM
Unknown
 
Posts: n/a
Default How do I get xawtv to work?

I'm trying to get xawtv to work but I get the following error

bash-2.05b# xawtv
This is xawtv-3.86, running on Linux/i686 (2.6.9-gentoo-r6)
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: :0.0
bash-2.05b#

I assume it's a permissions problem but it doesn't mean much to me. I'm
using the nvidia drivers on a geforce4 card and bt878 type tv card if it's
relevant. Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 08:48 AM
Jacob Tranholm
 
Posts: n/a
Default Re: How do I get xawtv to work?

Den Tue, 14 Dec 2004 23:20:14 +0000. skrev fred:

> I'm trying to get xawtv to work but I get the following error
>
> bash-2.05b# xawtv
> This is xawtv-3.86, running on Linux/i686 (2.6.9-gentoo-r6)
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
> Error: Can't open display: :0.0
> bash-2.05b#
>
> I assume it's a permissions problem but it doesn't mean much to me. I'm
> using the nvidia drivers on a geforce4 card and bt878 type tv card if it's
> relevant. Any ideas?


It sound like you are trying to run xawtv from your root command using su
to become root. If you want to use xawtv as root user you should use sux
instead of su. You can install sux with the command: emerge -uvD sux

The you can just become root with X-access using the sux-command instead...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 08:48 AM
Sybren Stuvel
 
Posts: n/a
Default Re: How do I get xawtv to work?

Unknown enlightened us with:
> bash-2.05b# xawtv
> This is xawtv-3.86, running on Linux/i686 (2.6.9-gentoo-r6)
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
> Error: Can't open display: :0.0
> bash-2.05b#


Do *NOT* run xawtv as root!!! Why are you doing that? If root is the
only user that can read from your TV card, then fix the TV card's
permissions.

> I assume it's a permissions problem but it doesn't mean much to me.


Only people with the right .Xauthority file are allowed to connect to
your X server. Root hasn't got that file (or at least not a copy of
your .Xauthority), so that means no access. Fix your setup so you
won't have to run it as root anyway.

> I'm using the nvidia drivers on a geforce4 card and bt878 type tv
> card if it's relevant. Any ideas?


Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 08:48 AM
Unknown
 
Posts: n/a
Default Re: How do I get xawtv to work?

On Wed, 15 Dec 2004 00:55:20 +0100, Jacob Tranholm wrote:

> Den Tue, 14 Dec 2004 23:20:14 +0000. skrev fred:
>
>> I'm trying to get xawtv to work but I get the following error
>>
>> bash-2.05b# xawtv
>> This is xawtv-3.86, running on Linux/i686 (2.6.9-gentoo-r6)
>> Xlib: connection to ":0.0" refused by server
>> Xlib: No protocol specified
>>
>> Error: Can't open display: :0.0
>> bash-2.05b#
>>
>> I assume it's a permissions problem but it doesn't mean much to me. I'm
>> using the nvidia drivers on a geforce4 card and bt878 type tv card if it's
>> relevant. Any ideas?

>
> It sound like you are trying to run xawtv from your root command using su
> to become root. If you want to use xawtv as root user you should use sux
> instead of su. You can install sux with the command: emerge -uvD sux
>
> The you can just become root with X-access using the sux-command instead...


Sorry, my bad, I forgot to exit out of root!
I tried it under my user login but I get a segmentation fault,

bash-2.05b$ xawtv
This is xawtv-3.86, running on Linux/i686 (2.6.9-gentoo-r6)
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
Segmentation fault
bash-2.05b$

Is this, as it suggests, actually a missing font problem? If so how do I
fix it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 08:48 AM
Sybren Stuvel
 
Posts: n/a
Default Re: How do I get xawtv to work?

Unknown enlightened us with:
> Sorry, my bad, I forgot to exit out of root!


Never, ever do that again, it's very dangerous

> I tried it under my user login but I get a segmentation fault,


Run it with 'gdb' and see where it segfaults. I must say I haven't got
xawtv running on my box either, I play TV with mplayer and I wrote a
separate application for zapping.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 08:48 AM
Peter Jensen
 
Posts: n/a
Default Re: How do I get xawtv to work?

Unknown wrote:

> I tried it under my user login but I get a segmentation fault,
>
> bash-2.05b$ xawtv
> This is xawtv-3.86, running on Linux/i686 (2.6.9-gentoo-r6)
> Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
> Segmentation fault
> bash-2.05b$
>
> Is this, as it suggests, actually a missing font problem? If so how do I
> fix it?


Well, it's apparently an incompatibility between xawtv and the nVidia
drivers. I solve it by running it as 'xawtv -noxv-video'.

--
PeKaJe

Speaking of purchasing a dog, never buy a watchdog that's on sale.
After all, everyone knows a bargain dog never bites!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 08:48 AM
Unknown
 
Posts: n/a
Default Re: How do I get xawtv to work?

On Wed, 15 Dec 2004 14:03:05 +0000, Peter Jensen wrote:

> Unknown wrote:
>
>> I tried it under my user login but I get a segmentation fault,
>>
>> bash-2.05b$ xawtv
>> This is xawtv-3.86, running on Linux/i686 (2.6.9-gentoo-r6)
>> Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
>> Segmentation fault
>> bash-2.05b$
>>
>> Is this, as it suggests, actually a missing font problem? If so how do I
>> fix it?

>
> Well, it's apparently an incompatibility between xawtv and the nVidia
> drivers. I solve it by running it as 'xawtv -noxv-video'.


Thanks for the help. If I use -noxv-video option it runs but only with
sound, the screen is black.
I've had it running with the nvidia drivers under Mandrake for ages, is
this a specific Gentoo problem?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 08:48 AM
Peter Jensen
 
Posts: n/a
Default Re: How do I get xawtv to work?

Unknown wrote:

>> Well, it's apparently an incompatibility between xawtv and the nVidia
>> drivers. I solve it by running it as 'xawtv -noxv-video'.

>
> Thanks for the help. If I use -noxv-video option it runs but only with
> sound, the screen is black.


Have you tried other output modes? Both grabdisplay and overlay work
for me, but perhaps you have problems with one or the other?

> I've had it running with the nvidia drivers under Mandrake for ages,
> is this a specific Gentoo problem?


In a way, perhaps. Gentoo tends to use very new drivers, and those seem
to have a problem (and I think only in combination with a 2.6 kernel,
though I'm not sure. It was a while ago I solved this). BTW, does
'fbtv' from the framebuffer console work?

--
PeKaJe
Sit back and watch the messages. This is actually more important than one
might think as there is a bug in GNU Mach whereby hitting a key during the
boot process causes the kernel to panic -- GNU Hurd Installation Guide
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 08:49 AM
Unknown
 
Posts: n/a
Default Re: How do I get xawtv to work?

On Thu, 16 Dec 2004 09:26:41 +0000, Peter Jensen wrote:

> Unknown wrote:
>
>>> Well, it's apparently an incompatibility between xawtv and the nVidia
>>> drivers. I solve it by running it as 'xawtv -noxv-video'.

>>
>> Thanks for the help. If I use -noxv-video option it runs but only with
>> sound, the screen is black.

>
> Have you tried other output modes? Both grabdisplay and overlay work
> for me, but perhaps you have problems with one or the other?
>
>> I've had it running with the nvidia drivers under Mandrake for ages,
>> is this a specific Gentoo problem?

>
> In a way, perhaps. Gentoo tends to use very new drivers, and those seem
> to have a problem (and I think only in combination with a 2.6 kernel,
> though I'm not sure. It was a while ago I solved this). BTW, does
> 'fbtv' from the framebuffer console work?


Thanks for the reply, I thought the grabdisplay option was for taking
screenshots! Grabdisplay displays perfectly but overlay still gives me a
blank screen.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 08:49 AM
Peter Jensen
 
Posts: n/a
Default Re: How do I get xawtv to work?

Unknown wrote:

>> In a way, perhaps. Gentoo tends to use very new drivers, and those
>> seem to have a problem (and I think only in combination with a 2.6
>> kernel, though I'm not sure. It was a while ago I solved this).
>> BTW, does 'fbtv' from the framebuffer console work?

>
> Thanks for the reply, I thought the grabdisplay option was for taking
> screenshots! Grabdisplay displays perfectly but overlay still gives me
> a blank screen.


Hmm, that's strange. Anyway, on my system overlay can't do full-screen
anyway, so I always use grabdisplay. Only problem is that high CPU load
will show as a choppy image. Did 'fbtv' work in the framebuffer
console? Some of it is similar to how overlay works with xawtv, but for
the console. Might help pin-point where the problem is. How about
mplayer with the 'xv' video output?

--
PeKaJe

"I am thinking you have the intelligence of a rock. An extremely stupid rock."
-- "Rick" responding to the kook "Alan Connor" in COLA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:36 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com