VIGS: sync up to the latest 33/39733/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_unified accepted/tizen_wearable tizen_3.0 tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0.m2 tizen_3.0_tv tizen_4.0 tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/3.0.m2/mobile/20170104.100300 accepted/tizen/3.0.m2/tv/20170104.100432 accepted/tizen/3.0.m2/wearable/20170104.101038 accepted/tizen/3.0/common/20161114.105046 accepted/tizen/3.0/ivi/20161011.070323 accepted/tizen/3.0/mobile/20161015.034435 accepted/tizen/3.0/tv/20161016.010103 accepted/tizen/3.0/wearable/20161015.084501 accepted/tizen/4.0/unified/20170816.013232 accepted/tizen/4.0/unified/20170828.224148 accepted/tizen/5.0/unified/20181102.012343 accepted/tizen/5.5/unified/20191031.014803 accepted/tizen/5.5/unified/mobile/hotfix/20201027.081426 accepted/tizen/5.5/unified/wearable/hotfix/20201027.122842 accepted/tizen/6.0/unified/20201030.123331 accepted/tizen/6.0/unified/hotfix/20201103.051226 accepted/tizen/6.5/unified/20211028.093951 accepted/tizen/7.0/unified/20221110.063004 accepted/tizen/7.0/unified/hotfix/20221116.104417 accepted/tizen/8.0/unified/20231005.092453 accepted/tizen/common/20150521.162349 accepted/tizen/ivi/20160218.022835 accepted/tizen/mobile/20150522.005744 accepted/tizen/tv/20150522.004830 accepted/tizen/unified/20170309.031214 accepted/tizen/wearable/20150522.005607 submit/tizen/20150521.135321 submit/tizen_3.0.m2/20170104.093748 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000008 submit/tizen_3.0_mobile/20161015.000007 submit/tizen_3.0_tv/20161015.000006 submit/tizen_3.0_wearable/20161015.000006 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.110001 submit/tizen_5.0/20181101.000001 submit/tizen_5.5/20191031.000001 submit/tizen_5.5_mobile_hotfix/20201026.185101 submit/tizen_5.5_wearable_hotfix/20201026.184301 submit/tizen_6.0/20201029.205101 submit/tizen_6.0_hotfix/20201102.192501 submit/tizen_6.0_hotfix/20201103.114801 submit/tizen_6.5/20211028.161501 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000001 submit/tizen_unified/20170308.100403 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorjinhyung.jo <jinhyung.jo@samsung.com>
Thu, 21 May 2015 13:46:33 +0000 (22:46 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Thu, 21 May 2015 13:47:58 +0000 (22:47 +0900)
Change-Id: Ifdc0eaace4b4f5a82e15f5a7baf84ed4ff1bbb88
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
conf-i386-vigs/input.conf
conf-i386-vigs/module.conf
i386-common/Xorg.sh
i386-common/startx
i386-common/xinitrc
i386-common/xkeysymbol.map [new file with mode: 0644]
i386-common/xorg.service [new file with mode: 0644]
i386-common/xresources.service [new file with mode: 0644]
i386-common/xserver
packaging/xf86-misc-vigs.spec

index 1133724..7c1e72e 100644 (file)
@@ -7,18 +7,18 @@ Section "InputClass"
 EndSection
 
 Section "InputClass"
-       Identifier "evdev pointer catchall"
-       MatchIsTablet   "on"
+       Identifier "evdev touchscreen catchall"
+       MatchIsTouchScreen "on"
        MatchDevicePath "/dev/input/event*"
-       Driver "evdev"
+       Driver "evdevmultitouch"
+       Option "MultiTouch"     "10"
 EndSection
 
 Section "InputClass"
-        Identifier "evdev touchscreen catchall"
-        MatchIsTouchScreen "on"
-        MatchDevicePath "/dev/input/event*"
-        Driver "evdevmultitouch"
-       Option "MultiTouch"     "10"
+       Identifier "evdev pointer catchall"
+       MatchIsTablet   "on"
+       MatchDevicePath "/dev/input/event*"
+       Driver "evdev"
 EndSection
 
 Section "InputClass"
index 05b566c..6450989 100644 (file)
@@ -1,5 +1,6 @@
 Section "Module"
     SubSection  "xdbg"
+        Option  "dlog"       "true"
         Option  "log_path"   "/var/log/Xorg.0.log2"
     EndSubSection
 EndSection
index 79a0def..b6ff0aa 100755 (executable)
@@ -1,2 +1,3 @@
 export HOME=/root
 export DISPLAY=:0
+export XDG_RUNTIME_DIR=/tmp
index d8e579d..9166ab1 100755 (executable)
@@ -14,22 +14,44 @@ for scriptlet in $(find /etc/X11/arch-preinit.d ! -type d); do
     test -x "$scriptlet" && . "$scriptlet"
 done
 
+if [ -e /etc/emulator/opengl-es-setup-yagl-env.sh ]; then
+    /etc/emulator/opengl-es-setup-yagl-env.sh
+fi
+
+#remove previous Xorg.0.log file
+if [ -e /var/log/Xorg.0.log ]; then
+    rm /var/log/Xorg.0.log
+fi
+
+#remove previous Xorg.0.log.old file
+if [ -e /var/log/Xorg.0.log.old ]; then
+    rm /var/log/Xorg.0.log.old
+fi
+
 if [ -e ~/.xinitrc ]; then
-       XINITRC=~/.xinitrc
+    XINITRC=~/.xinitrc
 else
-       XINITRC=/etc/X11/xinitrc
+    XINITRC=/etc/X11/xinitrc
 fi
 
 XSERVER_OPTIONS=" ${DISPLAY} ${OTHER_OPTIONS} ${XORG_CONF} "
 
 if [ "$1" = "--gdb" ]; then
-       gdb --args Xorg ${XSERVER_OPTIONS}
+    /usr/bin/gdb --args /usr/bin/Xorg ${XSERVER_OPTIONS}
 else
-       if [ "$1" = "--only" ]; then
-
-               Xorg ${XSERVER_OPTIONS} &
-       else
-               xinit ${XINITRC} -- /usr/bin/Xorg ${XSERVER_OPTIONS} &
-       fi
+    if [ "$1" = "--only" ]; then
+        export XSERVER_WAIT_MS=100000
+
+        /usr/bin/Xorg ${XSERVER_OPTIONS} &
+    else
+        export WMRC=/etc/X11/wmrc
+        export WMUSERID=`/usr/bin/id -u app`
+        export WMGROUPID=`/usr/bin/id -g app`
+        export WMUSER=app
+        export WMUSERHOME=/opt/home/app
+        export XSERVER_WAIT_MS=100000
+
+        /usr/bin/xinit ${XINITRC} -- /usr/bin/Xorg ${XSERVER_OPTIONS} &
+    fi
 fi
 
index 6f2501d..181c7fe 100755 (executable)
@@ -1,3 +1,13 @@
 #!/bin/sh
 
-/usr/bin/scim -d &
+/usr/bin/xmodmap /etc/X11/Xmodmap
+
+# set dpi
+if [ -x /usr/bin/xrdb ]; then
+    if [ -e ~/.Xresources ]; then
+        /usr/bin/xrdb -load -nocpp ~/.Xresources
+    else
+        /usr/bin/xrdb -load -nocpp /etc/X11/Xresources
+    fi
+fi
+
diff --git a/i386-common/xkeysymbol.map b/i386-common/xkeysymbol.map
new file mode 100644 (file)
index 0000000..e67347d
--- /dev/null
@@ -0,0 +1,8 @@
+KEY_POWER,XF86PowerOff
+KEY_MENU,XF86Send
+KEY_HOME,XF86Phone
+KEY_BACK,XF86Stop
+KEY_CAMERA,XF86WebCam
+KEY_CONFIG,XF86Pictures
+KEY_VOLUMEDOWN,XF86AudioLowerVolume
+KEY_VOLUMEUP,XF86AudioRaiseVolume
diff --git a/i386-common/xorg.service b/i386-common/xorg.service
new file mode 100644 (file)
index 0000000..ac5e885
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=xserver
+DefaultDependencies=no
+After=systemd-udev-trigger.service opt.mount smack-default-labeling.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/startx
+EnvironmentFile=/run/tizen-mobile-env
+
+[Install]
+WantedBy=basic.target
diff --git a/i386-common/xresources.service b/i386-common/xresources.service
new file mode 100644 (file)
index 0000000..60f93b9
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=Xresources
+After=tizen-runtime.target
+Requires=tizen-runtime.target
+ConditionFileIsExecutable=/usr/bin/xrdb
+
+[Service]
+Type=oneshot
+EnvironmentFile=/run/tizen-mobile-env
+ExecStart=/usr/bin/xrdb -load -nocpp /etc/X11/Xresources
+ExecStartPost=/bin/mkdir -p /tmp/hibernation
+ExecStartPost=/bin/touch /tmp/hibernation/xresources_ready
+
+[Install]
+WantedBy=multi-user.target
index 40f2667..73995dd 100755 (executable)
@@ -8,7 +8,7 @@ export PATH=/bin:/usr/bin/:/sbin:/usr/sbin
 case "$1" in
   start)
     is_running=`ps ax | awk '{ print \$5 }' | grep Xorg` || true
