5 # Tool to rotate LVDS panel
8 source /etc
/conf.d
/acpi-eeepc-generic.conf
9 source /etc
/acpi
/eeepc
/acpi-eeepc-generic-functions.sh
11 [ ! -d "$EEEPC_VAR" ] && mkdir
$EEEPC_VAR
13 function rotate_toggle
{
14 CURRENT
=`xrandr | grep LVDS | awk '{print $4}'`
15 if [ "$CURRENT" = "left" ]; then
17 elif [ "$CURRENT" = "inverted" ]; then
19 elif [ "$CURRENT" = "right" ]; then
24 if [ "$ROTATION" ]; then
25 rotate_lvds
"$ROTATION"
26 echo "$ROTATION" > $EEEPC_VAR/rotation_saved
30 function restore_rotation
{
31 if [ -e "$EEEPC_VAR/rotation_saved" ]; then
32 ROTATION
=$
(cat $EEEPC_VAR/rotation_saved
)
33 rotate_lvds
"$ROTATION"
37 function rotate_lvds
{
38 eeepc_notify
"Rotate LCD \"$1\"" screen
39 xrandr
--output LVDS
--rotate "$1"