Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: client/deps/factory/startx.sh

Issue 3226005: Refactory UI to grab shortcut keys, and tests to not look for triggers. (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/bin/factory_ui_lib.py ('k') | client/site_tests/factory_Audio/factory_Audio.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 XAUTH=/usr/bin/xauth 7 XAUTH=/usr/bin/xauth
8 XAUTH_FILE="/var/run/factory_ui.auth" 8 XAUTH_FILE="/var/run/factory_ui.auth"
9 SERVER_READY= 9 SERVER_READY=
10 DISPLAY=":0" 10 DISPLAY=":0"
11 11
12 user1_handler () { 12 user1_handler () {
13 echo "X server ready..." 1>&2 13 echo "X server ready..." 1>&2
14 SERVER_READY=y 14 SERVER_READY=y
15 } 15 }
16 16
17 trap user1_handler USR1 17 trap user1_handler USR1
18 MCOOKIE=$(head -c 8 /dev/urandom | openssl md5) 18 MCOOKIE=$(head -c 8 /dev/urandom | openssl md5)
19 ${XAUTH} -q -f ${XAUTH_FILE} add ${DISPLAY} . ${MCOOKIE} 19 ${XAUTH} -q -f ${XAUTH_FILE} add ${DISPLAY} . ${MCOOKIE}
20 20
21 /bin/sh -c "\ 21 /bin/sh -c "\
22 trap '' USR1 TTOU TTIN 22 trap '' USR1 TTOU TTIN
23 exec /usr/bin/X11/X -nolisten tcp vt01 -auth ${XAUTH_FILE} \ 23 exec /usr/bin/X11/X -nolisten tcp vt01 -auth ${XAUTH_FILE} \
24 -s 0 -p 0 -dpms 2> /dev/null" & 24 -r -s 0 -p 0 -dpms 2> /dev/null" &
25 25
26 while [ -z ${SERVER_READY} ]; do 26 while [ -z ${SERVER_READY} ]; do
27 sleep .1 27 sleep .1
28 done 28 done
29 29
30 export DISPLAY=${DISPLAY} 30 export DISPLAY=${DISPLAY}
31 export XAUTHORITY=${XAUTH_FILE} 31 export XAUTHORITY=${XAUTH_FILE}
32 32
33 # TODO : move this to ExtDisplay test
33 # TODO : currently necessary as ch7036 stuff only launches if upstart ui but in 34 # TODO : currently necessary as ch7036 stuff only launches if upstart ui but in
34 # future it will be tied to udev 35 # future it will be tied to udev
35 if [ -e /usr/bin/ch7036_monitor ] ; then 36 #if [ -e /usr/bin/ch7036_monitor ] ; then
36 /sbin/modprobe i2c-dev 37 # /sbin/modprobe i2c-dev
37 /usr/bin/ch7036_monitor -v > /var/log/factory_ch7036_monitor.log & 38 # /usr/bin/ch7036_monitor -v > /var/log/factory_ch7036_monitor.log &
38 fi 39 #fi
39 40
40 /sbin/initctl emit factory-ui-started 41 /sbin/initctl emit factory-ui-started
41 cat /proc/uptime > /tmp/uptime-x-started 42 cat /proc/uptime > /tmp/uptime-x-started
42 43
43 echo "export DISPLAY=${DISPLAY}" 44 echo "export DISPLAY=${DISPLAY}"
44 echo "export XAUTHORITY=${XAUTH_FILE}" 45 echo "export XAUTHORITY=${XAUTH_FILE}"
OLDNEW
« no previous file with comments | « client/bin/factory_ui_lib.py ('k') | client/site_tests/factory_Audio/factory_Audio.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698