-    if [ "${is_running}" = "" ]; then                          
+    if [ "${is_running}" = "" ]; then
         echo "Starting Xorg server..."
         /usr/bin/startx
     else
@@ -17,8 +17,8 @@ case "$1" in
   ;;
 
   restart|reload|force-reload)
-    is_running=`ps ax | awk '{ print \$5 }' | grep Xorg` || true                
-    if [ "${is_running}" != "" ]; then                                           
+    is_running=`ps ax | awk '{ print \$5 }' | grep Xorg` || true
+    if [ "${is_running}" != "" ]; then
         $0 stop || true
         sleep 3
     fi
@@ -27,7 +27,7 @@ case "$1" in
 
   stop)
     is_running=`ps ax | awk '{ print \$5 }' | grep Xorg` || true
-    if [ "${is_running}" != "" ]; then                        
+    if [ "${is_running}" != "" ]; then
         echo "Stopping Xorg server..."
         killall -9 Xorg
     else
index 5888bbe..d20e319 100644 (file)
@@ -1,5 +1,5 @@
 Name:    xf86-misc-vigs
-Summary:    X.Org X11 X server misc files for vigs
+Summary:    X.Org X11 X server configuration files for vigs
 Version:    0.1.0
 Release:    1
 ExclusiveArch:    %ix86
