Commit Graph

9657 Commits

Author SHA1 Message Date
Richard Hughes
52f693ae99 intel-usb4: Prefer this plugin over the Thunderbolt plugin
This also means we don't accidentally run the `FuDevice->attach()` and
`FuDevice->cleanup()` methods on the `FuThunderboltDevice` as this enumerates
first after the post-update replug.
2023-02-23 13:04:12 -06:00
Richard Hughes
e0f631d347 intel-usb4: Use ONLY_WAIT_FOR_REPLUG to speed up emulation 2023-02-23 13:04:12 -06:00
Richard Hughes
739523b032 intel-usb4: Allow setting the name from the metadata
We can do so much better than 'USB3.0 Hub'.
2023-02-23 13:04:12 -06:00
Richard Hughes
106de6f3fb Allow using requirements <firmware depth=0> with no parent
In this context a depth of 0 with no siblings means 'an only child' which
in practice means 'the device itself'.
2023-02-23 13:04:12 -06:00
Richard Hughes
0378f9ffdb intel-usb4: Set the remove delay to avoid a console warning 2023-02-23 13:04:12 -06:00
Richard Hughes
619f67276c intel-usb4: Implement FuDevice->set_progress() to avoid a warning 2023-02-23 13:04:12 -06:00
Mario Limonciello
e7a028b402 trivial: snap: install git package as build-deps explicitly
Hopefully this gets us the source_version set in fwupdmgr --version
and also the tag for use to mark as supported build or not.
2023-02-23 13:04:12 -06:00
Mario Limonciello
0d656e9daa snap: restore automatic promotion, but to candidate channel
Snap is switched to confined but we have to worry about timing our
next release with the new snapd which can work with it.

When we issue our next release we do want to get a binary saved at least,
so let's promote to the 'candidate' channel come release time.

This effectively reverts commit 57282a5903.

When the new snapd is out and we're happy enough with the results we
can switch this back to automatic promotion to the stable channel again.
2023-02-23 13:04:12 -06:00
Richard Hughes
cdd30731b6 Only accept application/x-xz compression for the metadata payload
Fixes some of https://github.com/fwupd/fwupd/issues/5553
2023-02-23 13:04:12 -06:00
Mario Limonciello
68539273d2 Add a quirk for COD detection
Insyde has added a bit into the ACPI UEFI table that can be utilized
to detect if they have fixed the COD bug.

This means that COD can be turned on by default for X86 for all vendors
that support it, and if Insyde is encountered whenever that bit is active.
2023-02-23 13:04:12 -06:00
Richard Hughes
da2ff0a6e6 Add a generic ACPI table parser 2023-02-23 13:04:12 -06:00
Richard Hughes
41957a4eaf Do not run the FuProgress self tests by default
These add over 1000ms to the run time, and also do not work well when
virtualized via qemu.

