Re: [mythtv-users] mplayer still not in focus

2005-07-30 Thread Mike Green
On Wednesday 27 July 2005 08:01, Donavan Stanley wrote:
 You're willing to run a seperate X session...  Sorting top byt memory
 consumption shows my window manager (ratpoison) consuming less memory
 than the script I use to launch the frontend.

When using a lowend box I would rather use the video card's memory/gpu.  The 
PVR250 put very little load on the cpu of the box, I needed the remaining 
CPU and memory for decoding since I had no hardware decoder.

 So what you're saying is we should build a window manager into myth so
 that you don't have to run a window manager?

I am no programmer so I really have no idea.  I assume the we you are 
referring to is you and other myth developers?  If you are a myth 
developer, then yes, I am saying it would be nice for mythtv to be able to 
run without an external window manager.  Again, I assume a window manager 
is simply making calls to the X libraries.  I am purely guessing that 
having myth directly call whatever functions needed to handle focus and 
full screen are already present in the myth code.  Myth handles swapping 
between viewing with it's own internal viewer/menus/modules just fine.

 Except that's not what you're bitching about.  You're complaining
 about not managing to full screen apps.  (which is really two windows)
 which is one of the primary functions of  a window manager.

So, the capability to full screen and focus windows resides in window 
managers, not the X libs?

 Yes, it's such waste it justifies the massive development effort to do
 away with X.  We look forward to your patch,

Am I incorrect in recalling that myth can use embedded QT instead of X?  I 
don't remember where I got that idea.  Regardless, admittedly, I am pretty 
much a complete dumbass when it comes to coding.  I hack around with 
various scripting languages, that is about it.  I apologize if I came 
across as bitching.  I love my mythtv and highly appreciate the obvious 
effort that has gone into it.  No commercial product compares in my 
opinion.  My only wish is that myth could run on lower end boxes so that I 
can have 10 mythboxes running on old recycled hardware :)


pgpP4S1lbT8bg.pgp
Description: PGP signature
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-30 Thread Carl Fongheiser
On 7/30/05, Mike Green [EMAIL PROTECTED] wrote:
 When using a lowend box I would rather use the video card's memory/gpu.  The
 PVR250 put very little load on the cpu of the box, I needed the remaining
 CPU and memory for decoding since I had no hardware decoder.

Memory is not really much of a constraint for decoding.  Also, small
window managers, like  ratpoison, or blackbox, don't consume very much
memory *or* CPU.
 
 I am no programmer so I really have no idea.  I assume the we you are
 referring to is you and other myth developers?  If you are a myth
 developer, then yes, I am saying it would be nice for mythtv to be able to
 run without an external window manager.  Again, I assume a window manager
 is simply making calls to the X libraries.  I am purely guessing that
 having myth directly call whatever functions needed to handle focus and
 full screen are already present in the myth code.  Myth handles swapping
 between viewing with it's own internal viewer/menus/modules just fine.

Well, yes, window managers use the normal X11 library calls to do
their work.  However, you're talking about apples and oranges here. 
Window managers are specifically made to handle the focus and layering
of windows from multiple applications.  There's really no need to add
this functionality to MythTV, because there are a number of fine
window managers that will suit your needs perfectly.
 
 So, the capability to full screen and focus windows resides in window
 managers, not the X libs?
 
For the most part, MythTV doesn't call the X11 libraries directly (the
video output stuff is the exception).  It uses Qt, which abstracts
away a lot of stuff.  This is a good thing.
 
 Am I incorrect in recalling that myth can use embedded QT instead of X?  I
 don't remember where I got that idea.  Regardless, admittedly, I am pretty
 much a complete dumbass when it comes to coding.  I hack around with
 various scripting languages, that is about it.  I apologize if I came
 across as bitching.  I love my mythtv and highly appreciate the obvious
 effort that has gone into it.  No commercial product compares in my
 opinion.  My only wish is that myth could run on lower end boxes so that I
 can have 10 mythboxes running on old recycled hardware :)

You can certainly use embedded Qt.  You can also configure MythTV for
DirectFB output, which gets X11 out of the way entirely.  It's not
necessarily faster, though.  You don't get the benefits of XvMC or Xv
when you do it that way.

