[Gta04-owner] [QtMoko] QX touchscreen input do not work

Radek Polak psonek2 at seznam.cz
Wed Sep 12 07:57:15 CEST 2012

On Wednesday, September 12, 2012 12:48:05 AM NeilBrown wrote:

> On Tue, 11 Sep 2012 23:33:27 +0100 Neil Jerram <neil at ossau.homelinux.net>
> wrote:
> > Radek Polak <psonek2 at seznam.cz> writes:
> > > On Monday, September 10, 2012 08:17:05 PM Neil Jerram wrote:
> > >> I have some theoretical patches for that (attached), but I haven't
> > >> offered them to Radek because I haven't really got QX working much at
> > >> all, and so I couldn't be sure if the QX rotation support was working.
> > >> 
> > >> The first attached patch is for the main QtMoko repository; the second
> > >> is for the Arora submodule.
> > > 
> > > Hi Neil,
> > > it's applied now. I tried in arora and it works good, so i expect QX to
> > > be working too - i will try later on Freerunner.
> > 
> > Great, thanks!
> > 
> > > Btw has anyone figured how to rotate X server on GTA04?
> > 
> > No, I don't think so.  I tried for a while before moving onto QtMoko,
> > but didn't manage to understand the omapfb X driver.  And Neil Brown
> > said recently that it was on his list of things he wanted to do but
> > couldn't yet.
> I spent a while looking into this and my conclusion is that while the frame
> buffer does support rotation, the Xorg driver for the omap3 framebuffer
> doesn't hook into that.

I think for me the framebuffer rotation is enough now. I have it rotated now 
after appending omapfb.rotate=1 omapfb.vrfb=y to kernel cmd line. But still i 
havent figured out two things:

1/ how to rotate the framebuffer on the fly? I tried:

	echo "1" > /sys/class/graphics/fb0/rotate

according to this [1] but it does not work for me.

2/ i need to rotate also the touchscreen inputs. X server has options for it 
[2], but i would like to play some SDL games on direct framebuffer. I tried 
e.g. dosbox, scummvm, abuse - they all work great but the touchscreen needs to 
swap x and y.

You can try e.g:

	export SDL_VIDEODRIVER=fbcon
	apt-get install scummvm




[2] Option "Rotate" "cw"
        Option "SwapX" "true"

More information about the community mailing list