Fixes https://github.com/fwupd/fwupd/issues/5547
2023-02-23 13:04:12 -06:00
Mario Limonciello
fec88180c9 trivial: fix overwriting errors for existence of shim
fixes: #5545
2023-02-23 13:04:12 -06:00
Richard Hughes
7af3f25c5c Use a heuristic to set ignore-system-power for all Lenovo batteries 2023-02-23 13:04:12 -06:00
Frédéric Danis
2b648fecb4 trivial: fix typo 2023-02-23 13:04:12 -06:00
Richard Hughes
003ae2ba3c trivial: Add FuProgress to FuPlugin->backend_device_added()
Now we know fu_synaptics_mst_plugin_device_rescan() takes ~267ms...
2023-02-23 13:04:12 -06:00
Richard Hughes
ece449f0b6 trivial: Speed up coldplug by respecting REQUEST_KIND_ONLY_SUPPORTED 2023-02-23 13:04:12 -06:00
Richard Hughes
52551999fb trivial: Only call fu_engine_md_refresh_device_from_component once per device add
See also e038419240 for more details.
2023-02-23 13:04:12 -06:00
Mario Limonciello
7ac78da20c trivial: be consistent about the vendor string for AMD 2023-02-23 13:04:12 -06:00
Mario Limonciello
aa2c038d9e trivial: add a plugin to show VBIOS version for AMD APUs
The VBIOS version is actually fetched by udev, this plugin sets
up the relationship so it's displayed in the right place.
2023-02-23 13:04:12 -06:00
Mario Limonciello
07620fa49a trivial: read vbios_version on dGPUs
This allows getting a read only view of the VBIOS version advertised
by the dGPU driver.
2023-02-23 13:04:12 -06:00
Mario Limonciello
1d6ef7f690 trivial: read the class sysfs file if present 2023-02-23 13:04:12 -06:00
Mario Limonciello
2f389dbda0 trivial: add a new helper to read a sysfs attr as guint32 2023-02-23 13:04:12 -06:00
Mario Limonciello
a3f3054000 trivial: snap: install shim into the snap as well
Fixes: #5485
2023-02-23 13:04:12 -06:00
Mario Limonciello
0bdb776d4a trivial: snap: install EFI binaries into $ESP/fwupd instead 2023-02-23 13:04:12 -06:00
Mario Limonciello
398c3722d0 trivial: uefi-capsule: drop the fallback to removable path flag
It was used for ubuntu-core with a confined fwupd, but now we will
load our own shim as necessary to the ESP.
2023-02-23 13:04:12 -06:00
Mario Limonciello
2cbe25e8c3 uefi-capsule: Copy in an updated shim if provided
If a shim is in the fwupd libexec/efi directory, it's intended to
be paired with the fwupd binary.
2023-02-23 13:04:12 -06:00
Richard Hughes
a075b90ca5 Offer to enable emulation if disabled 2023-02-23 13:04:12 -06:00
Richard Hughes
13a34145c1 trivial: Fix -Wunused-variable with old GUsb versions 2023-02-23 13:04:12 -06:00
Richard Hughes
6e9d01eeac trivial: Ensure the progressbar gets to exactly 100% when downloading 2023-02-23 13:04:12 -06:00
Richard Hughes
608a08a226 trivial: Only show the non-interactive text status if interesting 2023-02-23 13:04:12 -06:00
Richard Hughes
023a5f373d trivial: Move the uint prompt to FuConsole 2023-02-23 13:04:12 -06:00
Richard Hughes
820bce492a trivial: Fix newline when asking for confirmation 2023-02-23 13:04:12 -06:00
Richard Hughes
dd6633cbca Split out the console handling to a new module
This simplifies a lot of confusion.
2023-02-23 13:04:12 -06:00
Richard Hughes
39f7699401 uefi-capsule: Require at least 80MB free in the ESP
See https://github.com/fwupd/firmware-lenovo/issues/257
2023-02-23 13:04:12 -06:00
Richard Hughes
f10dbf9b5d Allow installing some battery firmware updates when the power is too low
The firmware in this case fixes the battery charging, and as the battery is
*internal* the user isn't able to apply the fix.

Fixes https://github.com/fwupd/firmware-lenovo/issues/315
2023-02-23 13:04:12 -06:00
Richard Hughes
af862c615d Fix -Dbuild=library target 2023-02-23 13:04:12 -06:00
Richard Hughes
5db1809619 trivial: Add emulation data for the HP G5 dock 2023-02-23 13:04:12 -06:00
Richard Hughes
7dfe9792cd trivial: Add device test data for the HP 910 keyboard and mouse 2023-02-23 13:04:12 -06:00
Richard Hughes
c96391ed8d Use a predefined message when emulating
This allow us to guide the user through emulation in gnome-firmware.
2023-02-23 13:04:12 -06:00
Richard Hughes
a34b0490b7 trivial: Correctly fallback from SMBIOS to FDT 2023-02-23 13:04:12 -06:00
Richard Hughes
f98e0e338b Correctly fall back to the compatible vendor when FDT vendor is missing
Fixes https://github.com/fwupd/fwupd/issues/5530
2023-02-23 13:04:12 -06:00
Richard Hughes
bb6f4f0d20 trivial: Never add missing FDT values as a HwID 2023-02-23 13:04:12 -06:00
Richard Hughes
2bf53c3cce trivial: Fix critical warning when using fwupdtool export-hwids 2023-02-23 13:04:12 -06:00
Richard Hughes
c7e79e1e76 ccgx: Make the default image type for FuCcgxDmcDevice to be DMC_COMPOSITE
This means most devices do not need to specify additional quirks.
2023-02-23 13:04:12 -06:00
Richard Hughes
ab2dffac5f Allow downloading files in fwupdtool
The useragent was being set as 'fwupdtool/1.8.11 fwupd/(NULL)' which the LVFS
did not like. As we're using fwupdtool without a daemon proxy just set the
fwupd version manually.

Fixes https://github.com/fwupd/fwupd/issues/5519
2023-02-23 13:04:12 -06:00
Richard Hughes
574b4c1979 Show the 4XX download failure in the error output 2023-02-23 13:04:12 -06:00
Mario Limonciello
3920c9db6f trivial: logitech-hidpp: move the check for CONFIG_HIDRAW into probe
The kernel should have loaded hidraw support by the time that we probe
a device.  This fixes logitech devices not showing up after startup
if they weren't plugged in initially.

Fixes: #5525
2023-02-23 13:04:12 -06:00
Richard Hughes
d011a7d6ba Set the device percentage and status for the duration
Fixes part of https://github.com/fwupd/fwupd/issues/5522
2023-02-23 13:04:12 -06:00
Richard Hughes
a5a98b00bd trivial: Fix the gtk-doc header to reflect reality 2023-02-23 13:04:12 -06:00