@@ -55,6 +55,13 @@ ln -s /etc/rc.d/init.d/xresources %{buildroot}/etc/rc.d/rc4.d/S80xresources
 
 cp -Rd conf-i386* %{buildroot}/etc/X11/
 
+mkdir -p %{buildroot}%{_libdir}/systemd/system/basic.target.wants
+install -m 0644 i386-common/xorg.service %{buildroot}%{_libdir}/systemd/system/xorg.service
+ln -s ../xorg.service %{buildroot}%{_libdir}/systemd/system/basic.target.wants/xorg.service
+mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
+install -m 0644 i386-common/xresources.service %{buildroot}%{_libdir}/systemd/system/xresources.service
+ln -s ../xresources.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/xresources.service
+
 %post
 mkdir -p /etc/X11/xorg.conf.d
 for i in /etc/X11/conf-i386-vigs/*; do
@@ -84,3 +91,7 @@ done
 %dir /etc/X11/arch-preinit.d
 /etc/X11/arch-preinit.d/*
 /etc/X11/conf-i386-vigs/*
+%{_libdir}/systemd/system/xorg.service
+%{_libdir}/systemd/system/basic.target.wants/xorg.service
+%{_libdir}/systemd/system/xresources.service
+%{_libdir}/systemd/system/multi-user.target.wants/xresources.service