[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users 00934] Re: Problems embedding apps in presentations



Thanks again,
both (1) and (2) allmost works. Everithing works fine until I try to play
a mpeg-video (with mplayer or gtv) inside the presentation. Then I get the
following error message (in the terminal where I  started (x)mgp):
  .
  .
  Linux RTC init error in ioctl (rtc_pie_on): Permission denied
  Using usleep() timing
  Input config file /etc/mplayer/input.conf parsed : 50 binds
  .
  .
And the presantation freezes, but I'm able to go to the other X-session
with Ctrl-Alt-F7 and kill the prosess.

When I ran mgp without a wm  and with a single X-session as proposed in
another post on the list the videoplayer worked. Other X-apps like xeyes
or xclock works under both (1) and (2). So the question is if there is
something wrong with my videoplayer or the resources avalible to X in the
secon session? Would it help if the xmgp script is owned by root with
the sticky-bit set? It would be really neat to hav this thing working in
a secon X-session, and be able to switch between the presantation and the
desktop during presentations or while writing the presentation...

Best
Grunde


On Thu, 6 Jun 2002, Chris Tyler wrote:

> Actually, the hostname should be in front of the colon, if you're using
> TCP/IP; otherwise, it should be blank or "unix" to specify Unix domain
> sockets. I think the other poster actually meant to suggest ":0.0" instead
> of "0:0", but display zero is the normal X server started by gdm/kdm in
> runlevel 5.
>
> Here are two other things to try:
>
> (1) Use the "-ac" option:
>
>     #!/bin/bash
>     #
>     # xmgp :: start mgp on its own display
>     #
>     DISPLAY=":1" export DISPLAY
>     X -ac $DISPLAY 2>/dev/null &
>     sleep 2      # give X a head-start
>     mgp $*
>     killall X            # terminate X when mgp exits
>
> (2) Use local loopback tcp/ip device:
>
>     #!/bin/bash
>     #
>     # xmgp :: start mgp on its own display
>     #
>     DISPLAY=":1" export DISPLAY
>     X -ac $DISPLAY 2>/dev/null &
>     sleep 2      # give X a head-start
>     DISPLAY="localhost$DISPLAY"
>     mgp $*
>     killall X            # terminate X when mgp exits
>
> Let me know how it goes...
>
> --
> Chris Tyler
>
>
> On 2002.06.06 15:52 Grunde L|voll wrote:
> > My distro is RH7.3 width ximian gnome.
> >
> > If DISPLAY="0:0" conflicts width my primary server would
> > DISPLAY="1:1" not? or?
> >
> >
> > Maby I'll try both...
> >
> > Best
> > Grunde
> >
> > On Thu, 6 Jun 2002, Chris Tyler wrote:
> >
> > > Don't use DISPLAY="0:0" or you'll conflict with your primary X
> > server...
> > >
> > > Try adding "-ac" to the X command (turns off access control).
> > >
> > > What is your distro?
> > >
> > > --
> > > Chris Tyler
> > >
> > >
> > >
> > > On 2002.06.06 10:32 Daniel Schlieper wrote:
> > > > Try
> > > >
> > > >   DISPLAY="0:0" export DISPLAY
> > > >
> > > > instead of
> > > >
> > > >   DISPLAY=":1" export DISPLAY
> > > >
> > > > maybe this helps.
> > > >
> > > >
> > > > Daniel
> > >
> >
> > -----
> > Grunde Løvoll
> > mailto:grundel@fys.uio.no
> > http://www.fys.uio.no/~grundel/work.html
> >
> >  f u cn rd ths u r prbly a gk
> >
>

-----
Grunde Løvoll
mailto:grundel@fys.uio.no
http://www.fys.uio.no/~grundel/work.html

 f u cn rd ths u r prbly a gk