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"
Section "Module"
SubSection "xdbg"
+ Option "dlog" "true"
Option "log_path" "/var/log/Xorg.0.log2"
EndSubSection
EndSection
export HOME=/root
export DISPLAY=:0
+export XDG_RUNTIME_DIR=/tmp
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
#!/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
+
--- /dev/null
+KEY_POWER,XF86PowerOff
+KEY_MENU,XF86Send
+KEY_HOME,XF86Phone
+KEY_BACK,XF86Stop
+KEY_CAMERA,XF86WebCam
+KEY_CONFIG,XF86Pictures
+KEY_VOLUMEDOWN,XF86AudioLowerVolume
+KEY_VOLUMEUP,XF86AudioRaiseVolume
--- /dev/null
+[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
--- /dev/null
+[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
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
;;
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
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
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
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
%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