[QtMoko] landscape mode under QX

Francesco De Vita fdvjoif at vodafone.it
Wed Sep 14 12:26:32 CEST 2011


Hi!
I found a workaround to use apps under qx and in a usable landscape mode.
You have to make a simple script but:
- you have to launch it within xterm with matchbox (+ virtual keyboard);
- the screen flickers a little (very little, it is usable), I think I have
to set a proper screen refresh rate but I didn't manage to get it yet;

example:

> #!/bin/sh
> killall matchbox-keyboard
> xrandr -o 1
> xinput set-int-prop "Touchscreen" "Evdev Axis Inversion" 8 0 1
> xinput set-int-prop "Touchscreen" "Evdev Axes Swap" 8 0
> xinput set-int-prop "Touchscreen" "Evdev Axis Calibration" 32 98 911 918
107
>
> YOUR_APP_HERE
>
> xrandr -o normal
> xinput set-int-prop "Touchscreen" "Evdev Axis Inversion" 8 0 0
> xinput set-int-prop "Touchscreen" "Evdev Axes Swap" 8 1
> xinput set-int-prop "Touchscreen" "Evdev Axis Calibration" 32 107 918 911
98

change YOUR_APP_HERE with for example:
openttd
numptyphysics -geometry 640x480
scummvm

enjoy ;)

Joif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmoko.org/pipermail/community/attachments/20110914/441cf357/attachment.htm>


More information about the community mailing list