MythTV can run just fine on lower end machines, if you stick something
like a PVR-350 in them.  Of course, your definition of low-end might
not agree with mine.  Without hardware help, it pretty much takes a
550 MHz Pentium III to do real-time MPEG-2 decoding.  MPEG-4 is even
more demanding.  If you do have something that fast, or faster, and
256 MB RAM, or more, and an Xv-capable video card, you shouldn't have
any problem running X11 *and* a minimal window manager with your
frontend.

Carl Fongheiser
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-27 Thread Donavan Stanley
On 7/25/05, Mike Green [EMAIL PROTECTED] wrote:
 I understand that to be the case.  However, I don't want to run a window
 manager just to get mplayer to behave correctly.  My previous setup was a
 dual 400MHz PII - adding a window manager to the mix added unnecessary
 complexity and maintenance.  I squeezed it for every ounce of memory and
 CPU :)

You're willing to run a seperate X session...  Sorting top byt memory
consumption shows my window manager (ratpoison) consuming less memory
than the script I use to launch the frontend.
 
 Regardless, it seems to me that it should work correctly without one.

So what you're saying is we should build a window manager into myth so
that you don't have to run a window manager?


 Requiring a window manager to manage a full screen app seems sloppy.  

Except that's not what you're bitching about.  You're complaining
about not managing to full screen apps.  (which is really two windows)
which is one of the primary functions of  a window manager.


 Heck, someday I would like to get rid of X completely use embedded QT.  The
 entire X windowing system along with a window manager is overkill for a
 single purpose pvr/media box.

Yes, it's such waste it justifies the massive development effort to do
away with X.  We look forward to your patch,
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-26 Thread Cory Papenfuss

I certainly would have thought that most WM's are lighter than two X
sessions, but I may be wrong on that.


Of course you are absolutely correct.  Now I will have to figure out how to
completely disable all aspects of a completely new window manager :)

	Just for the record, I wanted to do the same thing... no WM at 
all.  I still use my script which fires up a bare X (no xmd/gdm/kdm), and 
runs just what I want.


	I have chosen 'ratpoison' as my WM of choice.  Perfect for a 
PVR... no decorations/titlebars, etc.  Everything is full-screen, and you 
can pull up a terminal with a keystroke that mimics the 'screen' terminal 
program.


-Cory
 --

*
* Cory Papenfuss*
* Electrical Engineering candidate Ph.D. graduate student   *
* Virginia Polytechnic Institute and State University   *
*

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-26 Thread Mike Green
On Tuesday 26 July 2005 05:58 am, Cory Papenfuss spammed:

   I have chosen 'ratpoison' as my WM of choice.  Perfect for a
 PVR... no decorations/titlebars, etc.  Everything is full-screen, and you
 can pull up a terminal with a keystroke that mimics the 'screen' terminal
 program.

Cory, do you have to tweak any rc files or with ratpoison?  I spent a couple 
of hours last night attempting to tweak .twmrc and .fvwmrc to get twm or 
fvwm2 working.  Both times there was one or two problems that I could not 
get around.  For example, with twm, attempting to schedule a recording by 
using the program schedule would bring the program schedule up in the 
background.


pgp2b0mA1stGM.pgp
Description: PGP signature
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-26 Thread Cory Papenfuss

On Tue, 26 Jul 2005, Mike Green wrote:


On Tuesday 26 July 2005 05:58 am, Cory Papenfuss spammed:


I have chosen 'ratpoison' as my WM of choice.  Perfect for a
PVR... no decorations/titlebars, etc.  Everything is full-screen, and you
can pull up a terminal with a keystroke that mimics the 'screen' terminal
program.


Cory, do you have to tweak any rc files or with ratpoison?  I spent a couple
of hours last night attempting to tweak .twmrc and .fvwmrc to get twm or
fvwm2 working.  Both times there was one or two problems that I could not
get around.  For example, with twm, attempting to schedule a recording by
using the program schedule would bring the program schedule up in the
background.



	The only ratpoison setting I tried to mess with was to fix the 
overscan my tvout stuff does.  With ratpoison, whatever window is active, 
it is made fullscreen.  I also believe that if a new window is drawn, it 
becomes active and is thus fullscreen.  Toggling from one to the other 
requires a screen-like keystroke... 'Ctrl-t, 0' for the 0th window, etc. 
Pulling up an xterm is 'Ctrl-t, n' for a New window.


	Hope that helps all I can suggest is to give it a try.  It's 
