This source has copied from xf86-misc-emulfb.
And then has modified.
Change-Id: I16388f69e440e69e9050f6492ed9296702f3e0be
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
--- /dev/null
+Jinhyung Jo <jinhyung.jo@samsung.com>
--- /dev/null
+Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
--- /dev/null
+Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+
+Permission to use, copy, modify, distribute, and sell this software
+and its documentation for any purpose is hereby granted without
+fee, provided that the above copyright notice appear in all copies
+and that both that copyright notice and this permission notice
+appear in supporting documentation, and that the name of Red Hat
+not be used in advertising or publicity pertaining to distribution
+of the software without specific, written prior permission. Red
+Hat makes no representations about the suitability of this software
+for any purpose. It is provided "as is" without express or implied
+warranty.
+
+THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
+NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
+OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--- /dev/null
+# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Permission to use, copy, modify, distribute, and sell this software and its
+# documentation for any purpose is hereby granted without fee, provided that
+# the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation, and that the name of Red Hat not be used in
+# advertising or publicity pertaining to distribution of the software without
+# specific, written prior permission. Red Hat makes no
+# representations about the suitability of this software for any purpose. It
+# is provided "as is" without express or implied warranty.
+#
+# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+
+bin_SCRIPTS = $(top_srcdir)/@ARCH@-common/startx \
+ $(top_srcdir)/@ARCH@-common/scripts/setcpu \
+ $(top_srcdir)/@ARCH@-common/scripts/setpoll
+
+confdir = @CONF_PREFIX@/etc/X11
+conf_DATA = $(top_srcdir)/@ARCH@-common/xorg.conf \
+ $(top_srcdir)/@ARCH@-common/Xresources
+
+
+
--- /dev/null
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
+Except as noted, this software is licensed under MIT License.
+Please, see the LICENSE.MIT file for MIT License terms and conditions.
--- /dev/null
+#! /bin/sh
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd $srcdir
+
+autoreconf -v --install || exit 1
+cd $ORIGDIR || exit $?
+
+#$srcdir/configure --enable-maintainer-mode "$@"
--- /dev/null
+Section "ServerLayout"
+ Identifier "Test Layout"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "vigs"
+ Monitor "Monitor0"
+ # SubSection "Display"
+ # Modes "480x800"
+ # EndSubSection
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ Option "DPMS" "true"
+EndSection
+
+Section "Device"
+ Identifier "vigs"
+ Driver "vigs"
+ Option "fbdev" "/dev/fb0"
+EndSection
--- /dev/null
+Section "InputClass"
+ Identifier "evdev pointer catchall"
+ MatchIsPointer "on"
+ MatchDevicePath "/dev/input/event*"
+ Driver "evdev"
+EndSection
+
+Section "InputClass"
+ Identifier "evdev pointer catchall"
+ MatchIsTablet "on"
+ MatchDevicePath "/dev/input/event*"
+ Driver "evdev"
+EndSection
+
+Section "InputClass"
+ Identifier "evdev touchscreen catchall"
+ MatchIsTouchScreen "on"
+ MatchDevicePath "/dev/input/event*"
+ Driver "evdevmultitouch"
+ Option "MultiTouch" "10"
+EndSection
+
+Section "InputClass"
+ Identifier "evdev keyboard catchall"
+ MatchIsKeyboard "on"
+ MatchDevicePath "/dev/input/event*"
+ Driver "evdev"
+EndSection
--- /dev/null
+Section "Module"
+ SubSection "xdbg"
+ Option "log_path" "/var/log/Xorg.0.log2"
+ EndSubSection
+EndSection
--- /dev/null
+# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Permission to use, copy, modify, distribute, and sell this software and its
+# documentation for any purpose is hereby granted without fee, provided that
+# the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation, and that the name of Red Hat not be used in
+# advertising or publicity pertaining to distribution of the software without
+# specific, written prior permission. Red Hat makes no
+# representations about the suitability of this software for any purpose. It
+# is provided "as is" without express or implied warranty.
+#
+# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+# -*- Autoconf -*-
+
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.61)
+AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
+
+# Checks for programs.
+AC_PROG_INSTALL
+AC_PROG_MAKE_SET
+
+AC_CONFIG_SRCDIR([Makefile.am])
+AM_CONFIG_HEADER([config.h])
+AC_CONFIG_AUX_DIR(.)
+
+AM_INIT_AUTOMAKE([dist-bzip2])
+
+AM_MAINTAINER_MODE
+
+# Checks for programs.
+AC_DISABLE_STATIC
+AC_PROG_LIBTOOL
+AC_PROG_CC
+
+AC_ARG_WITH(arch, AS_HELP_STRING([--with-arch=ARCH], [Architecture (default: arm)]),
+ [ ARCH="$withval" ],
+ [ ARCH="arm" ])
+AC_ARG_WITH(conf-prefix, AS_HELP_STRING([--with-conf-prefix=CONF_PREFIX], [Architecture (default: /opt/etc)]),
+ [ CONF_PREFIX="$withval" ],
+ [ CONF_PREFIX="/opt/etc" ])
+
+AC_SUBST(ARCH)
+AC_SUBST(CONF_PREFIX)
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
--- /dev/null
+keycode 123 = XF86AudioRaiseVolume
+keycode 122 = XF86AudioLowerVolume
+keycode 231 = Cancel
+keycode 177 = XF86Send
+keycode 147 = XF86Phone
+keycode 166 = XF86Stop
+keycode 225 = XF86Search
+keycode 124 = XF86PowerOff
+keycode 179 = XF86WebCam
+keycode 220 = XF86Pictures
+keycode 208 = XF86AudioPlay
+keycode 209 = XF86AudioPause
+keycode 174 = XF86AudioStop
+keycode 171 = XF86AudioNext
+keycode 173 = XF86AudioPrev
+keycode 176 = XF86AudioRewind
+keycode 216 = XF86AudioForward
+keycode 234 = XF86AudioMedia
+keycode 153 =
+keycode 239 =
+keycode 136 =
+keycode 140 =
+keycode 182 =
+keycode 172 =
+keycode 215 =
--- /dev/null
+XORG_ARCH_OPTS="-dumbSched"
--- /dev/null
+export HOME=/root
+export DISPLAY=:0
--- /dev/null
+Xft.dpi: 72
--- /dev/null
+#!/bin/sh
+
+udevadm trigger --subsystem-match=input &
+
--- /dev/null
+#!/bin/sh
+
+if [ "$1" = "" ]; then
+ echo "Usage> /usr/bin/setcpu <performance | ondemand>"
+ exit 1
+fi
+
+if [ "$1" = "perf" ]; then
+ echo "Setting CPU @ Performance Mode"
+ echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+else
+ if [ "$1" = "performance" ]; then
+ echo "Setting CPU @ Performance Mode"
+ echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+ else
+ if [ "$1" = "ondemand" ]; then
+ echo "Setting CPU @ Ondemand Mode"
+ echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+ else
+ echo "Usage> /usr/bin/setcpu <performance | ondemand>"
+ exit 1
+ fi
+ fi
+fi
--- /dev/null
+#!/bin/sh
+
+if [ "$1" = "" ]; then
+ echo "Usage> /usr/bin/setpoll < 0 or 1 >"
+ exit 1
+fi
+
+xinput set-prop "Pointer1" --type=int --format=8 "Evdev Use Poll" $1
--- /dev/null
+#!/bin/sh
+
+[ -r /etc/X11/Xorg.arch-options ] && . /etc/X11/Xorg.arch-options
+
+DISPLAY=":0"
+LOGDIR="/var/log"
+XORG_CONF=" -config /etc/X11/xorg.conf -configdir /etc/X11/xorg.conf.d "
+OTHER_OPTIONS=" -logfile /var/log/Xorg.0.log -ac -noreset +accessx 0 +dpmsphone $XORG_ARCH_OPTS"
+
+# Xorg automatically preserves logs in $LOGDIR/Xorg.DPY.log.(old)
+
+
+for scriptlet in $(find /etc/X11/arch-preinit.d ! -type d); do
+ test -x "$scriptlet" && . "$scriptlet"
+done
+
+if [ -e ~/.xinitrc ]; then
+ XINITRC=~/.xinitrc
+else
+ XINITRC=/etc/X11/xinitrc
+fi
+
+XSERVER_OPTIONS=" ${DISPLAY} ${OTHER_OPTIONS} ${XORG_CONF} "
+
+if [ "$1" = "--gdb" ]; then
+ gdb --args Xorg ${XSERVER_OPTIONS}
+else
+ if [ "$1" = "--only" ]; then
+
+ Xorg ${XSERVER_OPTIONS} &
+ else
+ xinit ${XINITRC} -- /usr/bin/Xorg ${XSERVER_OPTIONS} &
+ fi
+fi
+
--- /dev/null
+#!/bin/sh
+
+/usr/bin/scim -d &
+
+# Link .e
+export HOME=/opt/home/app
+
+if [ ! -d ${HOME}/.e ]; then
+ cp -rf /opt/home/root/.e ${HOME}/.e
+ chown -R app:app ${HOME}/.e
+fi
+
+E17_USER=`id -u app`
+E17_GROUP=`id -g app`
+
+HOME=/opt/home/app USER=app /usr/bin/enlightenment_start -profile samsung -i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it -user ${E17_USER} -group ${E17_GROUP} &
+#su -c "HOME=/opt/home/app /usr/bin/enlightenment_start -profile samsung -i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it &" -l app
+
--- /dev/null
+Section "ServerFlags"
+ Option "blank time" "0"
+ Option "standby time" "0"
+ Option "suspend time" "0"
+ Option "off time" "0"
+EndSection
--- /dev/null
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ start|stop|restart|reload|force-reload)
+ # Setting dpi to 72
+ 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
+ mkdir -p /tmp/hibernation
+ touch /tmp/hibernation/xresources_ready
+ fi
+ ;;
+
+ status)
+ if [ -x /usr/bin/xrdb ]; then
+ /usr/bin/xrdb -query -nocpp
+ fi
+ ;;
+
+ *)
+ echo "Usage: /etc/init.d/xresource {start|stop|status|restart|reload|force-reload}"
+ exit 1
+ ;;
+esac
+
+exit 0
--- /dev/null
+#!/bin/sh
+
+set -e
+
+export DISPLAY=:0
+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
+ echo "Starting Xorg server..."
+ /usr/bin/startx
+ else
+ echo "Xorg server is running already..."
+ fi
+ ;;
+
+ restart|reload|force-reload)
+ is_running=`ps ax | awk '{ print \$5 }' | grep Xorg` || true
+ if [ "${is_running}" != "" ]; then
+ $0 stop || true
+ sleep 3
+ fi
+ $0 start || true
+ ;;
+
+ stop)
+ is_running=`ps ax | awk '{ print \$5 }' | grep Xorg` || true
+ if [ "${is_running}" != "" ]; then
+ echo "Stopping Xorg server..."
+ killall -9 Xorg
+ else
+ echo "Xorg server is not running..."
+ fi
+ ;;
+
+ status)
+ is_running=`ps ax | awk '{ print \$5 }' | grep Xorg` || true
+ if [ "${is_running}" = "" ]; then
+ echo "Xorg server is not running..."
+ else
+ echo "Xorg server is running..."
+ fi
+ ;;
+
+ *)
+ echo "Usage: /etc/init.d/xserver {start|stop|status|restart|reload|force-reload}"
+ exit 1
+ ;;
+esac
+
+exit 0
--- /dev/null
+xset -r 123 -r 122 -r 231 -r 177 -r 147 -r 166 -r 225 -r 124 -r 179 -r 220 -r 208 -r 209 -r 174 -r 171 -r 173 -r 176 -r 216 -r 234 &
--- /dev/null
+Name: xf86-misc-vigs
+Summary: X.Org X11 X server misc files for vigs
+Version: 0.1.0
+Release: 1
+ExclusiveArch: %ix86
+Group: System/X11
+License: MIT
+Source0: %{name}-%{version}.tar.gz
+
+Requires: xserver-xorg-core
+Requires: xorg-x11-drv-evdev-multitouch
+
+%description
+Description: %{summary}
+
+%prep
+%setup -q
+
+%install
+
+mkdir -p %{buildroot}/usr/share/license
+cp -af COPYING %{buildroot}/usr/share/license/%{name}
+
+mkdir -p %{buildroot}/usr/bin
+mkdir -p %{buildroot}/etc/X11/xorg.conf.d
+mkdir -p %{buildroot}/etc/X11/arch-preinit.d
+mkdir -p %{buildroot}/etc/rc.d/init.d
+mkdir -p %{buildroot}/etc/rc.d/rc3.d
+mkdir -p %{buildroot}/etc/rc.d/rc4.d
+mkdir -p %{buildroot}/etc/profile.d
+
+install -m 755 i386-common/startx %{buildroot}/usr/bin/startx
+install -m 755 i386-common/scripts/setcpu %{buildroot}/usr/bin/setcpu
+install -m 755 i386-common/scripts/setpoll %{buildroot}/usr/bin/setpoll
+install -m 755 i386-common/xinitrc %{buildroot}/etc/X11/xinitrc
+install -m 644 i386-common/xorg.conf %{buildroot}/etc/X11/xorg.conf
+
+install -m 755 i386-common/Xorg.sh %{buildroot}/etc/profile.d/Xorg.sh
+install -m 755 i386-common/xserver %{buildroot}/etc/rc.d/init.d/xserver
+install -m 755 i386-common/xresources %{buildroot}/etc/rc.d/init.d/xresources
+
+install -m 644 i386-common/Xmodmap %{buildroot}/etc/X11/Xmodmap
+install -m 644 i386-common/Xresources %{buildroot}/etc/X11/Xresources
+install -m 644 i386-common/Xorg.arch-options %{buildroot}/etc/X11/Xorg.arch-options
+install -m 755 i386-common/xsetrc %{buildroot}/etc/X11/xsetrc
+
+if [ -d i386-common/arch-preinit.d ]; then
+ cp -a i386-common/arch-preinit.d %{buildroot}/etc/X11/
+fi
+
+ln -s /etc/rc.d/init.d/xserver %{buildroot}/etc/rc.d/rc3.d/S20xserver
+ln -s /etc/rc.d/init.d/xserver %{buildroot}/etc/rc.d/rc4.d/S20xserver
+ln -s /etc/rc.d/init.d/xresources %{buildroot}/etc/rc.d/rc3.d/S80xresources
+ln -s /etc/rc.d/init.d/xresources %{buildroot}/etc/rc.d/rc4.d/S80xresources
+
+cp -Rd conf-i386* %{buildroot}/etc/X11/
+
+%post
+mkdir -p /etc/X11/xorg.conf.d
+for i in /etc/X11/conf-i386-vigs/*; do
+ f="${i##*/}"
+ d="/etc/X11/xorg.conf.d/$f"
+ rm -f "$d"
+ ln -s "$i" "$d"
+done
+
+%files
+%manifest xf86-misc-vigs.manifest
+%defattr(-,root,root,-)
+/usr/share/license/%{name}
+/usr/bin/startx
+/usr/bin/setcpu
+/usr/bin/setpoll
+/etc/X11/xinitrc
+/etc/profile.d/Xorg.sh
+/etc/rc.d/init.d/*
+/etc/X11/xorg.conf
+/etc/rc.d/rc3.d/*
+/etc/rc.d/rc4.d/*
+/etc/X11/Xmodmap
+/etc/X11/Xresources
+%attr(755,root,root) etc/X11/xsetrc
+/etc/X11/xorg.conf.d/*.conf
+/etc/X11/Xorg.arch-options
+%dir /etc/X11/arch-preinit.d
+/etc/X11/arch-preinit.d/*
+/etc/X11/conf-i386-vigs/*
--- /dev/null
+<manifest>
+ <request>
+ <domain name="xorg"/>
+ </request>
+ <assign>
+ <filesystem path="/etc/rc.d/init.d/xserver" label="_" exec_label="none" />
+ <filesystem path="/etc/rc.d/init.d/xresources" label="_" exec_label="none" />
+ <filesystem path="/etc/rc.d/rc3.d/S20xserver" label="_" exec_label="none" />
+ <filesystem path="/etc/rc.d/rc4.d/S20xserver" label="_" exec_label="none" />
+ <filesystem path="/etc/rc.d/rc3.d/S80xresources" label="_" exec_label="none" />
+ <filesystem path="/etc/rc.d/rc4.d/S80xresources" label="_" exec_label="none" />
+ </assign>
+</manifest>