Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Location
    USA
    Posts
    527
    Thanks
    26
    Thanked 74 Times in 72 Posts

    Ubuntu Portrait Mode

    I'm running Ubuntu, and I have edited the /etc/X11/xorg.conf file to allow my screen to rotate by 90 degrees by adding
    Code:
    Option "RandRRotate" "On"
    to the file. This works just dandy in the console by doing "xrandr -o left" and such.

    What I want is for my computer to start in portrait mode (ie rotated left) to begin with. When I add
    Code:
    Option "Rotate" "Left"    # or Option "Rotate" "CCW"
    to the file, Ubuntu (along with the login screen) starts in portrait mode, which is good. However, I can no longer "xrandr -o normal" to go back to landscape mode.

    Is there a way to have both enabled at the same time?
    Trinithis

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Just put
    Code:
    xrandr -o left
    in your ~/.xinitrc and it will be ran when you start X.
    OracleGuy

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Location
    USA
    Posts
    527
    Thanks
    26
    Thanked 74 Times in 72 Posts
    Do I need some extra syntax? It's not doing the job. If it makes a difference, I had to create the file, and I'm using Hardy.

    EDIT: Also adding it to ~/.xsession wouldn't let me log in because it errors out.
    Last edited by Trinithis; 10-06-2008 at 02:56 AM. Reason: fixed obscenely bad grammar
    Trinithis

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    The xinitrc might not be getting called if X starts because of XDM which I assume you are running. (It automatically starts X on boot and presents you with a GUI login screen)

    Try googling to see if there is a similar init script that gets called when it starts X. I don't know if there is one off hand.
    OracleGuy

  • #5
    Regular Coder
    Join Date
    Jun 2007
    Location
    USA
    Posts
    527
    Thanks
    26
    Thanked 74 Times in 72 Posts
    Ah, thanks.
    Trinithis

  • #6
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by oracleguy View Post
    The xinitrc might not be getting called if X starts because of XDM which I assume you are running. (It automatically starts X on boot and presents you with a GUI login screen)

    Try googling to see if there is a similar init script that gets called when it starts X. I don't know if there is one off hand.
    Quote Originally Posted by Trinithis View Post
    Ah, thanks.
    you can avoid to use (xgk)dm and use startx instead to start x manualy. This is good when you use the system a long time without shutdown, have problem with some x application or you want to run something what need a lot of memory and you don't need x.

    best regards


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •