If you are starting X to run one program, you do not need kde or any other 
window manager.

get the rc.local startup script to run startx as the particular user you want 
to run as. A line like:


su - barry startx


in barry's home durectory have a file called .xinitrc that runs your program, 
like:

#!/bin/sh
exec what_i_want-to_run

As far as turning off the monitor, I think there may be a couple of things you 
need to do, one being to have the line:

Option "DPMS" no

in /etc/X11/xorg.conf

Also in that .xinitrc file you probably want to use xset to turn off screen 
blanking, so your .xinitrc becomes

#!/bin/sh
xset s off
exec what_i_want-to_run

Now its a while since I set something like that up, so forgive me if I have to 
be corrected, or if you have to fiddle a bit.

You don't need to dirty shutdwn, use ssh to go in and execute (as root) the 
halt command.

On Wed, 12 Jul 2006 23:29:43 +1200
Barry <[EMAIL PROTECTED]> wrote:

> Thanks for the replies/ suggestions.
> 
> I Sent the 1st email without sufficient explanation - sorry.
> 
> Andrew has put me on the right track  - using kde autostart does the 
> job. Icewm does not appear to have the ability to run an app automatic
> 
> 
> What I am trying to do is set up a P166 for use as an unattended visual 
> display unit which must boot automatically when the power is turned on. 
> There will not be a nice clean shutdown run before power off. It will be 
> running without a mouse or keyboard attached. (Vandal proof?, idiot 
> proof?, foolproof??? he says hopefully)
> 
> So far I have it booting through to starting X and the app, ext3 
> filesystem is taking care of the dirty shutdown adequately.
> 
> The problem was that the monitor was going into standby mode after about 
> 10 minutes. kde must be running to control the monitor
> 
> Barry
> 

Reply via email to