AutoRotate – General Installation Instructions
These are the instructions on now to install the AutoRotate daemon from source, if you are using something other than Ubuntu (for which binary packages are available, and recommended). I should note that I haven’t tested any other systems than Ubuntu, so I don’t guarantee that the instructions will work.
Let me know if you encounter any problems or successes.
Installation Instructions (From Source)
- Make sure you have a working accelerometer that is reading the proper orientation.
- Install wacom tools using your distribution’s package system.
- Install python-xrandr
- Download python-xrandr 0.1.1 source
- Unpack the sources
tar -xvzf python-xrandr-0.1.1.tar.gz
- Build and install
cd python-xrandr-0.1.1 && sudo ./setup.py install
- Install autorotate
- Download autorotate 0.4 source
- Unpack the sources
tar -xvzf autorotate-0.4.tar.gz
- Build and install
cd autorotate-0.4 && sudo ./setup.py install
- Have auto-rotate.py daemon on GDM. This way 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&
- Restart GDM to start the script:
sudo /etc/init.d/gdm restart
- Swivel down your screen into the tablet mode, and tilt it at around 45 degrees to test if the script works!
- Follow the general instructions for setting up buttons for manual rotation.
Hi,
I’m trying to install your autorotate utility, however, I’m having trouble after running setup.py install:
error: can’t copy ‘LICENSE’: doesn’t exist or not a regular file
error: can’t copy ‘net.krizka.autorotate.service’: doesn’t exist or not a regular file
error: can’t copy ‘net.krizka.autorotate.conf’: doesn’t exist or not a regular file
These files seem to be missing from the autorotate-0.4.tar.gz files; A mistake mayhaps?
Btw, I’m trying to package this and python-xrandr 0.1.1 for Fedora 12 x86_64 and i386.
Kind regards,
Rubin