I decided to add the Console rotation patch which I submitted before to
linux-2.5.59. The orientation of the display is determined by the
valued of display.rotate, and the appropriate drawing functions in
display.dispsw. If the display is rotated, fontdata will be prerotated,
and the appropriate console window dimenstions are swapped if necessary.
Currently, this is just an implementation and no hooks are provided yet
to enable/disable this. This will require some coordination between the
console layer and fbdev.
1. cannot support a fontwidth not a multiple of 8 if rotated 180
degrees, and a fontheight not a multiple of 8 if rotated by 90 degrees.
This is a limitation with fb_imageblit which has no support for bitmap
2. code for panning when rotated by 90 degrees is still buggy, so it's
3. minor graphics glitches.
4. no support for hardware based rotation, but this should be easy to
You can test this by defining DEBUG_ROTATE in the following code
* change to the appropriate orientation and
* drawing function to test for rotation
p->dispsw = &fbcon_180_dispsw;
p->rotate = FB_VMODE_ROTATE_180
I've tested the code with several drivers including vga16fb and vesafb.
The patch is at
Any comments welcome.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Feb 07 2003 - 22:00:20 EST