martes, 1 de julio de 2008

Rotación de la Pantalla

Para hacer funcionar la rotación de la pantalla primero debes agregar bajo la sección “screen” de /etc/X11/xorg.conf la opción

Option "RandRRotation" "on"

Y luego reiniciar el sistema.

Después baja estos archivos:

1.Para dar vuelta la pantalla: http://ubuntuforums.org/attachment.php?attachmentid=71777&d=1211903649
2.Para rotar la pantalla en sentido del reloj: http://ubuntuforums.org/attachment.php?attachmentid=71778&d=1211903649
3.Para rotar la pantalla en sentido contrario al reloj: http://ubuntuforums.org/attachment.php?attachmentid=71779&d=1211903649

Después de que los bajes, anda a terminal y como root ejecuta, sin las comillas, lo siguiente:

# chmod +x “nombredearchivo.sh”

Después ejecuta los archivos y listo, la pantalla rota y con los drivers posteados acá para la touchscreen, configurados completamente.

Esta es la información de cada archivo .sh:

flip-screen.sh

#!/bin/bash

STR=`xrandr --verbose | awk '/default/{print $5}'`

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

rotate-screen-clockwise.sh

#!/bin/bash

STR=`xrandr --verbose | awk '/default/{print $5}'`

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

rotate-screen-anticlockwise.sh

#!/bin/bash

STR=`xrandr --verbose | awk '/default/{print $5}'`

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

Fuente: http://ubuntuforums.org/showthread.php?t=442483&page=106

No hay comentarios: