OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: mullin on August 24, 2005, 09:03:44 am
-
I'm using cacko 1.22, when i run the following applications, they display at Portrait mode and the Menu's Rotation is missing. I want them to display by Landscape.
e.g. qpdf2, Advanced FM, QPSword
any ideas to make them display at Landscape mode or any shortkey to do so?
thanks!
-
I believe you need the rotation plugin.
-
Here is a script I use to open opie-reader in landscape:
#!/bin/sh
DEFROT=`echo $QWS_DISPLAY | cut -d: -f2 | cut -b4-`
LSROT=`expr $DEFROT - ${1:-90}`
# DEFROT is 270 and LSROT is 180 on a Zaurus SL5000D
qcop "QPE/System" "setDefaultRotation(int)" $LSROT
qcop "QPE/System" "execute(QString)" "uqtreader"
qcop "QPE/System" "setDefaultRotation(int)" $DEFROT
You can run this from the gui by creating a .desktop file for it in the appropriate place. In my case I save this in the /opt/Qtopia/bin directory as (say) landscapereader then go to the /opt/Qtopia/apps/Applications directory and copy the opie-reader desktop file:
cp uqtreader.desktop lsqtreader.desktop
Then I edit lsqtreader.desktop to change the exec line to point to landscapereader instead of uqtreader.
(WARNING: I've quoted some of this from memory so some of the details may be slightly different but the essence is correct). Also, I've heard that the setDefaultRotation qcop message doesn't work on all ROMs (but it does on all the ROMs I have tried)