summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/x11-common
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-graphics/x11-common
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-graphics/x11-common')
-rw-r--r--meta/recipes-graphics/x11-common/x11-common/etc/X11/Xdefaults3
-rw-r--r--meta/recipes-graphics/x11-common/x11-common/etc/X11/Xserver77
-rw-r--r--meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession38
-rw-r--r--meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/12keymap.sh4
-rw-r--r--meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/89xdgautostart.sh7
-rw-r--r--meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/90XWindowManager.sh7
-rw-r--r--meta/recipes-graphics/x11-common/x11-common/etc/X11/default.xmodmap260
-rw-r--r--meta/recipes-graphics/x11-common/x11-common_0.1.bb17
-rw-r--r--meta/recipes-graphics/x11-common/xserver-nodm-init.bb22
-rwxr-xr-xmeta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm58
10 files changed, 493 insertions, 0 deletions
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xdefaults b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xdefaults
new file mode 100644
index 0000000000..f5b69dd516
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xdefaults
@@ -0,0 +1,3 @@
1Rxvt*scrollBar_right: true
2Rxvt*font: xft:Mono:pixelsize=9
3
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xserver b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xserver
new file mode 100644
index 0000000000..3d4aa74b95
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xserver
@@ -0,0 +1,77 @@
1#!/bin/sh
2#
3
4# note xinit needs full server path
5XSERVER=/usr/bin/Xipaq
6if [ -f /usr/bin/Xfbdev ]; then
7 XSERVER=/usr/bin/Xfbdev
8fi
9if [ -f /usr/bin/Xepson ]; then
10 XSERVER=/usr/bin/Xepson
11fi
12if [ -f /usr/bin/Xorg ]; then
13 XSERVER=/usr/bin/Xorg
14fi
15if [ -f /usr/bin/Xomap ]; then
16 XSERVER=/usr/bin/Xomap
17fi
18
19. /etc/profile
20
21module_id() {
22 ## used to read from assets, but sometimes assets is corrupted
23 # grep "Module ID" /proc/hal/assets | sed "s/.*://"
24 ## used to read from /proc/hal/model, but that is removed in 2.6
25 # echo ' iPAQ' `cat /proc/hal/model`
26 awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
27}
28
29ARGS=" -br -pn"
30
31if [ "$XSERVER" != "/usr/bin/Xorg" ]; then
32
33 . /etc/formfactor/config
34
35 ARGS="$ARGS -keybd keyboard"
36
37 # use usb mouse if present
38 if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/input/mice ]; then
39 ARGS="$ARGS -mouse /dev/input/mice"
40 fi
41
42 # kdrive 1.4 onwards needs -mouse args
43 if [ -n "$TSLIB_TSDEVICE" ]; then
44 ARGS="$ARGS -mouse tslib"
45 fi
46
47 # start off server in conventional location.
48 case `module_id` in
49 "Generic OMAP1510/1610/1710")
50 ARGS="$ARGS -mouse /dev/input/event0" ;;
51 "Compulab CM-x270")
52 #modprobe mbxfb
53 #ARGS="$ARGS -fb /dev/fb1"
54 ;;
55 "Nokia N800")
56 ARGS="$ARGS -mouse tslib" ;;
57 "Nokia 770")
58 ARGS="$ARGS -mouse tslib" ;;
59 *)
60 ;;
61 esac
62
63 ARGS="$ARGS -screen ${DISPLAY_WIDTH_PIXELS}x${DISPLAY_HEIGHT_PIXELS}@${DISPLAY_ORIENTATION}x${DISPLAY_BPP}"
64
65 if [ ! -z "$DISPLAY_DPI" ]; then
66 ARGS="$ARGS -dpi $DISPLAY_DPI"
67 fi
68
69 if [ ! -z "$DISPLAY_SUBPIXEL_ORDER" ]; then
70 ARGS="$ARGS -rgba $DISPLAY_SUBPIXEL_ORDER"
71 fi
72
73fi
74
75DISPLAY=':0'
76
77exec xinit /etc/X11/Xsession -- $XSERVER $DISPLAY $ARGS $*
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession
new file mode 100644
index 0000000000..a87447a879
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession
@@ -0,0 +1,38 @@
1#!/bin/sh
2
3if [ -x /usr/bin/dbus-launch ]; then
4 # As this is the X session script, always start a new DBus session.
5 eval `dbus-launch --sh-syntax --exit-with-session`
6 echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
7fi
8
9. /etc/profile
10
11if [ -f $HOME/.profile ]; then
12 . $HOME/.profile
13fi
14
15SYSSESSIONDIR=/etc/X11/Xsession.d
16
17export CLUTTER_DISABLE_MIPMAPPED_TEXT=1
18
19for SESSIONFILE in $SYSSESSIONDIR/*; do
20 set +e
21 case "$SESSIONFILE" in
22 *.sh)
23 . "$SESSIONFILE"
24 ;;
25 *.shbg)
26 "$SESSIONFILE" &
27 ;;
28 *~)
29 # Ignore backup files
30 ;;
31 *)
32 "$SESSIONFILE"
33 ;;
34 esac
35 set -e
36done
37
38exit 0
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/12keymap.sh b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/12keymap.sh
new file mode 100644
index 0000000000..a9d102c746
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/12keymap.sh
@@ -0,0 +1,4 @@
1#!/bin/sh
2
3# kdrive 1.4 does not have default keymap in server
4#xmodmap - </etc/X11/default.xmodmap
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/89xdgautostart.sh b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/89xdgautostart.sh
new file mode 100644
index 0000000000..db7aa229d2
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/89xdgautostart.sh
@@ -0,0 +1,7 @@
1XDGAUTOSTART=/etc/xdg/autostart
2if [ -d $XDGAUTOSTART ]; then
3 for SCRIPT in $XDGAUTOSTART/*; do
4 CMD=`grep ^Exec= $SCRIPT | cut -d '=' -f 2`
5 $CMD &
6 done
7fi \ No newline at end of file
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/90XWindowManager.sh b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/90XWindowManager.sh
new file mode 100644
index 0000000000..b936dedf3b
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/90XWindowManager.sh
@@ -0,0 +1,7 @@
1if [ -x $HOME/.Xsession ]; then
2 exec $HOME/.Xsession
3elif [ -x /usr/bin/x-session-manager ]; then
4 exec /usr/bin/x-session-manager
5else
6 exec /usr/bin/x-window-manager
7fi
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/default.xmodmap b/meta/recipes-graphics/x11-common/x11-common/etc/X11/default.xmodmap
new file mode 100644
index 0000000000..05a13fa3c8
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/default.xmodmap
@@ -0,0 +1,260 @@
1keycode 8 =
2keycode 9 = Escape
3keycode 10 = 1 exclam
4keycode 11 = 2 at
5keycode 12 = 3 numbersign
6keycode 13 = 4 dollar
7keycode 14 = 5 percent
8keycode 15 = 6 asciicircum
9keycode 16 = 7 ampersand braceleft
10keycode 17 = 8 asterisk bracketleft
11keycode 18 = 9 parenleft bracketright
12keycode 19 = 0 parenright braceright
13keycode 20 = minus underscore backslash
14keycode 21 = equal plus
15keycode 22 = BackSpace
16keycode 23 = Tab
17keycode 24 = q Q q
18keycode 25 = w W w
19keycode 26 = e E
20keycode 27 = r R r
21keycode 28 = t T t
22keycode 29 = y Y y
23keycode 30 = u U u
24keycode 31 = i I i
25keycode 32 = o O o
26keycode 33 = p P p
27keycode 34 = bracketleft braceleft
28keycode 35 = bracketright braceright asciitilde
29keycode 36 = Return
30keycode 37 = Control_L
31keycode 38 = a A
32keycode 39 = s S s
33keycode 40 = d D
34keycode 41 = f F
35keycode 42 = g G g
36keycode 43 = h H h
37keycode 44 = j J j
38keycode 45 = k K k
39keycode 46 = l L l
40keycode 47 = semicolon colon
41keycode 48 = apostrophe quotedbl
42keycode 49 = grave asciitilde
43keycode 50 = Shift_L
44keycode 51 = backslash bar
45keycode 52 = z Z z
46keycode 53 = x X x
47keycode 54 = c C
48keycode 55 = v V v
49keycode 56 = b B
50keycode 57 = n N n
51keycode 58 = m M m
52keycode 59 = comma less
53keycode 60 = period greater
54keycode 61 = slash question
55keycode 62 = Shift_R
56keycode 63 = KP_Multiply
57keycode 64 = Alt_L
58keycode 65 = space
59keycode 66 = Caps_Lock
60keycode 67 = F1 F11
61keycode 68 = F2 F12
62keycode 69 = F3 F13
63keycode 70 = F4 F14
64keycode 71 = F5 F15
65keycode 72 = F6 F16
66keycode 73 = F7 F17
67keycode 74 = F8 F18
68keycode 75 = F9 F19
69keycode 76 = F10 F20
70keycode 77 = Num_Lock
71keycode 78 = Scroll_Lock
72keycode 79 = KP_7
73keycode 80 = KP_8
74keycode 81 = KP_9
75keycode 82 = KP_Subtract
76keycode 83 = KP_4
77keycode 84 = KP_5
78keycode 85 = KP_6
79keycode 86 = KP_Add
80keycode 87 = KP_1
81keycode 88 = KP_2
82keycode 89 = KP_3
83keycode 90 = KP_0
84keycode 91 = KP_Decimal
85keycode 92 =
86keycode 93 =
87keycode 94 = less greater bar
88keycode 95 = F11
89keycode 96 = F12
90keycode 97 =
91keycode 98 =
92keycode 99 =
93keycode 100 =
94keycode 101 =
95keycode 102 =
96keycode 103 =
97keycode 104 = KP_Enter
98keycode 105 = Control_R
99keycode 106 = KP_Divide
100keycode 107 =
101keycode 108 = Mode_switch
102keycode 109 = Break
103keycode 110 = Home
104keycode 111 = Up
105keycode 112 = Prior
106keycode 113 = Left
107keycode 114 = Right
108keycode 115 = End
109keycode 116 = Down
110keycode 117 = Next
111keycode 118 = Insert
112keycode 119 = Delete
113keycode 120 = Menu
114keycode 121 = F13
115keycode 122 = F14
116keycode 123 = Help
117keycode 124 = Execute
118keycode 125 = F17
119keycode 126 = KP_Subtract
120keycode 127 = Pause
121keycode 128 =
122keycode 129 =
123keycode 130 =
124keycode 131 =
125keycode 132 =
126keycode 133 =
127keycode 134 =
128keycode 135 =
129keycode 136 =
130keycode 137 =
131keycode 138 =
132keycode 139 =
133keycode 140 =
134keycode 141 =
135keycode 142 =
136keycode 143 =
137keycode 144 =
138keycode 145 =
139keycode 146 =
140keycode 147 =
141keycode 148 =
142keycode 149 =
143keycode 150 =
144keycode 151 =
145keycode 152 =
146keycode 153 =
147keycode 154 =
148keycode 155 =
149keycode 156 =
150keycode 157 =
151keycode 158 =
152keycode 159 =
153keycode 160 =
154keycode 161 =
155keycode 162 =
156keycode 163 =
157keycode 164 =
158keycode 165 =
159keycode 166 =
160keycode 167 =
161keycode 168 =
162keycode 169 =
163keycode 170 =
164keycode 171 =
165keycode 172 =
166keycode 173 =
167keycode 174 =
168keycode 175 =
169keycode 176 =
170keycode 177 =
171keycode 178 =
172keycode 179 =
173keycode 180 =
174keycode 181 =
175keycode 182 =
176keycode 183 =
177keycode 184 =
178keycode 185 =
179keycode 186 =
180keycode 187 =
181keycode 188 =
182keycode 189 =
183keycode 190 =
184keycode 191 =
185keycode 192 =
186keycode 193 =
187keycode 194 =
188keycode 195 =
189keycode 196 =
190keycode 197 =
191keycode 198 =
192keycode 199 =
193keycode 200 =
194keycode 201 =
195keycode 202 =
196keycode 203 =
197keycode 204 =
198keycode 205 =
199keycode 206 =
200keycode 207 =
201keycode 208 =
202keycode 209 =
203keycode 210 =
204keycode 211 =
205keycode 212 =
206keycode 213 =
207keycode 214 =
208keycode 215 =
209keycode 216 =
210keycode 217 =
211keycode 218 =
212keycode 219 =
213keycode 220 =
214keycode 221 =
215keycode 222 =
216keycode 223 =
217keycode 224 =
218keycode 225 =
219keycode 226 =
220keycode 227 =
221keycode 228 =
222keycode 229 =
223keycode 230 =
224keycode 231 =
225keycode 232 =
226keycode 233 =
227keycode 234 =
228keycode 235 =
229keycode 236 =
230keycode 237 =
231keycode 238 =
232keycode 239 =
233keycode 240 =
234keycode 241 =
235keycode 242 =
236keycode 243 =
237keycode 244 =
238keycode 245 =
239keycode 246 =
240keycode 247 =
241keycode 248 =
242keycode 249 =
243keycode 250 =
244keycode 251 =
245keycode 252 =
246keycode 253 =
247keycode 254 =
248
249add shift = Shift_L
250add shift = Shift_R
251add shift = Menu
252add lock = Caps_Lock
253add control = Control_L
254add control = Control_R
255add mod1 = Alt_L
256add mod2 = Num_Lock
257!mod3
258add mod4 = Mode_switch
259!mod5
260
diff --git a/meta/recipes-graphics/x11-common/x11-common_0.1.bb b/meta/recipes-graphics/x11-common/x11-common_0.1.bb
new file mode 100644
index 0000000000..6791f961a1
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common_0.1.bb
@@ -0,0 +1,17 @@
1DESCRIPTION = "Common X11 scripts"
2LICENSE = "GPLv2"
3SECTION = "x11"
4RDEPENDS_${PN} = "xmodmap xdpyinfo xtscal xinit formfactor"
5PR = "r38"
6
7SRC_URI = "file://etc"
8S = ${WORKDIR}
9
10PACKAGE_ARCH = "all"
11
12do_install() {
13 cp -R ${S}/etc ${D}/etc
14 chmod -R 755 ${D}/etc
15 find ${D}/etc -type d -name .svn -prune -exec rm -rf {} \;
16 find ${D}/etc -type f -name \*~ -exec rm -rf {} \;
17}
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init.bb b/meta/recipes-graphics/x11-common/xserver-nodm-init.bb
new file mode 100644
index 0000000000..c77b2f0f8b
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/xserver-nodm-init.bb
@@ -0,0 +1,22 @@
1DESCRIPTION = "Simple Xserver Init Script (no dm)"
2LICENSE = "GPL"
3SECTION = "x11"
4PRIORITY = "optional"
5PR = "r22"
6RDEPENDS_${PN} = "dbus-wait sudo"
7
8SRC_URI = "file://xserver-nodm"
9S = ${WORKDIR}
10
11PACKAGE_ARCH = "all"
12
13do_install() {
14 install -d ${D}/etc
15 install -d ${D}/etc/init.d
16 install xserver-nodm ${D}/etc/init.d
17}
18
19inherit update-rc.d
20
21INITSCRIPT_NAME = "xserver-nodm"
22INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ."
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
new file mode 100755
index 0000000000..69ea949724
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
@@ -0,0 +1,58 @@
1#!/bin/sh
2#
3### BEGIN INIT INFO
4# Provides: xserver
5# Required-Start: $local_fs $remote_fs dbus
6# Required-Stop: $local_fs $remote_fs
7# Default-Start: 2 3 4 5
8# Default-Stop: 0 1 6
9### END INIT INFO
10
11killproc() { # kill the named process(es)
12 pid=`/bin/pidof $1`
13 [ "$pid" != "" ] && kill $pid
14}
15
16read CMDLINE < /proc/cmdline
17for x in $CMDLINE; do
18 case $x in
19 x11=false)
20 echo "X Server disabled"
21 exit 0;
22 ;;
23 esac
24done
25
26case "$1" in
27 start)
28 . /etc/profile
29 username=root
30 echo "Starting Xserver"
31 if [ -f /etc/X11/Xusername ]; then
32 username=`cat /etc/X11/Xusername`
33 fi
34 # Using sudo -i here has the nice side effect of making sire
35 # HOME, USER and other previously problematic variables
36 # are set correctly
37 sudo -b -i -u $username /etc/X11/Xserver
38 # Wait for the desktop to say its finished loading
39 dbus-wait org.matchbox_project.desktop Loaded
40 ;;
41
42 stop)
43 echo "Stopping XServer"
44 killproc xinit
45 ;;
46
47 restart)
48 $0 stop
49 sleep 1
50 $0 start
51 ;;
52
53 *)
54 echo "usage: $0 { start | stop | restart }"
55 ;;
56esac
57
58exit 0