Ticket #1145 (closed defect: fixed)
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
Change History
Changed 5 years ago by dodji@…
- Attachment fb-geometry-fix.patch added
fix geometry setting and add support for rotation
Changed 5 years ago by dodji@…
- Attachment glamo-randr-support.patch.txt added
initial randr support to xglamo
Changed 5 years ago by dodji@…
- Attachment glamo-randr-support.patch.2.txt added
reworked Xglamo RandR support patch
Changed 5 years ago by dodji@…
- Attachment glamo-randr-support.patch.3.txt added
reworked Xglamo randr support patch
comment:8 Changed 5 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.

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.