[maemo-developers] [maemo-developers] running af at 24-bit depth
From: Kimmo.Hamalainen at nokia.com Kimmo.Hamalainen at nokia.comDate: Wed Jun 1 19:18:36 EEST 2005
- Previous message: [maemo-developers] playing with themes
- Next message: [maemo-developers] running af at 24-bit depth
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, If you have Xephyr in Scratchbox, it should work like this without hacks: 1) Make the following script outside Scratchbox: #!/bin/sh -e prefix=/scratchbox/users/${USER}/targets/PC/usr export LD_LIBRARY_PATH=${prefix}/lib; export LD_LIBRARY_PATH exec ${prefix}/bin/Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac 2) Run the script _outside_ Scratchbox. Xephyr should display a window. 3) Login to Scratchbox 4) Type the following commands: [sbox-PC: ~] > export DISPLAY=<IP of host running Xephyr>:2 [sbox-PC: ~] > af-sb-init.sh start BR, Kimmo > -----Original Message----- > From: maemo-developers-bounces at maemo.org > [mailto:maemo-developers-bounces at maemo.org]On Behalf Of ext Aleksandr > Koltsoff > Sent: 30 May, 2005 15:16 > To: maemo-developers at maemo.org > Subject: [maemo-developers] running af at 24-bit depth > > > Hello > > Most of you might know that running af-sb-init.sh will lead > to funny screens > when your X server is at 24bpp. > > The component that provides images to applications > (sapwood-server), has a > hardcoded value in it that is set to 16. Since the process > runs without a > Gdk-context, it's not easy to detect the depth directly (I'm > guessing here > though). > > I've modified the server so that the depth can be controlled via an > environmental variable called SAPWOOD_DEPTH and if it's set > to 24, then > sapwood will use that. > > After this, af runs ok on 24bpp. > > I put a compiled (sbox/i386) debs, sources and a README > (renamed to usage.txt > because of ISP) with instructions here: > http://koltsoff.fi/770/sapwood-16_24_bit/ > > And yes I know it's a hack, and yes I know better ways of > doing this, but > again, it's just a hack. I do not propose including that into > the SDK, but > wouldn't oppose it either. > > ak. > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://maemo.org/mailman/listinfo/maemo-developers >
- Previous message: [maemo-developers] playing with themes
- Next message: [maemo-developers] running af at 24-bit depth
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]