Commit Graph
34 Commits
Author SHA1 Message Date
Alexander Ponyatykh 02ea3752d0 Remove 00-fix-reinit.patch
Initialization and deinitialization functions were rewritten as part of
switch to libusb 1.0 path. There is no point in keeping a separate patch
that changes them slightly.
2019-11-19 00:33:42 +03:00
Alexander Ponyatykh 3e35fe1061 Use debhelper-compat instead of debian/compat 2019-11-18 02:58:36 +03:00
Alexander Ponyatykh 0408478701 Rewrite of initialization and deinitialization functions
Original code iterates through every possible descriptor in nested
loops and tries to do initialization every iteration without considered
what are those descriptors for nor stopping when interface is finally
claimed. It has following problems:
1. It iterates through all configurations, but explicitly resets a
device configuration to 1 every iteration.
2. It never configures a possibly shared device even it is currently
unconfigured.
3. It treats alternative settings as independent interfaces and iterates
through them while implicitly setting alternative setting to 0.
4. It can claim several interfaces but uses only the last one.
5. It doesn't track claimed interfaces' number and always deinitializes
interface 0.

This in fact works for a device with single configuration, single
interface and no alternative settings, like most of the supported
devices (except G510), but it is fundamentally incorrect. Therefore as
part of migration to libusb 1.0 I've rewritten the initialization
procedure in a more linear way. First it selects a configuration, which
is 1 in most cases. Next it iterates through descriptors in this
configuration to find a single compatible interface. Only after that it
resets the device and claims the interface.
2019-11-18 02:50:24 +03:00
Alexander Ponyatykh bd4495ec01 Fix transfer error handling 2019-11-18 02:50:24 +03:00
Alexander Ponyatykh 80dac3d2d6 Use explict libusb_context 2019-11-18 02:50:24 +03:00
Alexander Ponyatykh aa2cf02029 Change log level for some error messages
Contrary to expectations, G15_LOG_WARN is more verbose level than
G15_LOG_INFO.
2019-11-18 02:50:24 +03:00
Alexander Ponyatykh 98449afc5d Delay calling libusb_set_option() until libusb is initialized
G15daemon calls libg15Debug() before initLibG15(). This works well with
the legacy library, but the new one requres a context to be initialized
before calling any functions. This patch adds tracking of libusb
initialization status and never calls libusb_set_option() when library
is not initialized.
2019-11-18 02:50:13 +03:00
Alexander Ponyatykh 92e60dd1a4 Migrate from legacy libusb-0.1 to libusb-1.0 2019-11-17 00:21:34 +03:00
Alexander Ponyatykh 9bccbfa208 Removed override for dh_makeshlibs, because this version changes ABI 2019-11-15 01:10:05 +03:00
Alexander Ponyatykh 9c78d63e0c Fix spelling error in log message 2019-11-14 00:57:22 +03:00
Alexander Ponyatykh 854430b9b8 Update packaging:
* Remove watch file.
 * Сonformant to policy 4.4.1.1.
 * Remove obsolete variable from debian/rules.
 * Add Vcs fileds to debian/control
2019-11-14 00:29:44 +03:00
Alexander Ponyatykh 63fce22fd8 Update upstream source from tag 'upstream/1.3.0_svn324'
Update to upstream version '1.3.0~svn324'
with Debian dir f7dfa8d20b
2019-11-13 22:51:35 +03:00
Alexander Ponyatykh 649e30d0a2 New upstream version 1.3.0~svn324 2019-11-13 22:51:35 +03:00
Alexander Ponyatykh 1b84f9ae6d Update the changelog debian/1.2.7-3 2019-05-10 11:46:02 +02:00
Alexander Ponyatykh f0ab55d7b4 New maintainer 2019-05-10 11:42:52 +02:00
Alexander Ponyatykh 8416e8294e Update policy version to 4.3.0 2019-05-10 11:42:31 +02:00
Alexander Ponyatykh 1126bcf712 Switch to dh from cdbs, multiarchify, update debian/control 2019-05-10 11:41:39 +02:00
Alexander Ponyatykh 4cf9e13b7e Use 3.0 (quilt) source format 2019-05-10 11:39:02 +02:00
Alexander Ponyatykh 0c642df5e3 Remove redundant documentation files 2019-05-10 11:36:38 +02:00
Alexander Ponyatykh dfaff3b01b Add a patch to fix re_initLibG15() to properly reset the internal state
This allows g15daemon to continue working after keyboard was
replugged and after suspend or hibernate.

LP: #1357556
2019-05-10 11:34:58 +02:00
Giacomo Catenazzi 862c94c485 Import Upstream version 1.2.7 upstream/1.2.7 2019-04-29 15:39:29 +02:00
Giacomo Catenazzi fd6a5d112b Import Upstream version 1.2.6 upstream/1.2.6 2019-04-29 15:39:29 +02:00
Giacomo Catenazzi 7347e0eb26 Import Upstream version 1.2.5 upstream/1.2.5 2019-04-29 15:39:28 +02:00
Giacomo Catenazzi 3f84e6db54 Import Upstream version 1.2.4 upstream/1.2.4 2019-04-29 15:39:28 +02:00
Giacomo Catenazzi 429a74151c Import Upstream version 1.2.3 upstream/1.2.3 2019-04-29 15:39:28 +02:00
Giacomo Catenazzi 6fc3786b7a Import Upstream version 1.2.2 upstream/1.2.2 2019-04-29 15:39:27 +02:00
Daniel Schepler ef8cd284b9 Import Debian changes 1.2.7-2+libtool
libg15 (1.2.7-2+libtool) unreleased; urgency=low

  * Update libtool at build time using dh-autoreconf, in order to fix a
    build failure on x32.
2013-03-05 07:23:03 -08:00
Giacomo Catenazzi 2db3a95b79 Import Debian changes 1.2.7-2
libg15 (1.2.7-2) unstable; urgency=low

  * add list-missing to debian/rules
  * Don't export the .la file (see debian-devel@l.d.o)
  * We are conformant to policy 2.8.3
debian/1.2.7-2
2009-09-10 08:19:39 +02:00
Giacomo Catenazzi 585875bc07 Import Debian changes 1.2.7-1
libg15 (1.2.7-1) unstable; urgency=low

  * New upstream release
debian/1.2.7-1
2009-04-22 07:24:53 +02:00
Giacomo Catenazzi 981e33d1a8 Import Debian changes 1.2.6-1
libg15 (1.2.6-1) unstable; urgency=low

  * New upstream release
debian/1.2.6-1
2008-01-28 07:58:11 +01:00
Giacomo Catenazzi 09feb56516 Import Debian changes 1.2.5-1
libg15 (1.2.5-1) unstable; urgency=low

  * New upstream release
debian/1.2.5-1
2008-01-09 08:06:33 +01:00
Giacomo Catenazzi f47538d475 Import Debian changes 1.2.4-1
libg15 (1.2.4-1) unstable; urgency=low

  * New upstream release
debian/1.2.4-1
2007-12-18 08:08:43 +01:00
Giacomo Catenazzi 38380e6484 Import Debian changes 1.2.3-1
libg15 (1.2.3-1) unstable; urgency=low

  * New upstrem version: add support of new g15 keyboards
debian/1.2.3-1
2007-11-15 07:44:43 +01:00
Giacomo Catenazzi 5d383b32d1 Import Debian changes 1.2.2-1
libg15 (1.2.2-1) unstable; urgency=low

  * Initial release
debian/1.2.2-1
2007-08-27 07:56:10 +02:00