summaryrefslogtreecommitdiffstats
path: root/meta/packages/xserver-kdrive-common
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/xserver-kdrive-common')
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xdefaults3
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit16
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/01xrandr4
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/11zaurus12
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/12keymap23
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/30xTs_Calibrate6
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/40xmodmap5
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/55xScreenSaver4
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/60xXDefaults3
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver75
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession47
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/60xXDefaults4
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager8
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/collie.xmodmap5
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/h2200.xmodmap5
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/shepherd.xmodmap49
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/simpad.xmodmap2
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-kdrive-common_0.1.bb18
-rw-r--r--meta/packages/xserver-kdrive-common/xserver-nodm-init.bb21
-rwxr-xr-xmeta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm48
20 files changed, 358 insertions, 0 deletions
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xdefaults b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xdefaults
new file mode 100644
index 0000000000..f5b69dd516
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xdefaults
@@ -0,0 +1,3 @@
1Rxvt*scrollBar_right: true
2Rxvt*font: xft:Mono:pixelsize=9
3
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit
new file mode 100644
index 0000000000..f566ffe5be
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit
@@ -0,0 +1,16 @@
1#!/bin/sh
2#
3
4export USER=root
5export HOME=/home/root
6if [ ! -d $HOME ] && [ -d /root ]; then
7 HOME=/root
8fi
9export XAPPLRESDIR=/usr/X11R6/lib/app-defaults
10export XFILESEARCHPATH=./%N%S%C.ad:/usr/X11R6/lib/X11/%L/%T/%N%S%C:/usr/X11R6/lib/X11/%l/%T/%N%S%C:/usr/X11R6/lib/X11/%T/%N%S%C:./%N%S.ad:/usr/X11R6/lib/X11/%L/%T/%N%S:/usr/X11R6/lib/X11/%l/%T/%N%S:/usr/X11R6/lib/X11/%T/%N%S:/usr/local/lib/X11/app-defaults/%N%S%C.ad
11
12export PATH=$PATH:/usr/X11R6/bin
13
14SYSSESSIONDIR=/etc/X11/Xinit.d
15
16exec run-parts $SYSSESSIONDIR
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/01xrandr b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/01xrandr
new file mode 100644
index 0000000000..abde87d53c
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/01xrandr
@@ -0,0 +1,4 @@
1#!/bin/sh
2
3xrandr -o normal
4
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/11zaurus b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/11zaurus
new file mode 100644
index 0000000000..61ca84b595
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/11zaurus
@@ -0,0 +1,12 @@
1#!/bin/sh
2
3if [ -z "`which chkhinge`" ]; then
4 # probably not a clamshell zaurus
5 exit 0
6fi
7
8chkhinge -e
9if [ $? = 12 ]; then
10 xrandr -o right
11fi
12
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/12keymap b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/12keymap
new file mode 100644
index 0000000000..abc14f8661
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/12keymap
@@ -0,0 +1,23 @@
1#!/bin/sh
2
3MACHINE=`awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo`
4
5case $MACHINE in
6 "SHARP Shepherd" | "SHARP Husky" | "SHARP Corgi")
7 case `uname -r` in
8 2.4*)
9 xmodmap - < /etc/X11/shepherd.xmodmap
10 ;;
11 esac
12 ;;
13 "Sharp-Collie")
14 xmodmap - < /etc/X11/collie.xmodmap
15 ;;
16 "Simpad")
17 xmodmap - < /etc/X11/simpad.xmodmap
18 ;;
19 "HP iPAQ H2200")
20 xmodmap - < /etc/X11/h2200.xmodmap
21 ;;
22esac
23
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/30xTs_Calibrate b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/30xTs_Calibrate
new file mode 100644
index 0000000000..26d8551b18
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/30xTs_Calibrate
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3if [ ! -f /etc/pointercal ] && [ ! -z "$TSLIB_TSDEVICE" ]; then
4 /usr/bin/xtscal
5fi
6
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/40xmodmap b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/40xmodmap
new file mode 100644
index 0000000000..7ae3b58860
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/40xmodmap
@@ -0,0 +1,5 @@
1#!/bin/sh
2
3if [ -f /proc/hal/model ]; then
4 xmodmap -e 'keycode 104 = Return'
5fi
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/55xScreenSaver b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/55xScreenSaver
new file mode 100644
index 0000000000..5f6d0dae5d
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/55xScreenSaver
@@ -0,0 +1,4 @@
1#!/bin/sh
2
3xset s 30 180
4xset s off
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/60xXDefaults b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/60xXDefaults
new file mode 100644
index 0000000000..6b35e0357c
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/60xXDefaults
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3xrdb -load -nocpp < /etc/X11/Xdefaults
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
new file mode 100644
index 0000000000..88b8abbb23
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver
@@ -0,0 +1,75 @@
1#!/bin/sh
2#
3
4XSERVER=Xipaq
5if [ -f /usr/bin/Xfbdev ]; then
6 XSERVER=Xfbdev
7fi
8if [ -f /usr/bin/Xepson ]; then
9 XSERVER=Xepson
10fi
11if [ -f /usr/bin/Xorg ]; then
12 XSERVER=Xorg
13fi
14if [ -f /usr/bin/Xomap ]; then
15 XSERVER=Xomap
16fi
17
18. /etc/profile
19
20module_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
28export USER=root
29
30ARGS=" -br -pn"
31
32# use ucb 1x00 touchscreen if present
33if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/touchscreen/ucb1x00 ]; then
34 ARGS="$ARGS -mouse /dev/touchscreen/ucb1x00"
35fi
36
37# use usb mouse if present
38# Xorg doesn't support "-mouse" option, and uses /dev/input/mice automatically
39if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/input/mice ] && [ "$XSERVER" != "Xorg" ]; then
40 ARGS="$ARGS -mouse /dev/input/mice"
41fi
42
43# start off server in conventional location.
44case `module_id` in
45 "HP iPAQ H3100" | "HP iPAQ H3800")
46 ARGS="$ARGS -dpi 100 -screen 320x240@90 -rgba vrgb" ;;
47 "HP iPAQ H3600" | "HP iPAQ H3700" | "HP iPAQ H3900")
48 ARGS="$ARGS -dpi 100 -screen 320x240@270 -rgba vbgr" ;;
49 "HP iPAQ H5400" | "HP iPAQ H2200")
50 ARGS="$ARGS -dpi 100 -rgba rgb" ;;
51 "Ramses")
52 # What is this "vt2" in aid of?
53 ARGS="$ARGS -dpi 100 -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 -dpi 100 -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 -dpi 150 -rgba rgb" ;;
65 "SHARP Spitz" | "SHARP Akita" | "SHARP Borzoi")
66 ARGS="$ARGS -dpi 150 -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 "ARM-IntegratorCP")
72 ARGS="$ARGS -rgba vrgb"
73esac
74
75exec $XSERVER $ARGS $*
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession
new file mode 100644
index 0000000000..cfa3a9a6e3
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession
@@ -0,0 +1,47 @@
1#!/bin/sh
2
3# this location MUST be consistent with /etc/X11/gpe-login.pre-session
4HOME_VOLATILE=/home/$USER/ramdisk
5export HOME_VOLATILE
6
7if [ -f /usr/bin/dbus-launch ]; then
8 ## test for an existing bus daemon, just to be safe
9 if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
10 ## if not found, launch a new one
11 eval `dbus-launch --auto-syntax --exit-with-session`
12 echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
13 fi
14fi
15
16. /etc/profile
17
18if [ -f $HOME/.profile ]; then
19 . $HOME/.profile
20fi
21
22SYSSESSIONDIR=/etc/X11/Xsession-gpe.d
23
24if [ ! -d $SYSSESSIONDIR ]; then
25 SYSSESSIONDIR=/etc/X11/Xsession.d
26fi
27
28# Use run-parts to source every file in the session directory; we source
29# instead of executing so that the variables and functions defined above
30# are available to the scripts, and so that they can pass variables to each
31# other.
32
33# Can't use run-parts like this, busybox doesn't support it. Use ls instead
34#SESSIONFILES=$(run-parts --list $SYSSESSIONDIR)
35
36SESSIONFILES=`ls -X $SYSSESSIONDIR`
37if [ -n "$SESSIONFILES" ]; then
38 for SESSIONFILE in $SESSIONFILES; do
39 # Test if script is executable first before sourcing it
40 if [ -x "$SYSSESSIONDIR/$SESSIONFILE" ]; then
41 . $SYSSESSIONDIR/$SESSIONFILE
42 fi
43 done
44fi
45
46exit 0
47
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/60xXDefaults b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/60xXDefaults
new file mode 100644
index 0000000000..d3a284d8da
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/60xXDefaults
@@ -0,0 +1,4 @@
1#!/bin/sh
2if [ -e $HOME/.Xdefaults ]; then
3 xrdb -merge -nocpp < $HOME/.Xdefaults
4fi
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager
new file mode 100644
index 0000000000..b2b65a0993
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager
@@ -0,0 +1,8 @@
1#!/bin/sh
2if [ -x $HOME/.Xsession ]; then
3 exec $HOME/.Xsession
4else
5 exec /usr/bin/x-window-manager
6fi
7
8
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/collie.xmodmap b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/collie.xmodmap
new file mode 100644
index 0000000000..5c0b39dc88
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/collie.xmodmap
@@ -0,0 +1,5 @@
1keycode 96 = XF86Calendar
2keycode 97 = telephone
3keycode 48 = XF86Start
4keycode 98 = XF86Mail
5keycode 117 = XF86PowerDown
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/h2200.xmodmap b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/h2200.xmodmap
new file mode 100644
index 0000000000..736766efd7
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/h2200.xmodmap
@@ -0,0 +1,5 @@
1keycode 75 = XF86Calendar
2keycode 76 = telephone
3keycode 77 = XF86Mail
4keycode 78 = XF86Start
5keycode 124 = XF86PowerDown
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/shepherd.xmodmap b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/shepherd.xmodmap
new file mode 100644
index 0000000000..0a03b4f426
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/shepherd.xmodmap
@@ -0,0 +1,49 @@
1keycode 38 = Mode_switch
2keycode 31 = w W caret
3keycode 13 = e E equal
4keycode 26 = r R plus
5keycode 28 = t T bracketleft
6keycode 33 = y y bracketright
7keycode 29 = u U braceleft
8keycode 17 = i I braceright
9!keycode 73 = Tab Tab Caps_Lock
10keycode 12 = d D periodcentered
11keycode 14 = f F backslash
12keycode 15 = g G semicolon
13keycode 16 = h H colon
14keycode 18 = j J asterisk
15keycode 19 = k K currency
16keycode 20 = l L bar
17keycode 10 = b B underscore
18keycode 66 = minus minus at
19keycode 71 = comma slash less
20keycode 72 = period question greater
21
22! Side keys
23keycode 134 = Down
24keycode 133 = Up
25keycode 131 = Return
26keycode 132 = Escape
27
28!Special keys
29!keycode 96 = XF86Calendar
30!keycode 97 = telephone
31!keycode 98 = XF86Mail
32!keycode 48 = XF86HomePage
33!keycode 37 = XF86Start
34
35clear Shift
36clear Lock
37clear Control
38clear Mod1
39clear Mod2
40clear Mod3
41clear Mod4
42clear Mod5
43
44add Shift = Shift_L Shift_R
45!add Lock = Caps_Lock
46add Control = Control_L Control_R
47add Mod1 = Alt_L Alt_R
48add Mod2 = Mode_switch
49
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/simpad.xmodmap b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/simpad.xmodmap
new file mode 100644
index 0000000000..d8b73b207f
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/simpad.xmodmap
@@ -0,0 +1,2 @@
1keycode 102 = XF86PowerDown
2
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common_0.1.bb b/meta/packages/xserver-kdrive-common/xserver-kdrive-common_0.1.bb
new file mode 100644
index 0000000000..b1f06fe3b6
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common_0.1.bb
@@ -0,0 +1,18 @@
1DESCRIPTION = "Common X11 scripts"
2LICENSE = "GPL"
3SECTION = "x11"
4RDEPENDS_${PN} = "xmodmap libxrandr xdpyinfo xtscal"
5PR = "r6"
6
7SRC_URI = "file://etc"
8S = ${WORKDIR}
9
10PACKAGE_ARCH = "all"
11
12do_install() {
13 cp -R ${S}/etc ${D}/etc
14 rm -fR ${D}/etc/.svn
15 rm -fR ${D}/etc/*/.svn
16 rm -fR ${D}/etc/*/*/.svn
17 chmod -R 755 ${D}/etc
18} \ No newline at end of file
diff --git a/meta/packages/xserver-kdrive-common/xserver-nodm-init.bb b/meta/packages/xserver-kdrive-common/xserver-nodm-init.bb
new file mode 100644
index 0000000000..5dff889184
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-nodm-init.bb
@@ -0,0 +1,21 @@
1DESCRIPTION = "Simple Xserver Init Script (no dm)"
2LICENSE = "GPL"
3SECTION = "x11"
4PRIORITY = "optional"
5PR = "r6"
6
7SRC_URI = "file://xserver-nodm"
8S = ${WORKDIR}
9
10PACKAGE_ARCH = "all"
11
12do_install() {
13 install -d ${D}/etc
14 install -d ${D}/etc/init.d
15 install xserver-nodm ${D}/etc/init.d
16}
17
18inherit update-rc.d
19
20INITSCRIPT_NAME = "xserver-nodm"
21INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
diff --git a/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm b/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
new file mode 100755
index 0000000000..eeab55a71a
--- /dev/null
+++ b/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
@@ -0,0 +1,48 @@
1#!/bin/sh
2
3killproc() { # kill the named process(es)
4 pid=`/bin/ps -e x |
5 /bin/grep $1 |
6 /bin/grep -v grep |
7 /bin/sed -e 's/^ *//' -e 's/ .*//'`
8 [ "$pid" != "" ] && kill $pid
9}
10
11
12
13case "$1" in
14 start)
15 # We don't want this script to block the rest of the boot process
16 if [ "$2" != "background" ]; then
17 $0 $1 background &
18 else
19 . /etc/profile
20
21 echo "Starting Xserver"
22 /etc/X11/Xserver &
23
24 export DISPLAY=:0
25
26 while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ]
27 do
28 /usr/bin/xtscal
29 done
30
31 /etc/X11/Xsession &
32 fi
33 ;;
34
35 stop)
36 echo "Stopping XServer"
37 killproc Xfbdev
38 killproc Xomap
39 killproc Xorg
40 killproc Xepson
41 ;;
42
43 *)
44 echo "usage: $0 { start | stop }"
45 ;;
46esac
47
48exit 0