ts-7000
[Top] [All Lists]

RE: [ts-7000] Auto Run

To:
Subject: RE: [ts-7000] Auto Run
From: Jim Jackson <>
Date: Wed, 7 Oct 2009 21:59:59 +0100 (BST)


On Wed, 7 Oct 2009, Arie Rechavel wrote:

> Thank you John
>
>   I tried the following:
>      x::once:/usr/bin/startx
> /home/eclipse/libx-gtk-examples/display/display
>
>     The program display works, however a few icons were missing, but
> the touch screen did not resonds to any buttons I have on the screen.
>     It seems like X11 did not fully started.

One of the problems of using init to start up your application, is that
there's no guarantee everything lese in the startup sequence is complete.
This can mean that the environment your app. expects might not be complete.

A safer way is to edit, or add to, the start up scripts that do the normal 
startup procedure for your setup. If it's a debian image, then it's usually 
a sysV type startup procedure[1], and you can add a script to start up your 
application in /etc/init.d/ and make a link from the relevant /etc/rcN.d
directory depending on what run-level your system starts up in.

All this is pretty standard unix/linux, and is not at all specific to
the TS boards.

[1] 
http://nico.schotteli.us/papers/linux/howto/minit-howto/minit-howto-v0.2.2/node35.html

> >     ar
>
> -----Original Message-----
> From:   On Behalf
> Of John Gray
> Sent: Wednesday, October 07, 2009 12:28 PM
> To: 
> Subject: Re: [ts-7000] Auto Run
>
>
> On 06/10/09 23:22:47, njar09 wrote:
>> I would like to get some help on the following:
>>
>> I have a program called display that is using gtk (graphics)
>>
>> to auto login, I modified the file /etc/inittab as follows:
>> #1:2345:respawn:/sbin/getty 38400 tty1
>> 1:2345:respawn:/bin/login -f root tty1 </dev/tty1 >/dev/tty1 2>&1
>>
>> To autostart x windows I added at the bottom:
>> x::wait:/usr/bin/startx
>>
>> Now I would like to auto start my program display.
>> I added at the bottom:
>> ds::wait:/home/eclipse/libx-gtk-examples/display/display
>>
> I think that you can just specify the client program on the end of the
> startx command line normally, so you could try:
>
> x::wait:/usr/bin/startx /home/eclipse/libx-gtk-examples/display/display
>
> (assuming that this way of starting X works OK). I haven't tried this
> on a TS platform, it's just general X procedure. You can alternatively
> list one or more applications in .xintrc in the user's home directory
> if you use startx.
>
> Regards
>
> John
>
>


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU