All of lore.kernel.org
 help / color / mirror / Atom feed
* Xorg issue when app closed with iMX53
@ 2015-05-29 20:17 Simone
  2015-06-03 13:36 ` Marco Cavallini
  0 siblings, 1 reply; 5+ messages in thread
From: Simone @ 2015-05-29 20:17 UTC (permalink / raw)
  To: <meta-freescale@yoctoproject.org>

Dear All,
I'm trying to use Xorg server on iMX53 and qt4.8
I got a working system, without too much difficulties.

The only one problem I have is that I'm not able to run Xorg as a separated server (I must run it togheter with my application).
To do this I've added the script call that launch my GUI in /etc/X11/xserver.common
This is the only way I found to execute my application.

The problem is that when I close my application the Xorg exit almost immediately.
When I try to run again my application without the trick above described, I have the error "cannot connect to X server" and application close.
This is a little bit tricky, and it put me in bad situation especially when debugging, because I can't run my application when I want, without re-launching Xorg.

What I would obtain, is to launch Xorg once at start, and then work freely opening/closing my application, which should connect and disconnect to/from the already active Xorg server.
Am I missing something?
Is it possible?

Thanks a lot
Simone





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Xorg issue when app closed with iMX53
  2015-05-29 20:17 Xorg issue when app closed with iMX53 Simone
@ 2015-06-03 13:36 ` Marco Cavallini
  2015-06-03 19:04   ` Simone
  0 siblings, 1 reply; 5+ messages in thread
From: Marco Cavallini @ 2015-06-03 13:36 UTC (permalink / raw)
  To: Simone; +Cc: <meta-freescale@yoctoproject.org>

2015-05-29 22:17 GMT+02:00 Simone <cjb.sw.nospam@gmail.com>:
> Dear All,
> I'm trying to use Xorg server on iMX53 and qt4.8
> I got a working system, without too much difficulties.
>
> The only one problem I have is that I'm not able to run Xorg as a separated server (I must run it togheter with my application).
> To do this I've added the script call that launch my GUI in /etc/X11/xserver.common
> This is the only way I found to execute my application.
>
> The problem is that when I close my application the Xorg exit almost immediately.
> When I try to run again my application without the trick above described, I have the error "cannot connect to X server" and application close.
> This is a little bit tricky, and it put me in bad situation especially when debugging, because I can't run my application when I want, without re-launching Xorg.
>
> What I would obtain, is to launch Xorg once at start, and then work freely opening/closing my application, which should connect and disconnect to/from the already active Xorg server.
> Am I missing something?
> Is it possible?
>
> Thanks a lot
> Simone
>


Hi Simone,
xinit (or startx) shoud be able to start autonomously.
Once it has started you usually should be able to launch addictional
Xorg based applications.
A more detailed explanation of what you are doing would help us to
give you some hint.

Ciao
--
Marco Cavallini | KOAN sas | Bergamo - Italia
 embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
      http://www.KoanSoftware.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Xorg issue when app closed with iMX53
  2015-06-03 13:36 ` Marco Cavallini
@ 2015-06-03 19:04   ` Simone
  2015-06-04 14:24     ` Marco Cavallini
  0 siblings, 1 reply; 5+ messages in thread
From: Simone @ 2015-06-03 19:04 UTC (permalink / raw)
  To: Marco Cavallini; +Cc: <meta-freescale@yoctoproject.org>

