]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/xserver-common/files/cxk-rotation.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / xserver-common / files / cxk-rotation.patch
1 diff -Nur xserver-common-1.1~/X11/Xinit.d/11zaurus xserver-common-1.1/X11/Xinit.d/11zaurus
2 --- xserver-common-1.1~/X11/Xinit.d/11zaurus    2005-08-29 03:52:46.000000000 -0700
3 +++ xserver-common-1.1/X11/Xinit.d/11zaurus     2005-09-12 11:03:37.000000000 -0700
4 @@ -5,8 +5,19 @@
5     exit 0
6  fi
7  
8 +module_id() {
9 +    # Get model name
10 +    echo `grep "^Hardware" /proc/cpuinfo | sed -e "s/.*: *//" | tr a-z A-Z`
11 +}
12 +
13  chkhinge -e
14  if [ $? = 12 ]; then
15 -   xrandr -o right
16 +   case `module_id` in
17 +       *SPITZ | *AKITA | *BORZOI)
18 +               DIRECTION="left" ;;
19 +        default)
20 +                DIRECTION="right" ;;
21 +   esac
22 +   xrandr -o $DIRECTION
23  fi
24