Public bug reported:

Binary package hint: hotkey-setup

Hi.

On a TravelMate C200  from Acer, Inc.

There are a few keys on top. I wanted the swiwel key to work and did the
following:

# Acer Laptops
setkeycodes     0x6b    219             # Rotate display

In /etc/X11/Xsession.d/ I created the file 40custom_xmodmap with the
contents

xmodmap -e "keycode 219 = XF86RotateWindows"

Now in gconf-editor I added to metacity the key XF86RotateWindows to run this 
script:
# swiweldisplay.sh
# Arnos dirty xrandr "swiwel display" hack 
# 2007

RANDRSTATE=`xrandr -q |grep rotation |sed s/Current\ rotation\ -\ //`
echo $RANDRSTATE > /home/arno/config/randrstate

if [ "$RANDRSTATE" == "normal" ]; then
   xrandr -o right;
   xsetwacom set stylus rotate CW
   exit;
fi

if [ "$RANDRSTATE" == "right" ]; then
   xrandr -o inverted;
   xsetwacom set stylus rotate HALF
   exit;
fi

if [ "$RANDRSTATE"  == "inverted" ]; then
   xrandr -o left;
   xsetwacom set stylus rotate CCW
   exit;
fi

if [ "$RANDRSTATE" == "left" ]; then
   xrandr -o normal;
   xsetwacom set stylus rotate NONE
   exit;
fi


OK it rotates all the way around. Maybe not practical but it is what I needed. 

It works!

Now, if someone knows how to get the X server to handle this instead of
metacity command binding, it would be greater. But for now it works very
well.

** Affects: hotkey-setup (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
TravelMate C200 Display rotate key
https://bugs.launchpad.net/bugs/116073
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to