summaryrefslogtreecommitdiffstats
path: root/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver
diff options
context:
space:
mode:
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/Xserver79
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
7XSERVER=/usr/bin/Xipaq
8if [ -f /usr/bin/Xfbdev ]; then
9 XSERVER=/usr/bin/Xfbdev
10fi
11if [ -f /usr/bin/Xepson ]; then
12 XSERVER=/usr/bin/Xepson
13fi
14if [ -f /usr/bin/Xorg ]; then
15 XSERVER=/usr/bin/Xorg
16fi
17if [ -f /usr/bin/Xomap ]; then
18 XSERVER=/usr/bin/Xomap
19fi
20
21. /etc/profile
22
23module_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
31export USER=root
32
33ARGS=" -br -pn"
34
35# use ucb 1x00 touchscreen if present
36if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/touchscreen/ucb1x00 ]; then
37 ARGS="$ARGS -mouse /dev/touchscreen/ucb1x00"
38fi
39
40# use usb mouse if present
41# Xorg doesn't support "-mouse" option, and uses /dev/input/mice automatically
42if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/input/mice ] && [ "$XSERVER" != "Xorg" ]; then
43 ARGS="$ARGS -mouse /dev/input/mice"
44fi
45
46# kdrive 1.4 onwards needs -mouse args
47if [ -n "$TSLIB_TSDEVICE" ]; then
48 ARGS="$ARGS -mouse tslib"
49fi
50
51# start off server in conventional location.
52case `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 ;;
65esac
66
67ARGS="$ARGS -screen ${DISPLAY_WIDTH_PIXELS}x${DISPLAY_HEIGHT_PIXELS}@${DISPLAY_ORIENTATION}x${DISPLAY_BPP}"
68
69if [ ! -z "$DISPLAY_DPI" ]; then
70 ARGS="$ARGS -dpi $DISPLAY_DPI"
71fi
72
73if [ ! -z "$DISPLAY_SUBPIXEL_ORDER" ]; then
74 ARGS="$ARGS -rgba $DISPLAY_SUBPIXEL_ORDER"
75fi
76
77DISPLAY=':0'
78
79exec xinit /etc/X11/Xsession -- $XSERVER $DISPLAY $ARGS $*