Commit Graph

9671 Commits

Author SHA1 Message Date
Mario Limonciello
c31a6b5583 trivial: only install fwupdagent man page if compat_cli set 2023-02-23 13:04:12 -06:00
Mario Limonciello
9152f9e94c trivial: enable compat_cli for void
We want to make sure we have at least one job still running it so
we don't regress it.
2023-02-23 13:04:12 -06:00
Richard Hughes
5b7f9aa324 Be more nuanced when considering if the system is on AC power
This should be no beahviour change, but it allows the powerd and upower plugins
to provide more information in the future.

Fixes https://github.com/fwupd/fwupd/issues/3386
2023-02-23 13:04:12 -06:00
Richard Hughes
100e3e425e Indicate HSI attributes that will only be returned for specific CPU vendors 2023-02-23 13:04:12 -06:00
Richard Hughes
d9b8a097c2 Allow enabling low-level debugging of fwupdx64.efi from uefi_capsule.conf
Short-to-medium-term we want to stop installing fwupdate and this was the last
useful part we never migrated.
2023-02-23 13:04:12 -06:00
Richard Hughes
15a1e61f84 Allow filtering the output of get-devices by the device ID
This means you can print the one thing you care about.
2023-02-23 13:04:12 -06:00
Richard Hughes
b20cd1afe1 trivial: Add device tests for the CalDigit TS4 USB-4 device 2023-02-23 13:04:12 -06:00
Richard Hughes
48c707485e trivial: Add the closure user_data to the introspection 2023-02-23 13:04:12 -06:00
Richard Hughes
6df2e35458 dfu: Allow DFU devices to declare the payload in the XML metadata
The DFU protocol can be used to transfer both signed and unsigned content, and
it's up to the device to do the right thing.
2023-02-23 13:04:12 -06:00
Richard Hughes
ed9bec4022 trivial: Use a better message when a device does not declare the payload
Fixes https://github.com/fwupd/fwupd/issues/5504
2023-02-23 13:04:12 -06:00
Richard Hughes
c78eac668a trivial: Add a compile version for libxmlb 2023-02-23 13:04:12 -06:00
Richard Hughes
cdbd79539a redfish: Only offset the IPMI user_id when using XCC
Both iDRAC and SuperMicro do the sensible thing.

Fixes https://github.com/fwupd/fwupd/issues/5129
2023-02-23 13:04:12 -06:00
Richard Hughes
3aa7a703a8 Do not update the MOTD during a composite update 2023-02-23 13:04:12 -06:00
Richard Hughes
73ac9d2e0b trivial: Add a device test for the CalDigit Element Hub 2023-02-23 13:04:12 -06:00
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