From ef4f6a2e55784fec4498d364b6181c3ca36ab7b0 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 17 Aug 2012 15:31:57 -0500 Subject: [PATCH] rfkill: detect "acpi" subsystem devices as platform devices (bgo #680632) Some rfkill drivers (sony-laptop, ideapad-laptop, classmate-laptop, etc) register their rfkill drivers under the "acpi" subsystem instead of the platform subsystem, but the semantics are the same. --- src/nm-udev-manager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nm-udev-manager.c b/src/nm-udev-manager.c index 6bd4d66ec6..792e53bfd1 100644 --- a/src/nm-udev-manager.c +++ b/src/nm-udev-manager.c @@ -131,7 +131,10 @@ killswitch_new (GUdevDevice *device, RfKillType rtype) driver = "(unknown)"; ks->driver = g_strdup (driver); - if (g_strcmp0 (subsys, "platform") == 0 || g_strcmp0 (parent_subsys, "platform") == 0) + if ( g_strcmp0 (subsys, "platform") == 0 + || g_strcmp0 (parent_subsys, "platform") == 0 + || g_strcmp0 (subsys, "acpi") == 0 + || g_strcmp0 (parent_subsys, "acpi") == 0) ks->platform = TRUE; if (grandparent)