Re: problem with starting with xinit

2009-09-23 Thread Stephan Raue
Am 23.09.2009 17:59, schrieb Stephan Raue:
> Am 23.09.2009 11:37, schrieb Cooper Yuan:
>
>> No idea, application and X start up in 1 sec on my side.--
>>  
> depends xinit on any kernel option to start quickly and dont search for
> anything? or can i track what xinit do?
>
>
in xinit.c i have found follow code:

 errno = 0;
 if (! processTimeout(0, "")) {
 serverpid = -1;
 break;
 }
 /*
  * kludge to avoid race with TCP, giving server time to
  * set his socket options before we try to open it,
  * either use the 15 second timeout, or await SIGUSR1.
  *
  * If your machine is substantially slower than 15 seconds,
  * you can easily adjust this value.
  */
 alarm (15);

i think i have this problem, what can i do? the problem i have since i 
have upgraded to the new xorg-server and deps.
as in http://osdir.com/ml/cygwin.xfree/2002-06/msg00036.html written, i 
must start Xorg with "exec X ..." in xserverrc but i do this...

Stephan

-- 
   ### OpenELEC.tv ###
The free and open Mediacenter Distribution 4 you
  http://www.openelec.tv

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: problem with starting with xinit

2009-09-23 Thread Stephan Raue
Am 23.09.2009 11:37, schrieb Cooper Yuan:
> No idea, application and X start up in 1 sec on my side.--

depends xinit on any kernel option to start quickly and dont search for 
anything? or can i track what xinit do?

Stephan

   ### OpenELEC.tv ###
The free and open Mediacenter Distribution 4 you
  http://www.openelec.tv

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: problem with starting with xinit

2009-09-23 Thread Stephan Raue

Am 23.09.2009 10:28, schrieb Cooper Yuan:
try this command line:  "/usr/bin/xinit  /path/to/your/script -- 
/usr/bin/X -quiet"

this needs 15sec. too.
i am trying "/usr/bin/xinit  /usr/bin/glxgears -- /usr/bin/X -quiet" 
with some problem


Stephan


On Wed, Sep 23, 2009 at 3:07 PM, Stephan Raue 
mailto:mailingli...@openelec.tv>> wrote:


Hi all,

i have a problem to start Xorg with my other programs with xinit.
before
i have updated to the new xorg-server with needed libs, protos etc.
xorg-server has startet with xinit in 1-2 seconds. now starting xorg
needs about 15 seconds. this problem i have some weeks.



--
  ### OpenELEC.tv ###
The free and open Mediacenter Distribution 4 you
 http://www.openelec.tv

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Re: problem with starting with xinit

2009-09-23 Thread Cooper Yuan
No idea, application and X start up in 1 sec on my side.

On Wed, Sep 23, 2009 at 4:53 PM, Stephan Raue wrote:

>  Am 23.09.2009 10:28, schrieb Cooper Yuan:
>
> try this command line:  "/usr/bin/xinit  /path/to/your/script -- /usr/bin/X
> -quiet"
>
> this needs 15sec. too.
> i am trying "/usr/bin/xinit  /usr/bin/glxgears -- /usr/bin/X -quiet" with
> some problem
>
> Stephan
>
>
> On Wed, Sep 23, 2009 at 3:07 PM, Stephan Raue wrote:
>
>> Hi all,
>>
>> i have a problem to start Xorg with my other programs with xinit. before
>> i have updated to the new xorg-server with needed libs, protos etc.
>> xorg-server has startet with xinit in 1-2 seconds. now starting xorg
>> needs about 15 seconds. this problem i have some weeks.
>>
>
> --
>   ### OpenELEC.tv ###
> The free and open Mediacenter Distribution 4 you
>  http://www.openelec.tv
>
>
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Re: problem with starting with xinit

2009-09-23 Thread Cooper Yuan
try this command line:  "/usr/bin/xinit  /path/to/your/script -- /usr/bin/X
-quiet"

On Wed, Sep 23, 2009 at 3:07 PM, Stephan Raue wrote:

> Hi all,
>
> i have a problem to start Xorg with my other programs with xinit. before
> i have updated to the new xorg-server with needed libs, protos etc.
> xorg-server has startet with xinit in 1-2 seconds. now starting xorg
> needs about 15 seconds. this problem i have some weeks.
>
> i use xinit-1.1.1
>
> my xserverrc:
>
>   #!/bin/sh
>
>   . /etc/sysconfig
>
>   args="-s 0 -br -allowMouseOpenFail "
>
>   mkdir -p /var/cache/xkb
>   exec /usr/bin/X :0.0 vt$TTY ${args} > /dev/null 2>&1
>
> my xinitrc:
>
>   #!/bin/sh
>
>   . /etc/sysconfig
>
>   for file in /etc/xinitrc.d/* ; do
> . ${file}
>   done
>
> where ${file} starts my programs.
>
> i start xinit with:  xinit $XINITRC -- $XSERVERRC > /dev/null 2>&1
> when i am start
>
> /usr/bin/X :0.0 vt01 -s 0 -br -allowMouseOpenFail & sleep 2 &&
> /usr/bin/my_sript
>
> the xorg starts in 1-2 seconds and my script 2 seconds later (because of
> the "sleep" that i need to let xorg-server starts)
>
> what can i do to see what is wrong? can i start xorg without xinit and
> without a sleep, so my script starts directly when the xorg-server is up
> (i need a very very fast start - my goal is a <5sec. start from grub to
> my application)?
>
> --
>   ### OpenELEC.tv ###
> The free and open Mediacenter Distribution 4 you
>  http://www.openelec.tv
>
> ___
> xorg mailing list
> xorg@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
>
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

problem with starting with xinit

2009-09-23 Thread Stephan Raue
Hi all,

i have a problem to start Xorg with my other programs with xinit. before 
i have updated to the new xorg-server with needed libs, protos etc. 
xorg-server has startet with xinit in 1-2 seconds. now starting xorg 
needs about 15 seconds. this problem i have some weeks.

i use xinit-1.1.1

my xserverrc:

   #!/bin/sh

   . /etc/sysconfig

   args="-s 0 -br -allowMouseOpenFail "

   mkdir -p /var/cache/xkb
   exec /usr/bin/X :0.0 vt$TTY ${args} > /dev/null 2>&1

my xinitrc:

   #!/bin/sh

   . /etc/sysconfig

   for file in /etc/xinitrc.d/* ; do
 . ${file}
   done

where ${file} starts my programs.

i start xinit with:  xinit $XINITRC -- $XSERVERRC > /dev/null 2>&1
when i am start

/usr/bin/X :0.0 vt01 -s 0 -br -allowMouseOpenFail & sleep 2 && 
/usr/bin/my_sript

the xorg starts in 1-2 seconds and my script 2 seconds later (because of 
the "sleep" that i need to let xorg-server starts)

what can i do to see what is wrong? can i start xorg without xinit and 
without a sleep, so my script starts directly when the xorg-server is up 
(i need a very very fast start - my goal is a <5sec. start from grub to 
my application)?

-- 
   ### OpenELEC.tv ###
The free and open Mediacenter Distribution 4 you
  http://www.openelec.tv

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg