summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-06-14Release 0.3v0.3Peter Wu2-1/+13
2020-06-14ltunify: fix minor alignment warning with the receiver-info commandPeter Wu1-8/+6
Caught by UndefinedBehaviorSanitizer (UBSan): ltunify.c:785:32: runtime error: load of misaligned address 0x7ffc0e4c38a5 for type 'uint32_t' (aka 'unsigned int'), which requires 4 byte alignment
2020-06-14ltunify: add Nano receiver c534 (MK270) supportPeter Wu2-17/+62
Fix "Unknown protocol 0x0a in devcon notif" errors when trying to list or pair new devices connected to the Nano receiver with device ID c534. This receiver is limited to 2 devices only and does not allow unpairing. Update the hidraw autodetection since the first detected hidraw device is wrong. Check the interface number, similar to Solaar, this avoids more complicated HID descriptor parsing. To confirm whether a device supports the HID++ protocol, either use `sudo lsusb -v046d:` (without a kernel driver bound to it) or use hidrd-convert -o spec /sys/class/hidraw/hidrawX/device/report_descriptor output.txt to find a Vendor-Specific page.
2018-03-30Use correct index in process_notif_dev_connectRob Wu1-1/+1
`devices[dev_idx]` should have been `devices[dev_idx - 1]`, aka `dev`.
2014-04-05shell: support ':' separator for multiple argsPeter Wu1-10/+17
It becomes a pain to remove all colons just to add a single argument.
2014-03-31shell: support ":" separatorPeter Wu1-1/+12
Useful for tshark.
2014-03-29shell: extend with string functionalityPeter Wu1-0/+8
2014-03-18usbmon-setperms: do not grant unnecessary writePeter Wu1-14/+21
Also convert tabs to spaces.
2014-02-19hidpp20: add more possible featuresPeter Wu1-5/+20
Added on 24 January 2014, it is possible that features from newer versions are missing.
2014-02-19Warn when CONFIG_HIDRAW is disabledPeter Wu1-0/+4
2013-09-28ltunify: Add --version (-V) option, use git version if possiblePeter Wu2-7/+25
2013-09-28ltunify: fix crash on unrecognised parameterPeter Wu1-0/+1
2013-09-28ltunify: fix do_read failure when receiving unrelated messagesPeter Wu2-29/+60
When a touchpad event occurs while the device is being queried (e.g. for features), then do_io (for do_read) would fail because the report was not of the correct type (0x20 vs 0x11 for example). To fix this, make do_read retry reads (within the allowed timeout). Previously the expected report type was hidden in the msg parameter, make this expected report type more explicit now in a new parameter.
2013-09-28hidpp20: update feature list from SetPoint 6.61.15Peter Wu1-13/+14
cases are now sorted by feature ID, some names have been adjusted for consistency with the documented names. New feature: - 0x0002 FeatureInfo - 0x6120 Touchmouse6120 Renamed fetures: - IRoot -> Root - IFeatureSet -> FeatureSet - IFirmwareInfo -> DeviceFwVersion - GetDeviceNameType -> DeviceName - DFUControl -> Dfucontrol - batteryLevelStatus -> BatteryStatus - SpecialKeysMSEButtons -> ReprogControls
2013-09-04Revert "Makefile: make user append to CFLAGS instead of overwriting it"Peter Wu1-1/+1
This reverts commit 98f9432088604a9a9336d6b8458bd5e010832437. This was a lazy trick from me to allow adding `-fsanitize=address` easier, but apparantly not all users are so happy with it. Conflicts: Makefile
2013-09-04hidraw.c: fix permissionsPeter Wu1-0/+0
Why the heck was this executable?
2013-08-30shell: support DJ reportsPeter Wu1-3/+5
2013-08-30hidraw: do not interpret report ID for unknown report typePeter Wu1-2/+5
2013-08-30ltunify: ignore DJ reportsPeter Wu1-0/+6
Fixes the warning messages below: $ ltunify unpair 2 Unexpected disconnection type 0000 Device 0x02 Touchpad successfully unpaired $ ltunify pair Please turn your wireless device off and on to start pairing. Found new device, id=0x02 Touchpad Dev conn notif is expected to be short, got 0x20 instead Dev conn notif is expected to be short, got 0x20 instead Dev conn notif is expected to be short, got 0x20 instead Dev conn notif is expected to be short, got 0x20 instead Dev conn notif is expected to be short, got 0x20 instead
2013-08-30hidraw: document DJ report typesPeter Wu1-4/+55
2013-08-28shell: convenience script for accessing hidraw devPeter Wu1-0/+106
2013-08-25usbmon-setperms: ignore duplicate devicesPeter Wu1-1/+1
2013-08-25usbmon-setperms: fix when group does not match userPeter Wu1-1/+6
2013-08-21Fix missing device version information for hid10Peter Wu1-1/+1
This got broken in e2faf04 (version 0.2).
2013-08-20hidpp20: add flag 0x20 for feature typePeter Wu1-3/+6
featureType flag 0x20 is "Reserved for Logitech internal use" according to hidpp20 spec.
2013-08-06usbmon-setperms: add helper for usbmon permissionsPeter Wu1-0/+28
For unprivileged use of usbmon.
2013-08-06Fix wrong names for HID++ 1.0 error codesPeter Wu2-26/+26
2013-07-23Add NEWS file, update to 0.2v0.2Peter Wu2-1/+15
2013-07-23Makefile: add install{,-udevrule} and uninstallPeter Wu2-2/+32
This is supposed to help distro packagers of ltunify.
2013-07-23Fix compile error due to u8Peter Wu1-2/+0
Reported by Harry Weston, a compilation error occurs with GCC 4.4.4 because the u8 type is already defined in ltunify.c
2013-07-23registers: add DFU bitsPeter Wu1-0/+10
I found these somewhere in the binaries.
2013-06-16udev: add more IDsPeter Wu1-5/+13
- Add second official Unifying receiver (mentioned in from hid-logitech-dj.c) and "Unifying Ready" Nano receiver (mentioned in Solaar). - Introduce an extra label for easier extension. - Remove world-writable suggestion, no reason to do so with uaccess.
2013-06-13udev: use uaccess and udev-aclPeter Wu1-2/+8
2013-06-05ltunify: fix wrong serial numberPeter Wu1-1/+1
2013-05-26ltunify: document more advertised HID++2 featuresPeter Wu1-0/+20
2013-05-22ltunify: Add support for c52f nano receiverPeter Wu1-0/+22
2013-05-22ltunify: make hidraw device path more obviousPeter Wu1-6/+8
2013-05-22ltunify: make driver name matching more obviousPeter Wu1-12/+22
Use basename instead of memcmp with some calculations. Move the hiddraw device matching outside a block in preparation for adding multiple match conditions.
2013-05-07keyboard: confirmed padding bytesPeter Wu1-2/+9
2013-05-05keyboard.txt: documentation for key customizationPeter Wu2-0/+106
2013-05-05registers.txt: document notif r1bit1 for k800Peter Wu1-1/+5
2013-04-30ltunify: preliminary HID++ 2.0 support, add TODOPeter Wu4-2/+184
2013-04-30hidraw: annotate HID++ 2.0 errors and IRoot featurePeter Wu1-3/+38
2013-04-29ltunify: show HID++ versionPeter Wu1-0/+67
2013-04-29ltunify: introduce read timeoutsPeter Wu1-6/+23
In case a message does not get a response (user pulled out the receiver, thunder hit the device, coke has fallen on a keyboard, etc.), do not wait `for(;;)`. (2 seconds because accessing registers may be slow)
2013-04-29read-dev-usbmon: prepend time to messagePeter Wu1-0/+17
2013-04-28registers: document backlight notif flagPeter Wu1-6/+3
2013-04-27read-dev-usbmon: retry ioctl when interruptedPeter Wu1-0/+4
Allows read-dev-usbmon to function after suspend/resume.
2013-04-27registers.txt: update with battery/receiver notifsPeter Wu1-4/+32
2013-04-27ltunify: print receiver serialPeter Wu1-6/+39