packages: thinkfinger/thinkfinger.spec, thinkfinger/thinkfinger-timeout.pat...
evil
evil at pld-linux.org
Wed Dec 15 00:31:01 CET 2010
Author: evil Date: Tue Dec 14 23:31:01 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- added thinkfinger-timout.spec which reduces timeout(in practice ThinkFinger now works as quick as in windows, no 5 second delay) from 5000 to 10ms, similar to one used by some other distros(5ms, but I found its not enough to initialize usb devices after resuming from s2ram).
- added thinkfinger-syncevent.patch removing need for pressing enter when using recent xorg evdev driver
---- Files affected:
packages/thinkfinger:
thinkfinger.spec (1.15 -> 1.16) , thinkfinger-timeout.patch (NONE -> 1.1) (NEW), thinkfinger-syncevent.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/thinkfinger/thinkfinger.spec
diff -u packages/thinkfinger/thinkfinger.spec:1.15 packages/thinkfinger/thinkfinger.spec:1.16
--- packages/thinkfinger/thinkfinger.spec:1.15 Wed May 27 18:40:24 2009
+++ packages/thinkfinger/thinkfinger.spec Wed Dec 15 00:30:56 2010
@@ -3,12 +3,14 @@
Summary(pl.UTF-8): Sterownik do czytników linii papilarnych SGS Thomson
Name: thinkfinger
Version: 0.3
-Release: 3
+Release: 4
License: GPL
Group: Base
Source0: http://dl.sourceforge.net/thinkfinger/%{name}-%{version}.tar.gz
# Source0-md5: 588565233bcbea5ff0a7f5314361c380
URL: http://thinkfinger.sourceforge.net
+Patch0: %{name}-timeout.patch
+Patch1: %{name}-syncevent.patch
BuildRequires: libusb-devel
BuildRequires: pam-devel >= 0.99.1.0
BuildRequires: pkgconfig
@@ -62,6 +64,8 @@
%prep
%setup -q
+%patch0 -p1
+%patch1 -p0
%build
%configure \
@@ -114,6 +118,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.16 2010/12/14 23:30:56 evil
+- added thinkfinger-timout.spec which reduces timeout(in practice ThinkFinger now works as quick as in windows, no 5 second delay) from 5000 to 10ms, similar to one used by some other distros(5ms, but I found its not enough to initialize usb devices after resuming from s2ram).
+- added thinkfinger-syncevent.patch removing need for pressing enter when using recent xorg evdev driver
+
Revision 1.15 2009/05/27 16:40:24 megabajt
- more verbose files
- release 3
================================================================
Index: packages/thinkfinger/thinkfinger-timeout.patch
diff -u /dev/null packages/thinkfinger/thinkfinger-timeout.patch:1.1
--- /dev/null Wed Dec 15 00:31:01 2010
+++ packages/thinkfinger/thinkfinger-timeout.patch Wed Dec 15 00:30:56 2010
@@ -0,0 +1,11 @@
+--- thinkfinger-0.3/libthinkfinger/libthinkfinger.c.orig 2010-12-12 22:59:59.745793000 +0100
++++ thinkfinger-0.3/libthinkfinger/libthinkfinger.c 2010-12-12 23:00:12.105793000 +0100
+@@ -35,7 +35,7 @@
+
+ #define USB_VENDOR_ID 0x0483
+ #define USB_PRODUCT_ID 0x2016
+-#define USB_TIMEOUT 5000
++#define USB_TIMEOUT 10
+ #define USB_WR_EP 0x02
+ #define USB_RD_EP 0x81
+ #define DEFAULT_BULK_SIZE 0x40
================================================================
Index: packages/thinkfinger/thinkfinger-syncevent.patch
diff -u /dev/null packages/thinkfinger/thinkfinger-syncevent.patch:1.1
--- /dev/null Wed Dec 15 00:31:01 2010
+++ packages/thinkfinger/thinkfinger-syncevent.patch Wed Dec 15 00:30:56 2010
@@ -0,0 +1,50 @@
+--- pam/pam_thinkfinger-uinput.c 2009-12-27 18:42:26.000000000 +0100
++++ pam/pam_thinkfinger-uinput.c 2009-12-27 18:41:55.000000000 +0100
+@@ -34,27 +34,40 @@
+ int uinput_cr (int *fd)
+ {
+ int retval = 0, ev_size = 0;
+- struct input_event ev = {
++ struct input_event key_ev = {
+ .type = EV_KEY,
+ .code = KEY_ENTER,
+ .time = {0, }
+ };
+
+- ev_size = sizeof (ev);
++ ev_size = sizeof (key_ev);
+
+ /* key press */
+- ev.value = 1;
+- if (write (*fd, &ev, ev_size) != ev_size) {
++ key_ev.value = 1;
++ if (write (*fd, &key_ev, ev_size) != ev_size) {
+ retval = errno;
+ goto out;
+ }
+ /* key release */
+- ev.value = 0;
+- if (write (*fd, &ev, ev_size) != ev_size) {
++ key_ev.value = 0;
++ if (write (*fd, &key_ev, ev_size) != ev_size) {
+ retval = errno;
+ goto out;
+ }
+-
++
++ /* syn event */
++ struct input_event syn_ev = {
++ .time = {0, },
++ .type = EV_SYN,
++ .code = SYN_REPORT,
++ .value = 0
++ };
++
++ if (write (*fd, &syn_ev, ev_size) != ev_size) {
++ retval = errno;
++ goto out;
++ }
++
+ out:
+ return retval;
+ }
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/thinkfinger/thinkfinger.spec?r1=1.15&r2=1.16&f=u
More information about the pld-cvs-commit
mailing list