use evdev instead of tslib and calibrate with xorg.conf.d script
This commit is contained in:
parent
fcad9a7aa0
commit
59822714e5
1 changed files with 20 additions and 13 deletions
|
@ -24,7 +24,7 @@ done
|
||||||
|
|
||||||
# cdebotstrap
|
# cdebotstrap
|
||||||
DEPS_SYSTEM="locales,udev,module-init-tools,sysklogd,klogd,psmisc,mtd-utils,ntpdate,debconf-english"
|
DEPS_SYSTEM="locales,udev,module-init-tools,sysklogd,klogd,psmisc,mtd-utils,ntpdate,debconf-english"
|
||||||
DEPS_CONSOLE="screen,less,vim-tiny,console-tools,conspy,console-setup-mini,man-db,fbset,input-utils,libts-bin"
|
DEPS_CONSOLE="screen,less,vim-tiny,console-tools,conspy,console-setup-mini,man-db,fbset,input-utils"
|
||||||
#DEPS_WLAN="wpasupplicant"
|
#DEPS_WLAN="wpasupplicant"
|
||||||
#DEPS_BT="bluez,bluez-utils,bluez-alsa,bluez-gstreamer"
|
#DEPS_BT="bluez,bluez-utils,bluez-alsa,bluez-gstreamer"
|
||||||
DEPS_NETMGMT="ifupdown,netbase,iputils-ping,dhcp3-client"
|
DEPS_NETMGMT="ifupdown,netbase,iputils-ping,dhcp3-client"
|
||||||
|
@ -111,21 +111,13 @@ fi
|
||||||
|
|
||||||
# install xorg
|
# install xorg
|
||||||
if $XORG; then
|
if $XORG; then
|
||||||
chroot $ROOTDIR apt-get install xorg xserver-xorg-input-tslib xserver-xorg-video-glamo nodm matchbox-window-manager -qq
|
chroot $ROOTDIR apt-get install xorg xserver-xorg-input-evdev xserver-xorg-video-glamo nodm matchbox-window-manager -qq
|
||||||
# /etc/X11/xorg.conf
|
# /etc/X11/xorg.conf
|
||||||
cat > $ROOTDIR/etc/X11/xorg.conf << __END__
|
cat > $ROOTDIR/etc/X11/xorg.conf << __END__
|
||||||
Section "Device"
|
Section "Device"
|
||||||
Identifier "Configured Video Device"
|
Identifier "Configured Video Device"
|
||||||
Driver "fbdev"
|
Driver "fbdev"
|
||||||
EndSection
|
EndSection
|
||||||
Section "InputDevice"
|
|
||||||
Identifier "Configured Touchscreen"
|
|
||||||
Driver "tslib"
|
|
||||||
Option "CorePointer" "true"
|
|
||||||
Option "SendCoreEvents" "true"
|
|
||||||
Option "Device" "/dev/input/event2"
|
|
||||||
Option "Protocol" "Auto"
|
|
||||||
EndSection
|
|
||||||
__END__
|
__END__
|
||||||
cat > $ROOTDIR/etc/skel/.xsession << __END__
|
cat > $ROOTDIR/etc/skel/.xsession << __END__
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
@ -143,6 +135,7 @@ NODM_X_OPTIONS='-nolisten tcp'
|
||||||
NODM_MIN_SESSION_TIME=60
|
NODM_MIN_SESSION_TIME=60
|
||||||
__END__
|
__END__
|
||||||
echo allowed_users=anybody > $ROOTDIR/etc/X11/Xwrapper.config
|
echo allowed_users=anybody > $ROOTDIR/etc/X11/Xwrapper.config
|
||||||
|
mkdir -p $ROOTDIR/etc/X11/xorg.conf.d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install pyneo
|
# install pyneo
|
||||||
|
@ -288,7 +281,14 @@ print_yellow "Running on \$DEVICE."
|
||||||
|
|
||||||
echo -n "Calibrating Touchscreen."
|
echo -n "Calibrating Touchscreen."
|
||||||
if [ \$DEVICE = "gta01" ]; then
|
if [ \$DEVICE = "gta01" ]; then
|
||||||
echo -67 36365 -2733100 -48253 -310 45219816 65536 > /etc/pointercal
|
cat > /etc/X11/xorg.conf.d/s3c2410.conf << __XORG__
|
||||||
|
Section "InputClass"
|
||||||
|
Identifier "s3c2410 TouchScreen"
|
||||||
|
MatchProduct "s3c2410 TouchScreen"
|
||||||
|
Option "Calibration" "69, 922, 950, 65"
|
||||||
|
Option "SwapAxes" "1"
|
||||||
|
EndSection
|
||||||
|
__XORG__
|
||||||
print_exit_status \$?
|
print_exit_status \$?
|
||||||
|
|
||||||
echo -n "Appending MAC address to kernel boot parameters."
|
echo -n "Appending MAC address to kernel boot parameters."
|
||||||
|
@ -316,7 +316,14 @@ __HOSTS__
|
||||||
echo "/dev/mtdblock4 /media/nand jffs2 defaults,noatime 0 0" >> /etc/fstab
|
echo "/dev/mtdblock4 /media/nand jffs2 defaults,noatime 0 0" >> /etc/fstab
|
||||||
print_exit_status \$?
|
print_exit_status \$?
|
||||||
else
|
else
|
||||||
echo -67 38667 -4954632 -51172 121 46965312 65536 > /etc/pointercal
|
cat > /etc/X11/xorg.conf.d/s3c2410.conf << __XORG__
|
||||||
|
Section "InputClass"
|
||||||
|
Identifier "s3c2410 TouchScreen"
|
||||||
|
MatchProduct "s3c2410 TouchScreen"
|
||||||
|
Option "Calibration" "110 922 924 96"
|
||||||
|
Option "SwapAxes" "1"
|
||||||
|
EndSection
|
||||||
|
__XORG__
|
||||||
print_exit_status \$?
|
print_exit_status \$?
|
||||||
|
|
||||||
echo -n "Configuring glamo into xorg.conf."
|
echo -n "Configuring glamo into xorg.conf."
|
||||||
|
@ -382,7 +389,7 @@ exit 0
|
||||||
__END__
|
__END__
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
chroot $ROOTDIR apt-get remove cdebootstrap-helper-rc.d -qq
|
chroot $ROOTDIR apt-get remove cdebootstrap-helper-rc.d xserver-xorg-input-synaptics xserver-xorg-input-wacom -qq
|
||||||
chroot $ROOTDIR apt-get clean -qq
|
chroot $ROOTDIR apt-get clean -qq
|
||||||
rm -f $ROOTDIR/etc/ssh/ssh_host_*
|
rm -f $ROOTDIR/etc/ssh/ssh_host_*
|
||||||
rm -f $ROOTDIR/var/lib/apt/lists/*
|
rm -f $ROOTDIR/var/lib/apt/lists/*
|
||||||
|
|
Loading…
Reference in a new issue