diff -Nru fwupd-0.7.0/debian/changelog fwupd-0.7.0/debian/changelog --- fwupd-0.7.0/debian/changelog 2016-04-03 19:07:41.000000000 +0000 +++ fwupd-0.7.0/debian/changelog 2016-04-14 17:24:00.000000000 +0000 @@ -1,3 +1,9 @@ +fwupd (0.7.0-0ubuntu4) xenial; urgency=medium + + * Backport UEFI naming to DMI Product Name from master + + -- Mario Limonciello Thu, 14 Apr 2016 12:17:39 -0500 + fwupd (0.7.0-0ubuntu3) xenial; urgency=medium * Backport commits from upstream to fix problems on big endian. diff -Nru fwupd-0.7.0/debian/patches/0001-Set-the-system-s-DMI-product-name-as-the-DisplayName.patch fwupd-0.7.0/debian/patches/0001-Set-the-system-s-DMI-product-name-as-the-DisplayName.patch --- fwupd-0.7.0/debian/patches/0001-Set-the-system-s-DMI-product-name-as-the-DisplayName.patch 1970-01-01 00:00:00.000000000 +0000 +++ fwupd-0.7.0/debian/patches/0001-Set-the-system-s-DMI-product-name-as-the-DisplayName.patch 2016-04-14 17:24:00.000000000 +0000 @@ -0,0 +1,51 @@ +From 68a462c9b61bde60a772d70dbac5427aaee7a4f4 Mon Sep 17 00:00:00 2001 +From: Mario Limonciello +Date: Thu, 14 Apr 2016 12:02:31 -0500 +Subject: [PATCH] Set the system's DMI product name as the DisplayName for UEFI + +It might not be technically correct if multiple ESRT entries +are supported on the system, but these don't currently exist +and this is an improvement over it being set to null and +showing messages like: +"(null) has firmware updates" +--- + src/fu-provider-uefi.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/src/fu-provider-uefi.c b/src/fu-provider-uefi.c +index 2d69e3e..2087207 100644 +--- a/src/fu-provider-uefi.c ++++ b/src/fu-provider-uefi.c +@@ -300,6 +300,7 @@ static gboolean + fu_provider_uefi_coldplug (FuProvider *provider, GError **error) + { + AsVersionParseFlag parse_flags; ++ g_autofree gchar *display_name = NULL; + fwup_resource *re; + gint supported; + g_autofree gchar *guid = NULL; +@@ -341,6 +342,12 @@ fu_provider_uefi_coldplug (FuProvider *provider, GError **error) + return FALSE; + } + ++ /* set Display Name to the system for all capsules */ ++ g_file_get_contents ("/sys/class/dmi/id/product_name", ++ &display_name, NULL, NULL); ++ if (display_name != NULL) ++ g_strchomp (display_name); ++ + /* add each device */ + guid = g_strdup ("00000000-0000-0000-0000-000000000000"); + parse_flags = fu_provider_uefi_get_version_format (); +@@ -368,6 +375,8 @@ fu_provider_uefi_coldplug (FuProvider *provider, GError **error) + fu_device_set_id (dev, id); + fu_device_set_guid (dev, guid); + fu_device_set_version (dev, version); ++ if (display_name != NULL) ++ fu_device_set_name(dev, display_name); + fwup_get_lowest_supported_fw_version (re, &version_raw); + if (version_raw != 0) { + version_lowest = as_utils_version_from_uint32 (version_raw, +-- +2.7.4 + diff -Nru fwupd-0.7.0/debian/patches/series fwupd-0.7.0/debian/patches/series --- fwupd-0.7.0/debian/patches/series 2016-04-03 19:07:41.000000000 +0000 +++ fwupd-0.7.0/debian/patches/series 2016-04-14 17:24:00.000000000 +0000 @@ -1,2 +1,3 @@ polkit_rule_fixes.patch endian_fix.patch +0001-Set-the-system-s-DMI-product-name-as-the-DisplayName.patch