AutoRotate – Ubuntu Installation Instructions

These are the instructions for installing the autorotate script on Ubuntu laptops using a prepackaged binary. If you are not using Ubuntu, then follow the general installation instructions.

Installation Instructions (Ubuntu Karmic Koala)

  1. Make sure you have a working accelerometer that is reading the proper orientation.
  2. Add my ThinkPadX61T PPA repository by appending the following line to the end of the /etc/apt/sources.list file:
    deb http://ppa.launchpad.net/kkrizka/thinkpad-x61t/ubuntu karmic main
  3. Update apt-get’s package list:
    sudo apt-get update
  4. Install the script and necessary packages:
    sudo apt-get install wacom-tools python-xrandr autorotate
  5. You can have the auto-rotate.py damon to start with GDM, so it will be available to all users, even during login. This is done by adding the following line to the end of the /etc/gdm/Init/Default file before the exit 0 command:
    auto-rotate.py&
  6. Restart GDM to start the script:
    sudo /etc/init.d/gdm restart
  7. Swivel down your screen into the tablet mode, and tilt it at around 45 degrees to test if everything is working.
  8. Follow the general instructions for setting up buttons for manual rotation.

6 Comments

leave a comment
  1. Dan St.Andre / Jan 28 2010

    Sir,
    I am desparate for help getting Karmic to work adequately on my tablet-PC. From all of my internet research, you seem to have the most extensive handle on what to do and how to do it. I have no desire to profit from these efforts beyond a working tablet. Please tell me there is some way that you are able to help me to help myself.
    My troubles extend from total failure of “sleep” and “hibernate” to issues with almost everything “tablet” (rotate, stylus, blue-keys, extra keys and buttons) and the X6-Ultrabase(tm) and ultra-bay devices.
    Today I fetched the parts for your autorotate and I will work to deploy that tonight.
    My next most urgent “need” is for “sleep” and “hibernate” to work. This is coupled with the need to sort out the multi-boot aspects of GRUB2.
    I recently loaded Karmic onto my EmperorLinux Raven Tablet (Lenovo Thinkpad X61 Tablet). I replaced the as-built HDD with a new and larger drive and did a cold install of v9.10. Previously I used the Hardy (v8.04.3 LTS) edition of Ubuntu.

    Thanks in advance,
    ~~~ 0;-Dan

    PS/ Using Karmic and Firefox 3.5.7, I had trouble with navigation from your “projects” menu. Items would drop down, but would vanish before I could make a selection. ~~~ 0;-/

  2. Karol Krizka / Jan 31 2010

    For me, hibernate and sleep worked out of the box, without any problems, on Ubuntu Karmic. What kind of graphics card do you have? Those are usually the problem.

    Also, to get to the project list. Just click the “Projects” link and forget the drop down that comes. I’ll try to fix the drop down later though.

  3. Gaurav / Feb 22 2010

    well i finally got my screen to rotate but the problem is that once the screen is rotated the mouse messes up. up becomes down and right key becomes left.

    so if i have to point to applications (top left corner) on my desktop i have to actually move my stylus to right bottom corner.

  4. Karol Krizka / Feb 24 2010

    Can you run the auto-rotate.py script from command line and let me know what messages it prints out?

    It might be a problem with wacom tools not detecting the devices, a known problem in Ubuntu Karmic. But apparently it was fixed for the next version of Ubuntu. For now, you can fix it by following these instructions:
    https://help.ubuntu.com/community/X61T#Fixing Touch

Trackbacks and Pingbacks

  1. AutoRotate 0.3 Released | Karol Krizka
  2. AutoRotate 0.4 – The not-allowed-to-own-the-service-“net.krizka.autorotate” Release | Karol Krizka
Leave a Comment