[QtMoko] landscape mode under QX
fdvjoif at vodafone.it
fdvjoif at vodafone.it
Fri Sep 16 13:02:33 CEST 2011
Found the problem with xorg, maybe it just needs to load :)
this script works quite well and without matchbox:
> #!/bin/sh
> sleep 5
> 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
> APP_NAME_HERE
Now remains only the issue with the refresh frequence when the screen is
rotated, but for now it is noticeable mainly with OpenTTD. I tryed with
ScummVM and NumptyPhysics and (it seems to me) it is not a problem.
Is it possible to implement this script as a launcher in the Qx menu? How?
For scummvm I would like to use the AUX button to access the in game
menus, the GameRunner guys use this script:
> #!/bin/sh
>
> # Save current AUX Key mapping
> SAVE_KEY="$(xmodmap -pke | grep 'keycode 177')"
>
> # Remove the Enlightenment binding for AUX
> enlightenment_remote -binding-key-del ANY "Keycode-177" NONE 1
"simple_lock" ""
>
> # Map AUX Key to F5
> xmodmap -e "keycode 177 = F5"
[...]
> # Restore the AUX Key mapping
> xmodmap -e "$SAVE_KEY"
>
> # Restore Enlightenment mapping
> enlightenment_remote -binding-key-add ANY "Keycode-177" NONE 1
"simple_lock" ""
any idea on how to adapt it to QtMoko? Thank you!
Joif
More information about the community
mailing list