[-- Attachment #1: Type: text/plain, Size: 2301 bytes --]

Hello Marco,
Nice to hear you!

I saw that Xorg start correctly, then it try to launch xterm, but since this is not present in our system, it exit and close up everything.
I just replaced the execution of xterm with the execution of my application, and it works perfectly. I also know that by default Xorg stay alive until the last client application is not closed, but I would prefer to launch Xorg without clients, and then be able to start and close what I want without need to re-launch Xorg.

But I don't know how to do it...

Thank you
Ciao
Simone





> Il giorno 03/giu/2015, alle ore 15:36, Marco Cavallini <cavallini.koan@gmail.com> ha scritto:
> 
> 2015-05-29 22:17 GMT+02:00 Simone <cjb.sw.nospam@gmail.com>:
>> Dear All,
>> I'm trying to use Xorg server on iMX53 and qt4.8
>> I got a working system, without too much difficulties.
>> 
>> The only one problem I have is that I'm not able to run Xorg as a separated server (I must run it togheter with my application).
>> To do this I've added the script call that launch my GUI in /etc/X11/xserver.common
>> This is the only way I found to execute my application.
>> 
>> The problem is that when I close my application the Xorg exit almost immediately.
>> When I try to run again my application without the trick above described, I have the error "cannot connect to X server" and application close.
>> This is a little bit tricky, and it put me in bad situation especially when debugging, because I can't run my application when I want, without re-launching Xorg.
>> 
>> What I would obtain, is to launch Xorg once at start, and then work freely opening/closing my application, which should connect and disconnect to/from the already active Xorg server.
>> Am I missing something?
>> Is it possible?
>> 
>> Thanks a lot
>> Simone
> 
> 
> Hi Simone,
> xinit (or startx) shoud be able to start autonomously.
> Once it has started you usually should be able to launch addictional
> Xorg based applications.
> A more detailed explanation of what you are doing would help us to
> give you some hint.
> 
> Ciao
> --
> Marco Cavallini | KOAN sas | Bergamo - Italia
> embedded and real-time software engineering
> Phone:+39-035-255.235 - Fax:+39-178-22.39.748
>      http://www.KoanSoftware.com

[-- Attachment #2: Type: text/html, Size: 3965 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Xorg issue when app closed with iMX53
  2015-06-03 19:04   ` Simone
@ 2015-06-04 14:24     ` Marco Cavallini
  2015-06-04 15:38       ` Simone
  0 siblings, 1 reply; 5+ messages in thread
From: Marco Cavallini @ 2015-06-04 14:24 UTC (permalink / raw)
  To: Simone; +Cc: <meta-freescale@yoctoproject.org>

2015-06-03 21:04 GMT+02:00 Simone <cjb.sw.nospam@gmail.com>:
> Hello Marco,
> Nice to hear you!
>
> I saw that Xorg start correctly, then it try to launch xterm, but since this
> is not present in our system, it exit and close up everything.
> I just replaced the execution of xterm with the execution of my application,
> and it works perfectly. I also know that by default Xorg stay alive until
> the last client application is not closed, but I would prefer to launch Xorg
> without clients, and then be able to start and close what I want without
> need to re-launch Xorg.
>
> But I don't know how to do it...
>
> Thank you
> Ciao
> Simone
>

Simone,
that's a typical behaviour with xorg images generated by Yocto.
In that case you need to explicitly add 'xterm' to the recipes in your image.
Then you will be able to run xinit &, after that can launch/stop your
graphical application in the proper way without killing the X server
each time.

Cordiali Saluti / Kindest Regards / Mit freundlichen Grüßen
--
Marco Cavallini | KOAN sas | Bergamo - Italia
 embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
      http://www.KoanSoftware.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Xorg issue when app closed with iMX53
  2015-06-04 14:24     ` Marco Cavallini
@ 2015-06-04 15:38       ` Simone
  0 siblings, 0 replies; 5+ messages in thread
From: Simone @ 2015-06-04 15:38 UTC (permalink / raw)
  To: 'Marco Cavallini'; +Cc: meta-freescale

Dear Marco,
This is what I was thinking today...
Thank you, I will do in this way.

Ciao
Simone


-----Messaggio originale-----
Da: Marco Cavallini [mailto:cavallini.koan@gmail.com] 
Inviato: giovedì 4 giugno 2015 16:24
A: Simone
Cc: <meta-freescale@yoctoproject.org>
Oggetto: Re: [meta-freescale] Xorg issue when app closed with iMX53

2015-06-03 21:04 GMT+02:00 Simone <cjb.sw.nospam@gmail.com>:
> Hello Marco,
> Nice to hear you!
>
> I saw that Xorg start correctly, then it try to launch xterm, but 
> since this is not present in our system, it exit and close up everything.
> I just replaced the execution of xterm with the execution of my 
> application, and it works perfectly. I also know that by default Xorg 
> stay alive until the last client application is not closed, but I 
> would prefer to launch Xorg without clients, and then be able to start 
> and close what I want without need to re-launch Xorg.
>
> But I don't know how to do it...
>
> Thank you
> Ciao
> Simone
>

Simone,
that's a typical behaviour with xorg images generated by Yocto.
In that case you need to explicitly add 'xterm' to the recipes in your image.
Then you will be able to run xinit &, after that can launch/stop your graphical application in the proper way without killing the X server each time.

Cordiali Saluti / Kindest Regards / Mit freundlichen Grüßen
--
Marco Cavallini | KOAN sas | Bergamo - Italia  embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
      http://www.KoanSoftware.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-04 15:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29 20:17 Xorg issue when app closed with iMX53 Simone
2015-06-03 13:36 ` Marco Cavallini
2015-06-03 19:04   ` Simone
2015-06-04 14:24     ` Marco Cavallini
2015-06-04 15:38       ` Simone

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.