[QtMoko] landscape mode under QX
Guilhem Bonnefille
guilhem.bonnefille at gmail.com
Thu Sep 15 08:43:12 CEST 2011
2011/9/14 Francesco De Vita <fdvjoif at vodafone.it>:
> 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
You can have a generic wrapper if you replace YOUR_APP_HERE with (I think):
"$@"
--
Guilhem BONNEFILLE
-=- JID: guyou at im.apinc.org MSN: guilhem_bonnefille at hotmail.com
-=- mailto:guilhem.bonnefille at gmail.com
-=- http://nathguil.free.fr/
More information about the community
mailing list