All times are UTC-06:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Dec 03, 2007 1:08 pm 
Offline

Joined: Sun Jan 14, 2007 8:01 am
Posts: 187
xfce4 is having its own commandline startup. E.g. from commandline it loads xorg and xfce4 even if an other environment is setup by startx.

Could an script be made so it only loads one application? Would this save many resources?

But first how should such an script look? I could go trial and error, but i would appreciate pointers getting me in the right direction. (a complete script would also be nice :-) )


Top
   
 Post subject:
PostPosted: Mon Dec 03, 2007 2:09 pm 
Offline
Genesi

Joined: Mon Jan 30, 2006 2:28 am
Posts: 409
Location: Finland
Hi.

Just write an .xsession script and put it in the users' home directory. You can write there the applications you want to start, e.g. the following would start Beryl with one xterm (i.e., not Gnome, not XFCE - purely Beryl)
Code:
#!/bin/sh
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi

emerald &
beryl-manager &

exec xterm

Then you can use GDM or XDM to select XSession (or custom X session or something like that), and this file should be used in that case to determine what to start.
If you don't use GDM, etc., you can write a .xinitrc script in the same way.

If you use Ubuntu, this might help: https://help.ubuntu.com/community/CustomXSession


Best regards,
Johan

_________________
Johan Dams, Genesi USA Inc.
Director, Software Engineering

Yep, I have a blog... PurpleAlienPlanet


Top
   
 Post subject:
PostPosted: Mon Dec 03, 2007 3:38 pm 
Offline

Joined: Sun Jan 14, 2007 8:01 am
Posts: 187
Thanks for the script, i will try this tomorow.

So as an windows manager is needed we'd better find a light one:

http://www.cc.rim.or.jp/~hok/heliwm/
Or
http://www.jfc.org.uk/software/lwm.html

as i am afraid that beryl will take up to much system resources for just starting an opengl application.

Are there also other ways to strip down xorg?


Top
   
 Post subject:
PostPosted: Tue Dec 04, 2007 8:34 am 
Offline
Genesi

Joined: Mon Jan 30, 2006 2:28 am
Posts: 409
Location: Finland
Hi.

Actually, you don't even need a window manager if you only want to run a single application.
I did this in the past with Quake III on the EFIKA for demo purposes.

The way it normally works:
xorg - window manager - application

The way you want it to work:
xorg - application.


Getting xorg down in size won't be easy, but there might be some lightweight alternatives. If you need a lightweight window manager, you can't get any faster than Fluxbox.


Johan.

_________________
Johan Dams, Genesi USA Inc.
Director, Software Engineering

Yep, I have a blog... PurpleAlienPlanet


Top
   
 Post subject:
PostPosted: Wed Dec 05, 2007 10:25 am 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
Getting xorg down in size won't be easy, but there might be some lightweight alternatives. If you need a lightweight window manager, you can't get any faster than Fluxbox.
You can try the "KDrive" X.org if you need lightweight X server, however you'll lose OpenGL for the privilege if I remember correctly, on some chipsets at least.

There are also a few other solutions for thinning down X.org - it will require you to edit the build system files to remove components, and maybe add a few in. Why not try Xcb instead of Xlib, for a start? Get rid of bitmap fonts.. and any esoteric formats there may be in the process. Disable DGA, and all those extensions you don't need (don't even build them!) because really all you need is XAA/EXA, DRI support and the Radeon driver, and a couple small support libraries to get a full X server with full acceleration..

_________________
Matt Sealey


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group