about as lightweight as a window manager can be.


-Cory

--

*
* Cory Papenfuss*
* Electrical Engineering candidate Ph.D. graduate student   *
* Virginia Polytechnic Institute and State University   *
*

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-26 Thread chris
On Tue, Jul 26, 2005 at 06:58:44AM -0400, Cory Papenfuss wrote:
 Of course you are absolutely correct.  Now I will have to figure out how to
 completely disable all aspects of a completely new window manager :)

The problem with MythTV and mplayer is probably with window managers
that use the click to focus model by default.  With MythTV and mplayer
you definitely want to automatically focus on the top window.

   I have chosen 'ratpoison' as my WM of choice.  Perfect for a 
 PVR... no decorations/titlebars, etc.  Everything is full-screen, and you 
 can pull up a terminal with a keystroke that mimics the 'screen' terminal 
 program.

Ditto.  I wouldn't use ratpoison on a desktop machine, but it's great
for the XBOX.  On my desktop I use KDE and run MythTV in a window.  That
way I can watch it PIP-style while doing other things.


___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-26 Thread Mike Green
Ratpoison SET ME FREE :)

For those who really don't see the need to run a window manager, but have 
the mplayer focus issue, give ratpoison a try.  I tried almost every window 
manager and could not get any of them tweaked just right.

After installing ratpoison I just added /usr/bin/ratpoison  to my .xinitrc 
and now it all works flawlessly :)  No config files, no tweaking, it 
menubars, titles, or borders.  Best of all, using mplayer to watch external 
videos works without much hassle.

Thanks guys, I appreciate the pointer.

Signed,

One happy camper mythtv owner.


pgp5Ng6YwzcwJ.pgp
Description: PGP signature
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-26 Thread Richard Bronosky




And if that doesn't work for you, try consuming
Ratpoison and just get it over with.

Mike Green wrote:

  Ratpoison SET ME FREE :)

For those who really don't see the need to run a window manager, but have 
the mplayer focus issue, give ratpoison a try.  I tried almost every window 
manager and could not get any of them tweaked just right.

After installing ratpoison I just added /usr/bin/ratpoison  to my .xinitrc 
and now it all works flawlessly :)  No config files, no tweaking, it 
menubars, titles, or borders.  Best of all, using mplayer to watch external 
videos works without much hassle.

Thanks guys, I appreciate the pointer.

Signed,

One happy camper mythtv owner.
  
  

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
  


-- 
Thank you for your time,
--== R i c h a r d  B r o n o s k y ==--

Nearly all viruses and spyware are designed
to use Microsoft internet products. Protect yourself by avoiding
Internet Explorer  Outlook/Outlook Express.




___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-26 Thread Nick Rout

On Tue, 26 Jul 2005 19:10:27 -0500
Mike Green wrote:

 Ratpoison SET ME FREE :)
 
 For those who really don't see the need to run a window manager, but have 
 the mplayer focus issue, give ratpoison a try.  I tried almost every window 
 manager and could not get any of them tweaked just right.
 
 After installing ratpoison I just added /usr/bin/ratpoison  to my .xinitrc 
 and now it all works flawlessly :)  No config files, no tweaking, it 
 menubars, titles, or borders.  Best of all, using mplayer to watch external 
 videos works without much hassle.

actually I must admit that sometimes fluxbox gives me a stray titlebar
when mplayer runs an external video. If I am annoyed enough by it I hit
the F button twice to turn fullscreen off then on again.

I will therefore try ratpoison and see what happens :)

cheers, Nick

 
 Thanks guys, I appreciate the pointer.
 
 Signed,
 
 One happy camper mythtv owner.

Nick Rout

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


[mythtv-users] mplayer still not in focus

2005-07-25 Thread Mike Green
I asked this question a while back and never came across an answer.  I tried 
everything, including all of the various -fstype switches to mplayer.  
Nothing would give mplayer the focus.

I eventually settled for a hack that involves running mplayer in a separate 
X session and using chvt to switch back and forth.  I created two shell 
scripts, one to launch the new X session, another to get rid of the blue 
band that appears behind mplayer when using an nvidia card.  Here are my 
scripts.

