Ticket #1145 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

add hw assisted rotation support to xglamo via randr

Reported by: dodji@… Owned by: dodji@…
Priority: high Milestone:
Component: Xfbdev (kdrive), Xglamo Version: unspecified
Severity: normal Keywords:
Cc: buglog@…, olv@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description


Attachments

fb-geometry-fix.patch (4.8 KB) - added by dodji@… 11 years ago.
fix geometry setting and add support for rotation
fb-geometry-fix.2.patch (8.4 KB) - added by dodji@… 11 years ago.
enhanced support of rotation and geometry setting in the glamo fb kernel driver
glamo-randr-support.patch.txt (18.5 KB) - added by dodji@… 11 years ago.
initial randr support to xglamo
glamo-randr-support.patch.2.txt (18.4 KB) - added by dodji@… 11 years ago.
reworked Xglamo RandR support patch
glamo-randr-support.patch.3.txt (21.7 KB) - added by dodji@… 11 years ago.
reworked randr support patch
glamo-randr-support.patch.4.txt (24.3 KB) - added by dodji@… 11 years ago.
reworked Xglamo randr support patch

Change History

comment:1 Changed 11 years ago by dodji@…

I have looked into this and created two patches to add the rotation support.

There is a kernel patch and an Xglamo patch.

The kernel patch has to be added to the normal linux-openmoko kernel patchset
found in the openmoko plus the patch
http://people.openmoko.org/olv/tmp/smedia-fbset-support-12-05.patch.

The Xglamo patch has to added to my Xglamo tree that is at
http://cgit.freedesktop.org/~dodji/xglamo .

Once you have done that, log into the neo (via ssh for instance) and do :

fbset -pixclock 100000
VERBOSITY=5 /etc/init.d/xserver-nodm restart
DISPLAY=:0 xrandr --output default --rotate inverted
DISPLAY=:0 xrandr --output default --rotate normal
DISPLAY=:0 xrandr --output default --rotate left

There are some rotation bugs, but they should be fixable.

comment:2 Changed 11 years ago by dodji@…

  • dependson set to 1067

comment:3 Changed 11 years ago by olv@…

  • Cc olv@… added

Changed 11 years ago by dodji@…

fix geometry setting and add support for rotation

comment:4 Changed 11 years ago by dodji@…

  • attachments.isobsolete changed from 0 to 1

Changed 11 years ago by dodji@…

initial randr support to xglamo

comment:5 Changed 11 years ago by dodji@…

  • attachments.isobsolete changed from 0 to 1

Changed 11 years ago by dodji@…

reworked Xglamo RandR support patch

comment:6 Changed 11 years ago by dodji@…

  • attachments.isobsolete changed from 0 to 1

Changed 11 years ago by dodji@…

reworked Xglamo randr support patch

comment:7 Changed 11 years ago by dodji@…

  • attachments.isobsolete changed from 0 to 1

comment:8 Changed 11 years ago by dodji@…

  • Status changed from new to closed
  • Resolution set to fixed

Okay, my kernel patches have been reworked and pushed to svn in revions #3788,
#3790 and #3801. So now, the kernel recipe
packages/linux/linux-openmoko_2.6.22.5.bb from OpenMoko? should just build the
kernel with those patches in. They bring rotation support to the framebuffer.

On top of that, xglamo commits until
http://cgit.freedesktop.org/~dodji/xglamo/commit/?id=4ac647010aef6b955d6dfb4864dcc58494561b06

should bring RandR rotation/resize support to the Xglamo server on GTA02.

The kdrive recipe packages/xorg-xserver/xserver-kdrive_1.3.0.0.bb from OpenMoko?
has been updated to grab the Xglamo sources from my git repo from now. The
corresponding revision number from monotone.openmoko.org is
d0954a8a227efc014d29aba8d911adfc59934357.

So basically, getting the last OpenMoko? and generating an image should bring
RandR support in Xglamo for now.

So I am closing this bug.

Note: See TracTickets for help on using tickets.