Bug 481943

Summary: Discover does not show available firmware updates when the system is not on AC power
Product: [Applications] Discover Reporter: Neal Gompa <ngompa>
Component: fwupd BackendAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REOPENED ---    
Severity: normal CC: aleixpol, nate, nicolas.fella, sharma.abhijeet2096
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2465
https://github.com/fwupd/fwupd/issues/6853
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Neal Gompa 2024-02-28 17:01:06 UTC
SUMMARY
When the system is not plugged in and Discover is run to check for updates, it does not identify any firmware updates, even if there are any. This leads the user to believe there are no firmware updates to plug in and apply, which is a common scenario with laptops.

STEPS TO REPRODUCE
1. Unplug a laptop and open discover
2. Check for updates

OBSERVED RESULT
No firmware updates are presented.

EXPECTED RESULT
A list of available firmware updates are presented with a warning they cannot be applied unless on AC power.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 40 (KDE Plasma)
(available in About System)
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
This is possible to identify by seeing the difference between "fwupdmgr get-updates" and "fwupdmgr update" as well.
Comment 1 Aleix Pol 2024-03-08 19:13:48 UTC
https://github.com/fwupd/fwupd/pull/6856

Seems to be addressed upstream, can you confirm Neal?
Comment 2 Neal Gompa 2024-03-10 00:53:11 UTC
It is not fixed upstream. I was told to file this bug so that Discover changes its use of the API to do the right thing.