-- cut below -
#!/bin/sh
# This is /usr/local/bin/watchvideo
#
# Note that /usr/bin/chvt must be suid root (chmod u+s /usr/bin/chvt) if
# mythfrontend is not being run as root.
#
# verify args
if [ $# -ne 1 ]; then
echo usage: watchvideo /path/to/video/video.mpg
exit 1
else
video=$*
fi
if [ ! -f $video ]; then
echo failure: invalid video: $video
exit 1
fi
#
# switch over to different terminal, start new X session.
#
/usr/bin/chvt 8
X :2 vt8 
sleep 5
export DISPLAY=:2
xhost +
#
# only needed if using nvidia drivers and you get the blue band
#
/usr/local/bin/setcolorkey /dev/null 21 
#
# Start mplayer in the 2nd X session.  Change mplayer options to
# what you need, particularly the -ao and -vo switches.
#
/usr/bin/mplayer -fs -zoom -quiet -vo xv -ao alsa $video
#
# Ugly hack - kill the 2nd X session, change back to mythfrontend on vt7
#
kill -9 `cat /tmp/.X2-lock`
sleep 5
/usr/bin/chvt 7
-- cut above -


Here is my /usr/local/bin/setcolorkey, in case you need it.
-- cut below -
#!/bin/sh
# setcolorkey - remove the blue band that shows up with nvidia cards
# when using mplayer and the nvidia binary drivers.  This requires
# the xvattr utility.  Note if not running as root, xvattr needs to
# be suid root (chmod u+s /usr/bin/xvattr).
#
export DISPLAY=:2
# Give mplayer time to start up.
sleep 5
# Fix the blue band
/usr/bin/xvattr -a XV_COLORKEY -v 66048
-- cut above -


Plug /usr/local/bin/watchvideo into your setup for watching videos, instead 
of directly calling mplayer.


pgpq4PXen1TaS.pgp
Description: PGP signature
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-25 Thread Nick Rout
 I asked this question a while back and never came across an answer.  I tried 
 everything, including all of the various -fstype switches to mplayer.  
 Nothing would give mplayer the focus.

what windowmanager are you using? I settled on fluxbox as working fine.


 
 I eventually settled for a hack that involves running mplayer in a separate 
 X session and using chvt to switch back and forth.  I created two shell 
 scripts, one to launch the new X session, another to get rid of the blue 
 band that appears behind mplayer when using an nvidia card.  Here are my 
 scripts.
[snip]
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-25 Thread Mike Green
On Monday 25 July 2005 04:18 pm, Nick Rout spammed:
  I asked this question a while back and never came across an answer.  I
  tried everything, including all of the various -fstype switches to
  mplayer. Nothing would give mplayer the focus.

 what windowmanager are you using? I settled on fluxbox as working fine.

No windowmanager.  Why do I need a windowmanager, it is a pvr :)


pgp7JeDo9HlSw.pgp
Description: PGP signature
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-25 Thread Greg Estabrooks
 No windowmanager.  Why do I need a windowmanager, it is a pvr :)

 Because the window manager helps handle which app is in focus.
Many people not using a window manager run into focus issues.

Even a very small lightweight windowmanager would likely fix your problem.





 ___
 mythtv-users mailing list
 mythtv-users@mythtv.org
 http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-25 Thread Mike Green
On Monday 25 July 2005 04:37 pm, Greg Estabrooks spammed:
  No windowmanager.  Why do I need a windowmanager, it is a pvr :)

  Because the window manager helps handle which app is in focus.
 Many people not using a window manager run into focus issues.

 Even a very small lightweight windowmanager would likely fix your
 problem.

I understand that to be the case.  However, I don't want to run a window 
manager just to get mplayer to behave correctly.  My previous setup was a 
dual 400MHz PII - adding a window manager to the mix added unnecessary 
complexity and maintenance.  I squeezed it for every ounce of memory and 
CPU :)

Now that I have upgraded, at some point I might add a window manager.

Regardless, it seems to me that it should work correctly without one.  
Requiring a window manager to manage a full screen app seems sloppy.  Heck, 
someday I would like to get rid of X completely use embedded QT.  The 
entire X windowing system along with a window manager is overkill for a 
single purpose pvr/media box.


