Xglamo X server progress report

Dodji Seketeli dodji at openedhand.com
Fri Jan 11 18:00:37 CET 2008


Hello,

I have recently added support of RandR to the Xglamo X server for the
GTA02 device. It supports rotation and resise from vga to qvga.

The code for that can be found in the xglamo source code repository at 
http://cgit.freedesktop.org/~dodji/xglamo. So if someone wants to hack
o the xserver, he can just clone the server and update the recipe file
of the xserver in OpenMoko to point to his cloned repository.

The xserver recipe packages/xorg-xserver/xserver-kdrive_1.3.0.0.bb has
been updated to grab the xserver code from
http://cgit.freedesktop.org/~dodji/xglamo now by default.

To make that support work, Olv and I did add a few patches to the
kernel, namely
http://svnweb.openmoko.org/trunk/src/target/kernel/patches/fbset-gta02-core.patch?rev=3790&view=log
and
http://svnweb.openmoko.org/trunk/src/target/kernel/patches/fbset-smedia-glamo.patch?rev=3801&view=log.

Those patches are activated in the default gta02 build now. Big thanks
to Werner for reviewing the patches and pushing them.

So in short, just compiling a new gta02 image should get you a working
RandR powered X server on the gta02 device.

To test it, you can connect to the device and do things like:

* xrandr --output default --rotate left <-- rotate the screen to
landscape

* xrandr --output default --rotate normal <-- rotate back to normal.

* xrandr --output default --mode 240x320 <-- switch to qvga

* xrandr --output default --mode 480x640 <-- switch to vga.

So now, when the accelerometer driver is ready someone should add hack
the neod deamon to detect when the device is flipped and use the
libxrander library to instruct the Xglamo server to rotate the screen
accordingly :-)

Until then, here are the mandatory screenshots for:

* screen in landscape:
http://folks.o-hand.com/dodji/omoko/moko-landscape.png

* screen in portrait: (okay you know this one)
http://folks.o-hand.com/dodji/omoko/moko-portrait.png

* screen in qvga portrait:
http://folks.o-hand.com/dodji/omoko/moko-qvga.png

* screen in qvga landscape:
http://folks.o-hand.com/dodji/omoko/moko-qvga-landscape.png


Cheers,

Dodji.

-- 
OpenedHand Ltd.
Unit R, Homesdale Business Center / 216 - 218 Homesdale Road /
Bromley / BR1 2QZ / United Kingdom.  Tel,fax: +44 (0) 208 819 6559

Expert Open Source For Consumer Devices - http://www.openedhand.com



More information about the openmoko-devel mailing list