fwupd/plugins/synaptics-rmi
Richard Hughes 40cd18fa97 Allow using a per-device global percentage completion
It's actually quite hard to build a front-end for fwupd at the moment
as you're never sure when the progress bar is going to zip back to 0%
and start all over again. Some plugins go 0..100% for write, others
go 0..100% for erase, then again for write, then *again* for verify.

By creating a helper object we can easily split up the progress of the
specific task, e.g. write_firmware().

We can encode at the plugin level "the erase takes 50% of the time, the
write takes 40% and the read takes 10%". This means we can have a
progressbar which goes up just once at a consistent speed.
2021-09-13 14:28:15 +01:00
..
fu-plugin-synaptics-rmi.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-self-test.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-synaptics-rmi-common.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-synaptics-rmi-common.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-synaptics-rmi-device.c Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-synaptics-rmi-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-synaptics-rmi-firmware.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-synaptics-rmi-firmware.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-synaptics-rmi-hid-device.c Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-synaptics-rmi-hid-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-synaptics-rmi-ps2-device.c Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-synaptics-rmi-ps2-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-synaptics-rmi-v5-device.c Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-synaptics-rmi-v5-device.h Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-synaptics-rmi-v6-device.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-synaptics-rmi-v6-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-synaptics-rmi-v7-device.c Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-synaptics-rmi-v7-device.h Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
meson.build Allow objects to deserialize to XML 2021-03-15 12:07:30 +00:00
README.md trivial: update markdown for pre-commit style 2021-07-18 14:42:47 -05:00
synaptics-rmi.quirk Simplify the quirk file format 2021-03-03 08:30:34 +00:00

Synaptics RMI4

Introduction

This plugin updates integrated Synaptics RMI4 devices, typically touchpads.

GUID Generation

The HID DeviceInstanceId values are used, e.g. HIDRAW\VEN_06CB&DEV_4875.

These devices also use custom GUID values constructed using the board ID, e.g.

  • SYNAPTICS_RMI\TM3038-002
  • SYNAPTICS_RMI\TM3038

Update Behavior

The device usually presents in HID mode, and the firmware is written to the device by switching to a SERIO mode where the touchpad is nonfunctional. Once complete the device is reset to get out of SERIO mode and to load the new firmware version.

Vendor ID Security

The vendor ID is set from the udev vendor, in this instance set to HIDRAW:0x06CB

Firmware Format

The daemon will decompress the cabinet archive and extract a firmware blob in a proprietary (but docucumented) file format.

This plugin supports the following protocol ID:

  • com.synaptics.rmi

External Interface Access

This plugin requires ioctl access to HIDIOCSFEATURE and HIDIOCGFEATURE.