pgpRvpqJE7PG5.pgp
Description: PGP signature
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-25 Thread Nick Rout

On Mon, 25 Jul 2005 16:49:48 -0500
Mike Green wrote:

 On Monday 25 July 2005 04:37 pm, Greg Estabrooks spammed:
   No windowmanager.  Why do I need a windowmanager, it is a pvr :)
 
   Because the window manager helps handle which app is in focus.
  Many people not using a window manager run into focus issues.
 
  Even a very small lightweight windowmanager would likely fix your
  problem.
 
 I understand that to be the case.  However, I don't want to run a window 
 manager just to get mplayer to behave correctly.  My previous setup was a 
 dual 400MHz PII - adding a window manager to the mix added unnecessary 
 complexity and maintenance.  I squeezed it for every ounce of memory and 
 CPU :)

Yes well I would like to do the same, and agree with your sentiments.
However fluxbox is pretty darned light.

I also tried evilwm, which is lighter still. however I still had focus
issues so I moved up to fluxbox.

I understand that openbox has a similar heritage to flux, but I am not
sure which is lighter. i don't propose to change something that is now
working :)

I certainly would have thought that most WM's are lighter than two X
sessions, but I may be wrong on that.

 
 Now that I have upgraded, at some point I might add a window manager.
 
 Regardless, it seems to me that it should work correctly without one.  
 Requiring a window manager to manage a full screen app seems sloppy.  Heck, 
 someday I would like to get rid of X completely use embedded QT.  The 
 entire X windowing system along with a window manager is overkill for a 
 single purpose pvr/media box.

Agreed, see above.


-- 
Nick Rout

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-25 Thread Mike Green
On Monday 25 July 2005 18:37, Nick Rout wrote:

 I certainly would have thought that most WM's are lighter than two X
 sessions, but I may be wrong on that.

Of course you are absolutely correct.  Now I will have to figure out how to 
completely disable all aspects of a completely new window manager :)


pgpBv0ljxyWrI.pgp
Description: PGP signature
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] mplayer still not in focus

2005-07-25 Thread Nick Rout
shorn of comments this is my .xinitrc 9for the user that runs
mythfrontend)


[ -f $HOME/.Xdefaults ]  xrdb $HOME/.Xdefaults

xsetroot -solid \#400040
xsetroot -cursor_name top_left_arrow

/usr/bin/fluxbox 

exec mythfrontend

I'm not even sure now where the first 3 lines came from. It is handy to
have the root window colour changed from black so you can distinguish it
from a blank screen.

I probably should redirect the output of the fluxbox line to /dev/null,
and will do so when I get the inclination.

On Mon, 25 Jul 2005 19:34:15 -0500
Mike Green wrote:

 On Monday 25 July 2005 18:37, Nick Rout wrote:
 
  I certainly would have thought that most WM's are lighter than two X
  sessions, but I may be wrong on that.
 
 Of course you are absolutely correct.  Now I will have to figure out how to 
 completely disable all aspects of a completely new window manager :)

-- 
Nick Rout

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


[mythtv-users] mplayer still not in focus

2005-07-24 Thread Dudely Smith
trying to play a simple .avi in mythtv, and even with the  /dev/null
21 trick does keep it in focus. Is there anyway to keep mplayer in
focus? basically if you hit the esc, q or any other key, mplayer wont
respond. Interesting enough, launch mythtv from a windowmanager and
mplayer works fine.

~/.xinitrc

# OSD
xmodmap -e keycode 158 = o
# Pause
xmodmap -e keycode 232 = p
xmodmap -e keycode 110 = p
xmodmap -e keycode 177 = p
# Volume
xmodmap -e keycode 174 = 9
xmodmap -e keycode 176 = 0
# Mute
xmodmap -e keycode 160 = m
# PageUp/PageDown
xmodmap -e keycode 152 = Next
xmodmap -e keycode 233 = Prior
# Quit
xmodmap -e keycode 54 = Escape
xmodmap -e keycode 222 = Escape
# slow mouse for ati-remote
/usr/X11R6/bin/xset m 5 10 

# turn off screen blanking
/usr/X11R6/bin/xset s noblank 
/usr/X11R6/bin/xset s off 
/usr/X11R6/bin/xset -dpms 

#fluxbox
#wmaker
mythbackend 
mythfrontend
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users