diff options
author | Matthew Allum <mallum@openedhand.com> | 2005-08-31 21:08:40 +0000 |
---|---|---|
committer | Matthew Allum <mallum@openedhand.com> | 2005-08-31 21:08:40 +0000 |
commit | 7755d9d194b42ea859096f805f2e22ae5b6e6281 (patch) | |
tree | a4430bb7c0b4c298b6a9099fcfbdb7cfc045ae98 /openembedded/packages/x11/x11-common/etc/X11/Xserver | |
parent | 962491ebe2df3563ea8e9b6803949c98c387a134 (diff) | |
download | poky-7755d9d194b42ea859096f805f2e22ae5b6e6281.tar.gz |
rename x11-common to xserver-kdrive-common
git-svn-id: https://svn.o-hand.com/repos/poky@12 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/x11/x11-common/etc/X11/Xserver')
-rw-r--r-- | openembedded/packages/x11/x11-common/etc/X11/Xserver | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/openembedded/packages/x11/x11-common/etc/X11/Xserver b/openembedded/packages/x11/x11-common/etc/X11/Xserver deleted file mode 100644 index 8492bfe214..0000000000 --- a/openembedded/packages/x11/x11-common/etc/X11/Xserver +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | |||
4 | XSERVER=Xipaq | ||
5 | if [ -f /usr/bin/Xfbdev ]; then | ||
6 | XSERVER=Xfbdev | ||
7 | fi | ||
8 | if [ -f /usr/bin/Xepson ]; then | ||
9 | XSERVER=Xepson | ||
10 | fi | ||
11 | if [ -f /usr/bin/Xorg ]; then | ||
12 | XSERVER=Xorg | ||
13 | fi | ||
14 | if [ -f /usr/bin/Xomap ]; then | ||
15 | XSERVER=Xomap | ||
16 | fi | ||
17 | |||
18 | . /etc/profile | ||
19 | |||
20 | module_id() { | ||
21 | ## used to read from assets, but sometimes assets is corrupted | ||
22 | # grep "Module ID" /proc/hal/assets | sed "s/.*://" | ||
23 | ## used to read from /proc/hal/model, but that is removed in 2.6 | ||
24 | # echo ' iPAQ' `cat /proc/hal/model` | ||
25 | awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo | ||
26 | } | ||
27 | |||
28 | export USER=root | ||
29 | |||
30 | ARGS="-dpi 100 -br -pn" | ||
31 | |||
32 | # use ucb 1x00 touchscreen if present | ||
33 | if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/touchscreen/ucb1x00 ]; then | ||
34 | ARGS="$ARGS -mouse /dev/touchscreen/ucb1x00" | ||
35 | fi | ||
36 | |||
37 | # use usb mouse if present | ||
38 | # Xorg doesn't support "-mouse" option, and uses /dev/input/mice automatically | ||
39 | if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/input/mice ] && [ "$XSERVER" != "Xorg" ]; then | ||
40 | ARGS="$ARGS -mouse /dev/input/mice" | ||
41 | fi | ||
42 | |||
43 | # start off server in conventional location. | ||
44 | case `module_id` in | ||
45 | "HP iPAQ H3100" | "HP iPAQ H3800") | ||
46 | ARGS="$ARGS -screen 320x240@90 -rgba vrgb" ;; | ||
47 | "HP iPAQ H3600" | "HP iPAQ H3700" | "HP iPAQ H3900") | ||
48 | ARGS="$ARGS -screen 320x240@270 -rgba vbgr" ;; | ||
49 | "HP iPAQ H5400" | "HP iPAQ H2200") | ||
50 | ARGS="$ARGS -rgba rgb" ;; | ||
51 | "Ramses") | ||
52 | # What is this "vt2" in aid of? | ||
53 | ARGS="$ARGS -screen 320x240@90 -rgba vrgb vt2" ;; | ||
54 | # both 'Sharp-Collie' and just 'Collie' have been reported | ||
55 | *Poodle) | ||
56 | ARGS="$ARGS -screen 320x240@270 -rgba vrgb" ;; | ||
57 | *Collie) | ||
58 | ARGS="$ARGS -screen 320x240@270 -rgba vrgb" | ||
59 | # Horrible hack required to enable resuming after suspend | ||
60 | rm -f /dev/apm_bios | ||
61 | killall -9 apmd | ||
62 | ;; | ||
63 | "SHARP Shepherd" | "SHARP Husky" | "SHARP Corgi") | ||
64 | ARGS="$ARGS -rgba rgb" ;; | ||
65 | "SHARP Spitz" | "SHARP Akita" | "SHARP Borzoi") | ||
66 | ARGS="$ARGS -rgba rgb -screen 480x640@270" ;; | ||
67 | "Simpad") | ||
68 | ARGS="$ARGS -rgba rgb" ;; | ||
69 | "Generic OMAP1510/1610/1710") | ||
70 | ARGS="$ARGS -mouse /dev/input/event0" ;; | ||
71 | esac | ||
72 | |||
73 | exec $XSERVER $ARGS $* | ||