Mario Limonciello
91353d48bd
Stop showing the current release during updates in fwupdmgr
...
With handling composite CAB files this information isn't relayed to the
frontend on which release is being handled, but was rather guessed.
Avoid showing invalid information in this instance.
2018-10-10 11:24:27 -05:00
Mario Limonciello
dc48bec157
uefi: Move the TPM unlocking functionality from the Dell to UEFI plugin
...
This allows devices that have been registered to be correctly unlocked.
2018-10-10 14:30:49 +01:00
Mario Limonciello
4ba77a4fb9
Run the Dell plugin initialization after the UEFI plugin
...
This corrects the data->esp_path not being initialized due to UEFI
plugin's coldplug routine not having run yet.
2018-10-10 14:30:49 +01:00
Mario Limonciello
56a4d82203
trivial: Add ESP path into fu_uefi_device_to_string()
2018-10-10 14:30:49 +01:00
Richard Hughes
affc4ffde4
thunderbolt-power: Fix possible linker problem
...
The linker does not know which public symbol to call if a plugin calls it's own
symbol. Without this change one plugin could call into another plugin with the
wrong GsPluginData set -- which will probably explode in a ball of flames.
2018-10-10 14:29:20 +01:00
Richard Hughes
e3a2e95628
trivial: Sync the flatpak manifest with the one from flathub
2018-10-05 07:59:59 +01:00
Richard Hughes
9a9cb9e179
trivial: Be more explicit when building the snap packages
2018-10-04 18:38:12 +01:00
Richard Hughes
3c186ce3cf
trivial: Include libuuid specifically on Centos
...
This is seemingly not in the default buildroot.
2018-10-04 18:38:12 +01:00
Richard Hughes
19c56436b1
trivial: Be more explicit when building on Centos
...
Newer versions of appstream-glib do not depend on libgcab and so it has to be
installed manually to ensure the CI still passes.
2018-10-04 18:38:12 +01:00
Richard Hughes
70df6d1144
trivial: Be more explicit when building the Arch package
2018-10-04 18:38:12 +01:00
Mario Limonciello
55ab100334
trivial: nvme: Allow quirking the NVME write block size
2018-10-02 14:30:02 -05:00
Richard Hughes
12c849966d
Allow firmware files to depend on versions from other devices
...
At the moment firmware can declare that it has certain requirements, for
instance the existing firmware version, the bootloader version, or the
vendor ID of the device.
In some situations we actually want to check the firmware version of a
*different* device. Good examples here would be only allowing an EC upgrade if
a specific BIOS update has already been done, or only allowing a wireless
reciever to be updated if the attached wireless devices have been updated first.
To use this, you can do something like:
<requires>
<id compare="ge" version="1.1.3">org.freedesktop.fwupd</id>
<firmware compare="ge" version="0.9.0">guid-of-other-device</firmware>
</requires>
2018-10-02 06:53:52 -05:00
Mario Limonciello
769d768be9
trivial: fu-engine: downgrade couldn't find new device message to debug
...
I've found that this message comes up sometimes due to reprobing order
and it shouldn't be considered important enough to generate a warning.
2018-10-02 11:52:28 +01:00
Richard Hughes
58bf3674e9
trivial: Show a critical warning rather than crashing
...
Found when constructing devices manually in the self tests, it's not possible
to hit this during normal runtime.
2018-10-02 11:03:12 +01:00
Mario Limonciello
70ae1d59ed
fu-debug: Redirect all debugging output to stderr instead of stdout
...
This makes it easier for tools to still remain functional but capture
relevant debugging logs by calling `fwupdtool` with `--verbose 2>log`
2018-09-29 07:55:25 +01:00
Mario Limonciello
bae478f555
trivial: synapticsmst: clarify some error flows
...
As seen in the previous commit if ESM update failed some error prefixes
are not useful, clarify them.
2018-09-28 08:39:44 -05:00
Mario Limonciello
7cb2c1092c
synapticsmst: Adjust panamera ESM update routine for some reported issues
...
Reported failure:
"failed to flash firmware: ESM update failed: ESM update failed:
failed to write data: failed to write"
1) Add a sleep after erasing (matches other SPI write calls)
2) Erase & sleep between retries
2018-09-28 08:39:44 -05:00
Mario Limonciello
680d9dc228
trivial: synapticsmst: downgrade remote control retry statement to debug
...
This happens often enough and it does recover each time.
2018-09-28 08:39:44 -05:00
Mario Limonciello
559c52ff71
trivial: Update FU_DEVICE_REMOVE_DELAY_USER_REPLUG from 20s to 40s ( Fixes : #758 )
...
Sometimes it's difficult to get 8bitdo controllers to turn off, so
give users more time to do it.
2018-09-27 09:22:24 -05:00
Mario Limonciello
9cecbe1d1b
fu-engine: Optionally wait for replug before updating a device
...
Plugins may have marked a device as needing to replug duing a
composite device preparation due to the order devices were plugged
in.
2018-09-27 09:18:31 -05:00
Mario Limonciello
8a45acb806
fu-device-list: Use delayed device removal when removing the tree
...
If a parent device being removed causes child devices to be removed,
take into account all of the delays for children.
2018-09-27 09:18:31 -05:00
Mario Limonciello
845896c954
thunderbolt: Use replugging from the daemon ( Closes : #730 )
2018-09-26 07:56:12 -05:00
Mario Limonciello
ccd5fd0088
trivial: device-list: Correct a minor logic error
...
If one of the child devices has gone away, this potentially will
cause the daemon to segfault while accessing it.
2018-09-26 07:56:12 -05:00
Mario Limonciello
7c10696690
Add support for devices to show an estimated flash time ( Closes : #765 )
...
This time is provided to frontends to be able to show estimates
before a user would agree to flash the device.
2018-09-26 11:35:59 +01:00
Marek Cernocky
c759834a05
Marked some CL options for translation
2018-09-24 16:18:48 +01:00
Mario Limonciello
6ed307c5fb
trivial: uefi: Only set EFI variables on real systems
...
Avoids copying from a NULL pointer.
Caught via clang static analysis
2018-09-21 07:35:08 +01:00
Mario Limonciello
981ee65554
trivial: wacom: correct some errors caught by static analysis
2018-09-21 07:35:08 +01:00
Mario Limonciello
e58ad0bd77
trivial: dell: Assert true in self tests
2018-09-21 07:35:08 +01:00
Mario Limonciello
6f0a3b4d27
trivial: amt: correct a situation that might overwrite error
2018-09-21 07:35:08 +01:00
Mario Limonciello
2d9107d4dc
trivial: amt: correct a potential lack of error
2018-09-21 07:35:08 +01:00
Mario Limonciello
7cc7b04d67
ci: Run clang static analysis for Ubuntu build rather than just clang compiler
2018-09-21 07:35:08 +01:00
Mario Limonciello
f7d8250e9d
trivial: standalone: Check argument make sense with command
2018-09-20 11:56:42 -05:00
Mario Limonciello
e25675de04
trivial: standalone: If missing flatpak dependencies, download them
...
Most distros don't enable flathub by default, so enable it when
running the tool if the deps are missing and pull the Gnome SDK from
there.
2018-09-20 11:56:42 -05:00
Richard Hughes
34fcc02052
trivial: Fix a tiny memory leak on startup
...
The property value is a floating reference, and so if we're not using it as a
parameter to g_variant_new() we need to unref it manually.
2018-09-19 18:17:38 +01:00
Richard Hughes
19ba35c844
nvme: Initialize the buffer before reading the contents
...
Fixes a complaint from valgrind.
2018-09-19 18:17:38 +01:00
Mario Limonciello
e6c324229a
trivial: thunderbolt: don't reuse GError error_local in update function
...
It should only be used for the one (optionally) non-critical failure
in valiation failing.
2018-09-18 15:49:59 -05:00
Richard Hughes
e671c05771
trivial: Do not use AsProfile
...
The profiling data is of limited use, and better data can be obtained using
kcachegrind and massif. Additionally, the profile samples were the cause of the
small RSS growth over time, when in reality the data would only be shown when
the verbose switch is used at daemon startup.
2018-09-18 06:23:25 -05:00
Mario Limonciello
befe196777
trivial: nvme: Remove quirk for Hynix SSD
...
I've seen a firmware image that the version was "80001C0T" for this
disk and as such this is not a "quad" version number.
2018-09-18 10:40:48 +01:00
Mario Limonciello
2d12a24234
contrib: Add a standalone installer creation script
...
This is meant to produce standalone installer binaries that can operate
on machines without current tools or internet access.
It works by wrapping around the container technologies snap and flatpak
and putting all the pieces together.
2018-09-14 12:34:09 -05:00
Mario Limonciello
2d4b7a5826
trivial: fu-util/fu-tool: Move --version into a common shared function
...
This is mostly for usage with the flatpak so it's easy to tell what
version of the flatpak is installed.
2018-09-14 18:22:38 +01:00
Richard Hughes
35a0a456e2
rts54hid: Add support for Realtek USB devices using vendor HID commands
2018-09-14 12:40:20 +01:00
Mario Limonciello
fc139357e1
fu-engine: Don't show devices pending a reboot in GetUpgrades
...
Fixes part of http://gitlab.gnome.org/GNOME/gnome-software/issues/341
2018-09-13 10:37:29 -05:00
Richard Hughes
37d0943844
Add FuMutex helper to make various parts of the daemon thread-safe
2018-09-12 16:10:38 +01:00
Richard Hughes
5a9a6bd479
trivial: Return reference counted devices from FuDeviceList
2018-09-12 16:10:38 +01:00
Richard Hughes
161eee23ca
rts54hub: Add support for Realtek USB devices using vendor HUB commands
2018-09-12 14:18:55 +01:00
Richard Hughes
ccd3b2a61f
uefi: Check the amount of free space on the ESP
...
Fixes https://github.com/hughsie/fwupd/issues/670
2018-09-12 13:56:02 +01:00
Mario Limonciello
fde4773294
fu-tool: Import debugging options from fu-debug like fu-main
2018-09-11 18:59:05 +01:00
Mario Limonciello
e6d2cf4dda
trivial: Skip debugging messages for skipped releases
...
These are less interesting than which releases actually get added.
2018-09-11 18:59:05 +01:00
Mario Limonciello
20447a00ae
dell: Stop showing errors when no dock plugged in
...
Since it matches the Realtek dongle, shouldn't show this error:
failed to add USB device 0bda:8153: no dock detected
All the time when that dongle is plugged in
2018-09-11 18:59:05 +01:00
Richard Hughes
36a2bd06ec
trivial: Allow specifying --daemon-verbose to set the log handler
2018-09-11 18:59:05 +01:00