Add a patch to make Solaar work with keyboard+touchpad devices like

the Logitech K400

Approved by:	lme (mentor)
Differential Revision:	https://reviews.freebsd.org/D10655
This commit is contained in:
Tobias Kortkamp 2017-05-09 09:13:19 +00:00
parent 298c027f90
commit cd7bfc9f09
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=440475
2 changed files with 18 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= solaar
PORTVERSION= g20170327
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= tobik@FreeBSD.org

View File

@ -0,0 +1,17 @@
Solaar will die with a silent error when trying to configure devices like
e.g. the Logitech K400 that are detected as keyboards but also have
mouse settings for an integrated touchpad. Remove the overly cautious
assert.
https://github.com/pwr/Solaar/issues/330
--- lib/logitech_receiver/settings.py.orig 2017-04-17 19:26:20 UTC
+++ lib/logitech_receiver/settings.py
@@ -61,7 +61,6 @@ class Setting(object):
def __call__(self, device):
assert not hasattr(self, '_value')
- assert self.device_kind is None or self.device_kind == device.kind
p = device.protocol
if p == 1.0:
# HID++ 1.0 devices do not support features