diff options
Diffstat (limited to 'meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver')
-rw-r--r-- | meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver deleted file mode 100644 index 742f4ee5f0..0000000000 --- a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | |||
4 | . /etc/formfactor/config | ||
5 | |||
6 | # note xinit needs full server path | ||
7 | XSERVER=/usr/bin/Xipaq | ||
8 | if [ -f /usr/bin/Xfbdev ]; then | ||
9 | XSERVER=/usr/bin/Xfbdev | ||
10 | fi | ||
11 | if [ -f /usr/bin/Xepson ]; then | ||
12 | XSERVER=/usr/bin/Xepson | ||
13 | fi | ||
14 | if [ -f /usr/bin/Xorg ]; then | ||
15 | XSERVER=/usr/bin/Xorg | ||
16 | fi | ||
17 | if [ -f /usr/bin/Xomap ]; then | ||
18 | XSERVER=/usr/bin/Xomap | ||
19 | fi | ||
20 | |||
21 | . /etc/profile | ||
22 | |||
23 | module_id() { | ||
24 | ## used to read from assets, but sometimes assets is corrupted | ||
25 | # grep "Module ID" /proc/hal/assets | sed "s/.*://" | ||
26 | ## used to read from /proc/hal/model, but that is removed in 2.6 | ||
27 | # echo ' iPAQ' `cat /proc/hal/model` | ||
28 | awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo | ||
29 | } | ||
30 | |||
31 | export USER=root | ||
32 | |||
33 | ARGS=" -br -pn" | ||
34 | |||
35 | # use ucb 1x00 touchscreen if present | ||
36 | if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/touchscreen/ucb1x00 ]; then | ||
37 | ARGS="$ARGS -mouse /dev/touchscreen/ucb1x00" | ||
38 | fi | ||
39 | |||
40 | # use usb mouse if present | ||
41 | # Xorg doesn't support "-mouse" option, and uses /dev/input/mice automatically | ||
42 | if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/input/mice ] && [ "$XSERVER" != "Xorg" ]; then | ||
43 | ARGS="$ARGS -mouse /dev/input/mice" | ||
44 | fi | ||
45 | |||
46 | # kdrive 1.4 onwards needs -mouse args | ||
47 | if [ -n "$TSLIB_TSDEVICE" ]; then | ||
48 | ARGS="$ARGS -mouse tslib" | ||
49 | fi | ||
50 | |||
51 | # start off server in conventional location. | ||
52 | case `module_id` in | ||
53 | "Generic OMAP1510/1610/1710") | ||
54 | ARGS="$ARGS -mouse /dev/input/event0" ;; | ||
55 | "Compulab CM-x270") | ||
56 | #modprobe mbxfb | ||
57 | #ARGS="$ARGS -fb /dev/fb1" | ||
58 | ;; | ||
59 | "Nokia N800") | ||
60 | ARGS="$ARGS -mouse tslib" ;; | ||
61 | "Nokia 770") | ||
62 | ARGS="$ARGS -mouse tslib" ;; | ||
63 | *) | ||
64 | ;; | ||
65 | esac | ||
66 | |||
67 | ARGS="$ARGS -screen ${DISPLAY_WIDTH_PIXELS}x${DISPLAY_HEIGHT_PIXELS}@${DISPLAY_ORIENTATION}x${DISPLAY_BPP}" | ||
68 | |||
69 | if [ ! -z "$DISPLAY_DPI" ]; then | ||
70 | ARGS="$ARGS -dpi $DISPLAY_DPI" | ||
71 | fi | ||
72 | |||
73 | if [ ! -z "$DISPLAY_SUBPIXEL_ORDER" ]; then | ||
74 | ARGS="$ARGS -rgba $DISPLAY_SUBPIXEL_ORDER" | ||
75 | fi | ||
76 | |||
77 | DISPLAY=':0' | ||
78 | |||
79 | exec xinit /etc/X11/Xsession -- $XSERVER $DISPLAY $ARGS $* | ||