Rotation support for OS2008

Rodrigo made a nice patch to support the RandR extension with Xomap so you can rotate the screen at runtime. I made some fixes and compiled everything for OS2008 on the N8x0. I also wrote a little status bar applet to make use of the rotation. The rotation works quite nice with hildon. Some minor glitches are to be expected as some dialogs are made with fixed sizes. But overall it is nice for browsing and reading emails and so on.

Important update:
As fanoush pointed out, xv was broken with my initial patch. The updated patch should fix this. He also noted that due to the broken package structure in maemo, the osso-software-version package breaks when changing package versions of packages dependend of it. Hence I renamed the xserver-xomap_1.3.99.0~git20070321-0osso20074202-randr01_armel.deb package back to xserver-xomap_1.3.99.0~git20070321-0osso20074202_armel.deb, I also removed the libxrandr2 package as you can use the one in the maemo repositories. To fix your osso-software-version package please install
xserver-xomap_1.3.99.0~git20070321-0osso20074202_armel.deb
and libxrandr2_1.2.1-1_armel.deb

Finally, also reflash the updated kernel.

Instructions

As the rotation support is hardware based (the LCD controller supports rotation) you need to flash a modified kernel. You can try to boot the kernel first, without flashing:
flasher --load --boot --kernel kernel-rx-34_2.6.21.0-osso71-randr2
If everything works as expected you can flash it with:
flasher -f -k kernel-rx-34_2.6.21.0-osso71-randr2

You still have to manually update Xomap, either via Red Pill Mode or via the terminal as root:
dpkg -i xserver-xomap_1.3.99.0~git20070321-0osso20074202_armel.deb

To actaully rotate the screen, you might want to try this automatic install. It will install libxrandr and my rotate statusbar applet. You can also install the console based xrandr.

If you have any remarks or comments, write me or join #maemo on irc.freenode.net, my nick is jott (just /msg me).

Files

kernel-rx-34_2.6.21.0-osso71-randr2 (md5: c64d48d731b5bd2007f0d836cd25b977)
xserver-xomap_1.3.99.0~git20070321-0osso20074202_armel.deb
rotate-sb-plugin_0.1-1_armel.deb
xrandr_1.2.2-0_armel.deb
rotate-sb-plugin-0.1.tar.bz2 (Source of the rotation plugin)
Updated_blizzard_rotation_support_v2.diff (Kernel patch used)

Disclaimer

As this modifications make changes to core compontents, you should make a backup and you should know what you are doing. I take no responsibility for things you break.

Good luck ;-)

Screenshots

Applet:
Screenshot of the applet

Rotated desktop:
Screenshot of a rotated desktop

Browser:
Screenshot of the browser