Commit Graph

9646 Commits

Author SHA1 Message Date
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
Richard Hughes
7afc48da35 Include python3-uswid in the container so fwupd-efi can include the uSWID section 2023-02-23 13:04:12 -06:00
Richard Hughes
67f7db8f6d trivial: Add a clang-tidy template 2023-02-23 13:04:12 -06:00
Richard Hughes
2077861dea trivial: Fix warning: function has a definition with different parameter names 2023-02-23 13:04:12 -06:00
Richard Hughes
21e08ff483 trivial: Fix warning: return after continue 2023-02-23 13:04:12 -06:00
Richard Hughes
9defbce2c7 trivial: Fix warning: parameter is const-qualified in the function declaration 2023-02-23 13:04:12 -06:00
Richard Hughes
648e0c6858 trivial: Fix warning: declared with a const-qualified typedef 2023-02-23 13:04:12 -06:00
Richard Hughes
be04e8e034 trivial: Fix warning: pointer parameter 'buf' can be pointer to const 2023-02-23 13:04:11 -06:00
Richard Hughes
65b158a7cc trivial: Fix warning: repeated branch in conditional chain 2023-02-23 13:04:11 -06:00
Richard Hughes
caa6568262 trivial: Fix warning: do not use 'else' after 'return' 2023-02-23 13:04:11 -06:00
Richard Hughes
953b74a26f trivial: Fix warning: redundant return statement at the end of a function with a void return type 2023-02-23 13:04:11 -06:00
Richard Hughes
72c8574f04 trivial: Remove an unused source file 2023-02-23 13:04:11 -06:00