debian/0000775000000000000000000000000012240342732007167 5ustar debian/source_mtdev.py0000664000000000000000000001011012240342700012224 0ustar # Multitouch device related problems # Author: Ara Pulido # (C) 2010 Canonical Ltd. # License: GPL v2 or later. from glob import glob from subprocess import Popen, PIPE import sys import apport.hookutils import time import os # See linux/input.h ABS_MT_POSITION_X = 0x35 # scan-for-mt-devices written by Marc Tardif, # based on a script by Henrik Rydberg class Input(object): def __init__(self, path): self.path = path @property def device(self): base = os.path.basename(self.path) return os.path.join("/dev", "input", base) @property def name(self): path = os.path.join(self.path, "device", "name") return read_line(path) def get_capabilities(self): path = os.path.join(self.path, "device", "capabilities", "abs") line = read_line(path) capabilities = [] long_bit = getconf("LONG_BIT") for i, word in enumerate(line.split(" ")): word = int(word, 16) subcapabilities = [bool(word & 1< capability and capabilities[capability] def getconf(var): output = Popen(["getconf", var], stdout=PIPE).communicate()[0] return int(output) def get_inputs(path): event_glob = os.path.join(path, "event*") for event_path in glob(event_glob): yield Input(event_path) def read_line(path): f = open(path) try: return f.readline().strip() finally: f.close() def scan_for_mt_devices(report): capability = ABS_MT_POSITION_X input = "/sys/class/input" inputs = get_inputs(input) inputs = [i for i in inputs if i.has_capability(capability)] report['MtDevices'] = '' if inputs: for input in inputs: report['MtDevices'] += "%s: %s\n" % (input.name, input.device) return 0 else: report['MtDevices'] += "No capable devices found..." return 1 ################################## description = 'Multitouch device problem' RELATED_PACKAGES = ['xserver-xorg', 'xserver-xorg-video-intel', 'xserver-xorg-video-ati', 'libmtdev1', 'libutouch-grail1', 'libutouch-geis1'] def add_info(report, ui): report.setdefault('Tags', '') report['Tags'] += ' hci touch' # Capture hardware apport.hookutils.attach_hardware(report) report['PciDisplay'] = apport.hookutils.pci_devices(apport.hookutils.PCI_DISPLAY) # Attach the results of scan mt devices scan_for_mt_devices(report) # Only collect the following data if X11 is available if os.environ.get('DISPLAY'): # For resolution/multi-head bugs report['Xrandr'] = apport.hookutils.command_output(['xrandr', '--verbose']) apport.hookutils.attach_file_if_exists(report, os.path.expanduser('~/.config/monitors.xml'), 'monitors.xml') # Attach the Xorg logs and config apport.hookutils.attach_file_if_exists(report, '/etc/X11/xorg.conf', 'XorgConf') apport.hookutils.attach_file(report, '/var/log/Xorg.0.log', 'XorgLog') apport.hookutils.attach_file_if_exists(report, '/var/log/Xorg.0.log.old', 'XorgLogOld') apport.hookutils.attach_file_if_exists(report, '/var/log/gdm/:0.log', 'GdmLog') apport.hookutils.attach_file_if_exists(report, '/var/log/gdm/:0.log.1', 'GdmLogOld') # Attach the output of xinput report['XInput'] = apport.hookutils.command_output(['xinput', 'input']) # Attach the output of lsinput report['LsInput'] = apport.hookutils.root_command_output(["lsinput"]) # Attach descriptors attach_descriptors(report) apport.hookutils.attach_related_packages(report, RELATED_PACKAGES) def attach_descriptors(report): path = '/sys/kernel/debug/hid/*/rdesc' for desc in glob(path): name = desc.split('/')[5] name = name.replace(":", "").replace(".", "") report[name] = apport.hookutils.root_command_output(["cat", desc]) debian/mtdev-tools.install0000664000000000000000000000001212240342700013020 0ustar usr/bin/* debian/libmtdev1-udeb.install0000664000000000000000000000003112240342700013350 0ustar usr/lib/*/libmtdev.so.1* debian/mtdev-test.10000664000000000000000000000067512240342700011350 0ustar .TH mtdev 1 "July 16, 2010" "Ara Pulido" .SH NAME mtdev \- Tool to test libmtdev library .SH SYNOPSIS .B mtdev .RI .SH DESCRIPTION mtdev reads the kernel event device directly, transforms the flow of events, and prints information from the kernel input events structure. It only works on MT-enabled kernel drivers. .SH AUTHOR .B libmtdev and the accompanying tools are developed by Henrik Rydberg debian/rules0000775000000000000000000000145512240342700010247 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/autoreconf.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/class/autotools.mk DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) distribution := $(shell lsb_release -is) LDFLAGS += -Wl,-z,defs -Wl,--as-needed DEB_DH_MAKESHLIBS_ARGS_libmtdev1 = --add-udeb=libmtdev1-udeb DEB_INSTALL_MANPAGES_mtdev-tools = debian/mtdev-test.1 change_dist: control links links: $(MAKE) -f debian/rules.conf $@ common-binary-post-install-arch:: find debian/tmp/usr/lib -name \*.la -exec rm {} \; find debian/tmp/usr/lib -name \*.a -exec rm {} \; common-binary-predeb-arch:: list-missing binary-install/libmtdev1-udeb:: rm -rf debian/libmtdev1-udeb/usr/share/doc/libmtdev1-udeb debian/changelog0000664000000000000000000001151712240342716011050 0ustar mtdev (1.1.4-1ubuntu1) trusty; urgency=low * Merge from Debian unstable. Remaining changes: - debian/libmtdev1.links: Install apport hook links. -- Logan Rosen Sat, 26 Oct 2013 18:16:52 -0400 mtdev (1.1.4-1) unstable; urgency=low * New upstream release. -- Nobuhiro Iwamatsu Tue, 24 Sep 2013 08:25:26 +0900 mtdev (1.1.3-1ubuntu1) saucy; urgency=low * Merge from Debian unstable. Remaining changes: - debian/libmtdev1.links: Install apport hook links. -- Logan Rosen Mon, 20 May 2013 21:16:05 -0400 mtdev (1.1.3-1) unstable; urgency=low * Upload to unstable. * Update debian/control. - Remove automake and libtool from Build-Depends and add dh-autoreconf. - Update Standards-Version to 3.9.4. * Update debian/rules. - Add rules/autoreconf.mk (Closes: #700019). - Remove document files from libmtdev1-udeb. -- Nobuhiro Iwamatsu Wed, 08 May 2013 14:45:13 +0900 mtdev (1.1.3-1~exp1) experimental; urgency=low * New upstream release. * Update debian/control. - Fix typo. Thanks to Erik Esterer. (Closes: #685145) - Add Vcs-Git and Vcs-Browser field. -- Nobuhiro Iwamatsu Wed, 05 Sep 2012 01:22:39 +0900 mtdev (1.1.2-1ubuntu1) quantal; urgency=low * Merge from debian unstable. Remaining changes: - debian/libmtdev1.links: Install apport hook links. -- Chase Douglas Fri, 17 Aug 2012 13:56:10 -0700 mtdev (1.1.2-1) unstable; urgency=low * New upstream release. * Remove all debian/patches. -- Nobuhiro Iwamatsu Fri, 02 Mar 2012 15:29:50 +0900 mtdev (1.1.0-2ubuntu1) oneiric; urgency=low * Merge with debian, remaining changes: - debian/libmtdev1.links: Install apport hook links. -- Didier Roche Wed, 27 Jul 2011 15:40:42 +0200 mtdev (1.1.0-2) unstable; urgency=low * Update debian/control. - Change Architecture from any to linux-any (Closes: #613112). * Add udeb package of libmtdev1. - Remove debian/control.m4. - Update debian/rules.conf and debian/rules. * Add patches from upstream. - 0001-mtdev_close-should-ignore-NULL-devices.patch - 0002-Return-EINVAL-for-invalid-parameters-on-mtdev_init.patch -- Nobuhiro Iwamatsu Mon, 09 May 2011 02:52:07 +0900 mtdev (1.1.0-1) unstable; urgency=low * Updated for Debian. * Update debian/rules. - Add change_dist target. This target converts debian/control and links files for distribution automatically. -- Nobuhiro Iwamatsu Sat, 12 Feb 2011 17:32:06 +0900 mtdev (1.1.0-0ubuntu1) natty; urgency=low [ Henrik Rydberg ] * New upstream release. (LP: #702537) * Update library symbols. [ Christopher James Halse Rogers ] * Merge from Debian unstable. Remaining Ubuntu changes: - debian/control: Build udeb for installer. - debian/libmtdev1.links: Install apport hook links. -- Christopher James Halse Rogers Mon, 31 Jan 2011 12:02:10 +1100 mtdev (1.0.11-1) unstable; urgency=low * Initial upload to Debian (Closes: #589173). - Comment out libmtdev1-udeb. * New upstream release. * Update debian/copyright. - Remove old copyright. * Update debian/libmtdev1.links - Comment out all line. utouch and utouch-grail is not provided from debian. -- Nobuhiro Iwamatsu Mon, 15 Nov 2010 02:48:21 +0900 mtdev (1.0.10-0ubuntu1) maverick; urgency=low [ Ara Pulido ] * Added apport hook for libmtdev1 (LP: #622817) + Include symlink for utouch and utouch-grail [ Henrik Rydberg ] * New upstream release. - LP: #633414 -- Chase Douglas Fri, 10 Sep 2010 10:44:20 -0400 mtdev (1.0.9-0ubuntu1) maverick; urgency=low * Add udeb for installer * Remove mtdev-dbg package since archive builds -dbgsym automatically * Fix up package description typos * New upstream release. - LP: #622992 -- Chase Douglas Mon, 23 Aug 2010 16:41:55 -0400 mtdev (1.0.8-0ubuntu1) maverick; urgency=low * New upstream release. * Update lintian standards to 3.9.1 * Make package descriptions more uniform * Add mtdev-dbg package * Align dependency lists properly * Add linker flags to filter out unnecessary linking * Delete .a and .la files after building * Don't ship .a file * List missing files from packages * Add symbols file -- Chase Douglas Wed, 04 Aug 2010 13:09:48 -0400 mtdev (1.0.6-0ubuntu2) maverick; urgency=low * Do not install the .la file when installing the -dev package (LP: #613016) -- Ara Pulido Tue, 03 Aug 2010 17:55:19 +0200 mtdev (1.0.6-0ubuntu1) maverick; urgency=low * Initial release (LP: #605915) -- Ara Pulido Tue, 20 Jul 2010 14:27:57 +0200 debian/libmtdev1.install0000664000000000000000000000012012240342700012432 0ustar usr/lib/*/libmtdev.so.1* debian/source_mtdev.py usr/share/apport/package-hooks debian/source/0000775000000000000000000000000012240342732010467 5ustar debian/source/format0000664000000000000000000000001412240342700011670 0ustar 3.0 (quilt) debian/rules.conf0000664000000000000000000000021712240342700011163 0ustar links: libmtdev1-links-file libmtdev1-links-file: echo "Change links file"; \ m4 $(ctrl_flags) \ debian/links.m4 > debian/libmtdev1.links debian/libmtdev-dev.install0000664000000000000000000000006612240342700013136 0ustar usr/include usr/lib/*/libmtdev.so usr/lib/*/pkgconfig debian/control0000664000000000000000000000502012240342700010562 0ustar Source: mtdev Section: libs Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Nobuhiro Iwamatsu Build-Depends: debhelper (>= 8.1.3), cdbs (>= 0.4.93~), pkg-config, quilt, dpkg-dev (>= 1.14.17), dh-autoreconf (>= 7) Standards-Version: 3.9.4 Homepage: http://bitmath.org/code/mtdev/ Vcs-Git: git://anonscm.debian.org/collab-maint/mtdev.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/mtdev.git Package: libmtdev1 Architecture: linux-any Depends: ${shlibs:Depends}, ${misc:Depends} Pre-Depends: ${misc:Pre-Depends} Multi-Arch: same Description: Multitouch Protocol Translation Library - shared library libmtdev is a library for translating evdev multitouch events using the legacy protocol to the new multitouch slots protocol. This is necessary for kernel drivers that have not been updated to use the newer protocol. Package: libmtdev-dev Section: libdevel Architecture: linux-any Depends: libmtdev1 (= ${binary:Version}), ${misc:Depends} Description: Multitouch Protocol Translation Library - dev files libmtdev is a library for translating evdev multitouch events using the legacy protocol to the new multitouch slots protocol. This is necessary for kernel drivers that have not been updated to use the newer protocol. . This package contains files that are needed to build applications. Package: mtdev-tools Section: libdevel Architecture: linux-any Depends: libmtdev1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Multitouch Protocol Translation Library - test tools libmtdev is a library for translating evdev multitouch events using the legacy protocol to the new multitouch slots protocol. This is necessary for kernel drivers that have not been updated to use the newer protocol. . This package provides some test tools for the libmtdev library. + mtdev-test: prints the information coming from the kernel Package: libmtdev1-udeb Section: debian-installer Architecture: linux-any XC-Package-Type: udeb Depends: ${shlibs:Depends}, ${misc:Depends} Description: Multitouch Protocol Translation Library - shared library libmtdev is a library for translating evdev multitouch events using the legacy protocol to the new multitouch slots protocol. This is necessary for kernel drivers that have not been updated to use the newer protocol. . This is a udeb, or a microdeb, for the debian-installer. debian/libmtdev1.symbols0000664000000000000000000000144712240342700012471 0ustar libmtdev.so.1 libmtdev1 #MINVER# mtdev_close@Base 1.0.8 mtdev_close_delete@Base 1.1.0 mtdev_configure@Base 1.0.8 mtdev_delete@Base 1.1.0 mtdev_empty@Base 1.0.8 mtdev_fetch_event@Base 1.0.8 mtdev_get@Base 1.0.8 mtdev_get_abs_fuzz@Base 1.1.0 mtdev_get_abs_maximum@Base 1.1.0 mtdev_get_abs_minimum@Base 1.1.0 mtdev_get_abs_resolution@Base 1.1.0 mtdev_get_event@Base 1.0.8 mtdev_has_mt_event@Base 1.1.0 mtdev_idle@Base 1.0.8 mtdev_init@Base 1.0.8 mtdev_match@Base 1.0.8 mtdev_match_four@Base 1.0.11 mtdev_new@Base 1.1.0 mtdev_new_open@Base 1.1.0 mtdev_open@Base 1.0.8 mtdev_put_event@Base 1.0.8 mtdev_set_abs_fuzz@Base 1.1.0 mtdev_set_abs_maximum@Base 1.1.0 mtdev_set_abs_minimum@Base 1.1.0 mtdev_set_abs_resolution@Base 1.1.0 mtdev_set_mt_event@Base 1.1.0 mtdev_set_slots@Base 1.1.2 debian/copyright0000664000000000000000000000316412240342700011121 0ustar This package was debianized by Chase Douglas Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=REVISION Name: mtdev Maintainer: Henrik Rydberg Source: http://bitmath.org/code/mtdev/ Files: * Copyright: 2010, Henrik Rydberg 2010, Canonical Ltd. License: The MIT license Files: debian/* Copyright: 2010, Chase Douglas 2010 - 2012, Nobuhiro Iwamatsu License: The MIT license License: The MIT License 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 (including the next paragraph) 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. debian/libmtdev1.links0000664000000000000000000000030412240342700012110 0ustar usr/share/apport/package-hooks/source_mtdev.py usr/share/apport/package-hooks/source_utouch.py usr/share/apport/package-hooks/source_mtdev.py usr/share/apport/package-hooks/source_utouch-grail.py debian/watch0000664000000000000000000000010112240342700010203 0ustar version=3 http://bitmath.org/code/mtdev/mtdev-([0-9.]+)\.tar\.gz debian/compat0000664000000000000000000000000212240342700010360 0ustar 7 debian/control.m40000664000000000000000000000554112240342700011111 0ustar divert(-1) define(`checkdef',`ifdef($1, , `errprint(`error: undefined macro $1 ')m4exit(1)')') define(`errexit',`errprint(`error: undefined macro `$1' ')m4exit(1)') define(`PN', `$1') ifdef(`PRI', `', ` define(`PRI', `$1') ') define(`MAINTAINER', `Nobuhiro Iwamatsu ') define(`ifenabled', `ifelse(index(enabled_pkgs, `$1'), -1, `dnl', `$2')') divert`'dnl dnl -------------------------------------------------------------------------- Source: mtdev Section: libs Priority: optional ifelse(DIST,`Ubuntu',`dnl Maintainer: Ubuntu Developers XSBC-Original-Maintainer: MAINTAINER ', `dnl Maintainer: MAINTAINER ')dnl DIST Build-Depends: debhelper (>= 7.0.0), pkg-config, quilt, dpkg-dev (>= 1.14.17), automake, libtool, cdbs Standards-Version: 3.9.1 Homepage: http://bitmath.org/code/mtdev/ Package: libmtdev1 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Multitouch Protocol Translation Library - shared library libmtdev is a library for translating evdev multitouch events using the legacy protocol to the new multitouch slots protocol. This is necessary for kernel drivers that have not been updated to use the newer protocol. Package: libmtdev-dev Section: libdevel Architecture: any Depends: libmtdev1 (= ${binary:Version}), ${misc:Depends} Description: Multitouch Protocol Translation Library - dev files libmtdev is a library for translating evdev multitouch events using the legacy protocol to the new multitouch slots protocol. This is necessary for kernel drivers that have not been updated to use the newer protocol. . This package contains files that are needed to build applications. Package: mtdev-tools Section: libdevel Architecture: any Depends: libmtdev1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Multitouch Protocol Translation Library - test tools libmtdev is a library for translating evdev multitouch events using the legacy protocol to the new multitouch slots protocol. This is necessary for kernel drivers that have not been updated to use the newer protocol. . This package provides some test tools for the libmtdev library. + mtdev-test: prints the information comming from the kernel ifenabled(`mtdevudev',` Package: libmtdev1-udeb Section: debian-installer Architecture: any XC-Package-Type: udeb Depends: ${shlibs:Depends}, ${misc:Depends} Description: Multitouch Protocol Translation Library - shared library libmtdev is a library for translating evdev multitouch events using the legacy protocol to the new multitouch slots protocol. This is necessary for kernel drivers that have not been updated to use the newer protocol. . This is a udeb, or a microdeb, for the debian-installer. ')`'dnl debian/links.m40000664000000000000000000000075312240342700010551 0ustar divert(-1) define(`checkdef',`ifdef($1, , `errprint(`error: undefined macro $1 ')m4exit(1)')') define(`errexit',`errprint(`error: undefined macro `$1' ')m4exit(1)') divert`'dnl dnl -------------------------------------------------------------------------- ifelse(DIST,`Ubuntu',`dnl usr/share/apport/package-hooks/source_mtdev.py usr/share/apport/package-hooks/source_utouch.py usr/share/apport/package-hooks/source_mtdev.py usr/share/apport/package-hooks/source_utouch-grail.py ')dnl DIST