Commit Graph

8419 Commits

Author SHA1 Message Date
Mario Limonciello
0a106c60b3 trivial: only install fwupdagent man page if compat_cli set 2023-02-21 11:28:24 -06:00
Mario Limonciello
a194d5317c 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-21 11:28:24 -06:00
Richard Hughes
b24d14ebde 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-21 17:27:35 +00:00
Richard Hughes
322cd2e03b Indicate HSI attributes that will only be returned for specific CPU vendors 2023-02-21 16:29:48 +00:00
Richard Hughes
5a4229fce6 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-21 09:13:28 -06:00
Richard Hughes
7b5b56a1af Allow filtering the output of get-devices by the device ID
This means you can print the one thing you care about.
2023-02-21 15:05:01 +00:00
Richard Hughes
682cf408fb trivial: Add device tests for the CalDigit TS4 USB-4 device 2023-02-21 13:47:12 +00:00
Richard Hughes
cd9c81c106 trivial: Add the closure user_data to the introspection 2023-02-21 08:15:47 +00:00
Richard Hughes
0e1422939e 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-20 15:52:57 +00:00
Richard Hughes
2962507ea2 trivial: Use a better message when a device does not declare the payload
Fixes https://github.com/fwupd/fwupd/issues/5504
2023-02-20 15:52:57 +00:00
Richard Hughes
f3f2519d93 trivial: Add a compile version for libxmlb 2023-02-20 15:23:38 +00:00
Richard Hughes
f358da7bda 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-20 15:23:16 +00:00
Richard Hughes
4bd7b8a8f6 Do not update the MOTD during a composite update 2023-02-20 14:29:48 +00:00
Richard Hughes
d74b54a422 trivial: Add a device test for the CalDigit Element Hub 2023-02-20 14:29:48 +00:00
Richard Hughes
1b7d8b1a6f 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-20 14:29:48 +00:00
Richard Hughes
148cfab0e4 intel-usb4: Use ONLY_WAIT_FOR_REPLUG to speed up emulation 2023-02-20 14:29:48 +00:00
Richard Hughes
b949fb1eea intel-usb4: Allow setting the name from the metadata
We can do so much better than 'USB3.0 Hub'.
2023-02-20 14:29:48 +00:00
Richard Hughes
c8d2e53942 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-20 14:29:48 +00:00
Richard Hughes
88bd9fd8c3 intel-usb4: Set the remove delay to avoid a console warning 2023-02-20 14:29:48 +00:00
Richard Hughes
0dcb3aadfe intel-usb4: Implement FuDevice->set_progress() to avoid a warning 2023-02-20 14:29:48 +00:00
Mario Limonciello
e69ffa1b71 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-20 06:10:37 -06:00
Mario Limonciello
074b40e6ee 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-20 06:10:37 -06:00
Richard Hughes
df8a6a7eaf Only accept application/x-xz compression for the metadata payload
Fixes some of https://github.com/fwupd/fwupd/issues/5553
2023-02-19 21:56:52 +00:00
Mario Limonciello
2b96b9e933 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-19 08:38:52 +00:00
Richard Hughes
9be0c6dea6 Add a generic ACPI table parser 2023-02-18 20:08:34 +00:00
Richard Hughes
12cfdd2901 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-18 16:38:45 +00:00
Mario Limonciello
9407c5680f trivial: fix overwriting errors for existence of shim
fixes: #5545
2023-02-17 16:44:09 +00:00
Richard Hughes
02e665b847 Use a heuristic to set ignore-system-power for all Lenovo batteries 2023-02-17 14:00:43 +00:00
Frédéric Danis
30ed9ced21 trivial: fix typo 2023-02-17 12:57:46 +00:00
Richard Hughes
a5dd40690b trivial: Add FuProgress to FuPlugin->backend_device_added()
Now we know fu_synaptics_mst_plugin_device_rescan() takes ~267ms...
2023-02-17 06:52:49 +00:00
Richard Hughes
9bfddede49 trivial: Speed up coldplug by respecting REQUEST_KIND_ONLY_SUPPORTED 2023-02-17 06:52:49 +00:00
Richard Hughes
a04c64a144 trivial: Only call fu_engine_md_refresh_device_from_component once per device add
See also e038419240 for more details.
2023-02-17 06:52:49 +00:00
Mario Limonciello
331e59eb04 trivial: be consistent about the vendor string for AMD 2023-02-16 14:40:51 -06:00
Mario Limonciello
c6731e56f2 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-16 14:40:51 -06:00
Mario Limonciello
088359a381 trivial: read vbios_version on dGPUs
This allows getting a read only view of the VBIOS version advertised
by the dGPU driver.
2023-02-16 14:40:51 -06:00
Mario Limonciello
53faf281c1 trivial: read the class sysfs file if present 2023-02-16 14:40:51 -06:00
Mario Limonciello
9635851d4a trivial: add a new helper to read a sysfs attr as guint32 2023-02-16 14:40:51 -06:00
Mario Limonciello
fc25813bae trivial: snap: install shim into the snap as well
Fixes: #5485
2023-02-16 11:32:36 -06:00
Mario Limonciello
4a2dc41b7e trivial: snap: install EFI binaries into $ESP/fwupd instead 2023-02-16 11:32:36 -06:00
Mario Limonciello
2ddda260a6 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-16 11:32:36 -06:00
Mario Limonciello
5266d62611 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-16 11:32:36 -06:00
Richard Hughes
249bbf540c Offer to enable emulation if disabled 2023-02-16 13:53:11 +00:00
Richard Hughes
9ec39636e2 trivial: Fix -Wunused-variable with old GUsb versions 2023-02-15 20:14:12 +00:00
Richard Hughes
11cd52f58d trivial: Ensure the progressbar gets to exactly 100% when downloading 2023-02-15 17:16:28 +00:00
Richard Hughes
205ffb5eac trivial: Only show the non-interactive text status if interesting 2023-02-15 17:16:28 +00:00
Richard Hughes
7e0ba9ff97 trivial: Move the uint prompt to FuConsole 2023-02-15 17:16:28 +00:00
Richard Hughes
73d1b47e18 trivial: Fix newline when asking for confirmation 2023-02-15 17:16:28 +00:00
Richard Hughes
caaeb1ea16 Split out the console handling to a new module
This simplifies a lot of confusion.
2023-02-15 16:16:30 +00:00
Richard Hughes
b25e0f3a28 uefi-capsule: Require at least 80MB free in the ESP
See https://github.com/fwupd/firmware-lenovo/issues/257
2023-02-15 16:12:26 +00:00
Richard Hughes
336494190d 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-15 16:08:53 +00:00