Peter F. Patel-Schneider
b7a1b81181
device: push settings when device requests software reconfiguration
2021-12-20 08:06:03 -05:00
Peter F. Patel-Schneider
886df1daaf
receiver: add support for Bolt receiver (no pairing yet)
2021-11-11 10:48:12 -05:00
Hugo Osvaldo Barrera
6c4e0333d4
Drop legacy Python 2 `super()` syntax
...
This is a no-op on Python 3.
2021-10-30 16:49:41 -04:00
Hugo Osvaldo Barrera
22bf4fafff
Drop unnecessary __future__ imports
...
These are all active by default on all recent Python versions.
2021-10-30 16:49:41 -04:00
Hugo Osvaldo Barrera
b96d16672b
Drop obsolete encoding declaration
...
This was only parsed in Python 2.
Python 3 only supports UTF-8 for source files, and that's what it uses.
2021-10-30 16:49:41 -04:00
Peter F. Patel-Schneider
c1ce3c2c5f
listener: ignore many notifications that come to a device listener
2021-10-28 12:49:20 -04:00
Peter F. Patel-Schneider
0d9fe48b0c
listener: handle fake Nano connection notifications
2021-09-24 21:55:15 -04:00
Peter F. Patel-Schneider
6c62f975d0
ui: directly connected devices don't need to support connection notifications
2021-04-12 23:21:22 -04:00
Peter F. Patel-Schneider
62034758f0
ui: check that receivers support connection nofications
2021-04-12 22:32:11 -04:00
Peter F. Patel-Schneider
9842972d8b
receiver: handle exception when device is not available while being added
2021-04-04 22:33:38 -04:00
Peter F. Patel-Schneider
6ed09d0643
listener: perform initial activation of devices in listener threads
...
listener: perform initial activation of devices in listener threads
2021-03-30 08:36:37 -04:00
Peter F. Patel-Schneider
808a719823
device: push device settings when device is active after suspend
2020-11-27 10:02:46 -05:00
Peter F. Patel-Schneider
ade9c816c7
receiver: add report_id to notifications and use where appropriate
2020-11-13 08:46:04 -05:00
Peter F. Patel-Schneider
a9d6b4c319
listener: make sure device has a status before processing notifications
2020-10-01 17:45:49 -04:00
Peter F. Patel-Schneider
815c9755b5
receiver: handle bluetooth-connected devices
2020-09-29 11:26:34 -04:00
Wojciech Nawrocki
362d43a7a1
backend: allow device objects to handle notifications
2020-09-28 12:59:04 -04:00
Peter F. Patel-Schneider
58823763ea
ui: handle wired devices
2020-09-23 18:03:47 -04:00
Peter F. Patel-Schneider
ad57db4a39
receiver: permit connection notifications that are not unifying
2020-09-18 05:49:43 -04:00
Peter F. Patel-Schneider
1516daa6d0
listener: fix misleading connection log message
2020-08-27 08:27:58 -04:00
Peter F. Patel-Schneider
1400473877
receiver: make unpairing log messages be INFO, not warning
2020-08-12 19:12:41 -04:00
Peter F. Patel-Schneider
2e1e8dc9b5
receiver: fix bug in logging DJ notifications
2020-08-10 05:34:33 -04:00
Peter F. Patel-Schneider
44f85d5dee
receiver: change notification before status setup from assertion to warning
2020-08-09 18:20:18 -04:00
Peter F. Patel-Schneider
fd02b33971
ui: use ngettext for translatable strings with number dependencies
2020-08-02 11:56:56 -04:00
Peter F. Patel-Schneider
5dbf691403
receiver: ignore DJ pairing notifications
2020-07-30 02:44:56 -04:00
Filipe Laíns
27c90fa736
yapf: adjust style to not indent closing brackets
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
8e89aa0038
yapf: set max line lenght to 127
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
627185079f
flake8: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
33521558ed
pre-commit: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
e6369e0c3c
isort: intial import fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
72a8d311bc
yapf: change code style to yapf
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Peter F. Patel-Schneider
e69c4c6b4f
receiver: don't abort on unexpected device number, just warn
2020-06-21 12:16:04 -04:00
Peter F. Patel-Schneider
b7e8e646b5
ui: don't complain for receivers in other seats
2020-05-17 11:55:01 -04:00
Peter F. Patel-Schneider
23c0397764
listener: mark device as inactive after resume so that settings are correctly pushed
2020-02-22 08:46:56 -05:00
Peter F. Patel-Schneider
4c46a999f7
gui: treat nano protocol disconnections correctly when pairing
2020-02-17 08:34:53 +00:00
Peter F. Patel-Schneider
dc2a1adf26
ui: handle re-pairing receivers correctly when pairing
2020-02-17 08:34:53 +00:00
Peter F. Patel-Schneider
515f994ab8
receiver: ignore disconnects of disconnected devices
2020-02-16 22:16:37 +00:00
Ben Wolsieffer
a59368f3e7
Fix issues with HID++ >= 2.0 devices (particularly related to sleep).
...
* Don't assume 0x41 messages only occur when a device is first paired
(prevents errors when waking from sleep or turning a device on)
* Delay reads/writes when a device is powered on, to prevent broken pipe
errors (hacky solution).
* Don't clear status when a device connects, preventing settings from being
cleared when a device sleeps or is turned off.
* Fix typos.
2018-08-10 23:15:37 -04:00
Mauro Carvalho Chehab
a4b7194490
listener: fix device registration logic
...
The "already_known" var actually doesn't track if the device was
already registered or not.
That causes race issues at Solaar, causing it to sometimes not
detect a device.
Change the logic to always call register_new_device if the
corresponding events happen, and updating already_known
to reflect it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-09-11 10:34:23 -03:00
Daniel Pavel
69febfcea5
don't rely on upower to check devices after wake-up ( #111 )
...
still use upower resume events to ping devices, just in case
the old behaviour is available with a command-line option
2013-08-12 15:22:34 +02:00
Daniel Pavel
5d4d0c07ad
use () instead of [] where possible
2013-07-19 11:48:40 +02:00
Daniel Pavel
38c76393b1
added copyright notices to all source files
2013-07-15 17:54:42 +02:00
Daniel Pavel
ce9b10dc2d
started i18n support
2013-07-15 17:16:44 +02:00
Daniel Pavel
43ab629a26
moved logitech.unifying_receiver package to logitech_receiver
2013-07-12 22:48:09 +02:00
Daniel Pavel
39534d11dd
make sure all debug and info loggings are if-guarded
2013-07-07 17:18:42 +02:00
Daniel Pavel
508444526a
commented-out the poll-ticking feature
...
not useful right now, and less code to worry about
2013-07-06 14:23:56 +02:00
Daniel Pavel
bd3198f6f0
correctly handle out-of-process pairing and unpairing
2013-07-05 16:06:38 +02:00
Daniel Pavel
a03cc9ce64
more chair switching -- moved notifications handling into own .py
2013-07-03 08:21:40 +02:00
Daniel Pavel
b1e9480f5a
minor logging tweaks
2013-07-01 15:00:21 +02:00
Daniel Pavel
8d5718178f
load the configuration when the device is detected
...
and apply it every time the device comes online
2013-06-29 20:35:02 +02:00
Daniel Pavel
375db9996f
fixed reading correct device kind on link notification
2013-06-24 16:58:41 +02:00