Author Topic: Rotate Screen Other Direction? (1.1.0beta1, 6000)  (Read 3712 times)

rrnwexec

  • Full Member
  • ***
  • Posts: 140
    • View Profile
    • http://
Rotate Screen Other Direction? (1.1.0beta1, 6000)
« on: January 09, 2006, 03:38:17 am »
Hello,

In beta1, the Rotate function rotates the screen from portrait mode to landscape by rotating by -90 degrees (i.e. 90 degrees counterclockwise).

How can I make the rotation +90 degrees (i.e. 90 degrees clockwise)?

** Why would I want to do this? The IR port on the 6000 needs to be facing the IR port on my mini keyboard. Using the standard rotation, this is not possible.

Thanks in advance,
Randall.
--
6000, 5600, 5500, 1000
pdaXrom, OZ/GPE, OZ/Opie, Sharp ROM
Too many gadgets to mention

web-angel

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • http://
Rotate Screen Other Direction? (1.1.0beta1, 6000)
« Reply #1 on: January 09, 2006, 05:17:31 am »
the comand for rotating the screen is : xrandr
Look at xrandr help or xrandr /? to have help for this fonction.

xrandr -o right : for what you want
xrandr -o normal : for normal usage


If you want to do this automaticaly the script is stored under /etc/sysconfig/clamshell
SL-C860 / PdaXrom RC12 - CF Wifi linksys - Sd 512 (ext2) Cf 512 (fat)

Mjolinor

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Rotate Screen Other Direction? (1.1.0beta1, 6000)
« Reply #2 on: January 09, 2006, 05:23:43 am »
Quote
Hello,

In beta1, the Rotate function rotates the screen from portrait mode to landscape by rotating by -90 degrees (i.e. 90 degrees counterclockwise).

How can I make the rotation +90 degrees (i.e. 90 degrees clockwise)?

** Why would I want to do this? The IR port on the 6000 needs to be facing the IR port on my mini keyboard. Using the standard rotation, this is not possible.

Thanks in advance,
Randall.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110098\"][{POST_SNAPBACK}][/a][/div]

This is rotate.sh from my /usr/bin directory
Quote
#!/bin/sh
ROTA=`xrandr | grep 'Current rotation' | sed -e 's/Current rotation\ \-\ //g'`

case "$ROTA" in
    normal)
        xrandr -o right
        ;;
    left)
        xrandr -o normal
        ;;
    right)
        xrandr -o normal
        ;;
    inverted)
        xrandr -o normal
        ;;
esac

This one does all 4 orientations
Quote
#!/bin/sh

ROTA=`xrandr | grep 'Current rotation' | sed -e 's/Current rotation\ \-\ //g'`

case "$ROTA" in
    normal)
        xrandr -o left
        ;;
    left)
        xrandr -o inverted
        ;;
    right)
        xrandr -o normal
        ;;
    inverted)
        xrandr -o right
        ;;
esac
#

It's pretty straightforward. It gets teh orientation as it is now and calls it ROTA
It then compares ROTA to one of four different allowable values.
When it finds a match it executes the command under that match.

So the second one just rotates all four orientations one after the other, once every time you run it. The first one puts it to only normal or right no matter where it was when it started.
« Last Edit: January 09, 2006, 05:28:36 am by Mjolinor »

rrnwexec

  • Full Member
  • ***
  • Posts: 140
    • View Profile
    • http://
Rotate Screen Other Direction? (1.1.0beta1, 6000)
« Reply #3 on: January 11, 2006, 11:23:21 pm »
Thanks very much to all who responded. The scripts work well. Mission accomplished!
--
6000, 5600, 5500, 1000
pdaXrom, OZ/GPE, OZ/Opie, Sharp ROM
Too many gadgets to mention