[gdm/disable-hybrid-nvidia: 2/5] data: Be a little more specific when matching PCI cards
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/disable-hybrid-nvidia: 2/5] data: Be a little more specific when matching PCI cards
- Date: Wed, 2 Mar 2022 22:03:56 +0000 (UTC)
commit b2081c95f38fb1590339d84488b89965f99e0d07
Author: Ray Strode <rstrode redhat com>
Date: Wed Mar 2 16:31:24 2022 -0500
data: Be a little more specific when matching PCI cards
udev sends a variety of events about devices during boot. Right
now we may be disabling wayland multiple times on Hi1710 ARM
machines, because we just match the device by id, and fail
to look at the event itself.
This commit just adds subsystem and action guards to specify
when the wayland disabling code should run a little more specifically.
data/61-gdm.rules.in | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/data/61-gdm.rules.in b/data/61-gdm.rules.in
index d087746f6..0d3acbbe1 100644
--- a/data/61-gdm.rules.in
+++ b/data/61-gdm.rules.in
@@ -1,6 +1,12 @@
+
+SUBSYSTEM!="pci", GOTO="gdm_pci_device_end"
+ACTION!="add", GOTO="gdm_pci_device_end"
+
# disable Wayland on Hi1710 chipsets
ATTR{vendor}=="0x19e5", ATTR{device}=="0x1711", GOTO="gdm_disable_wayland"
+LABEL="gdm_pci_device_end"
+
# disable Wayland if modesetting is disabled
KERNEL!="card[0-9]*", GOTO="gdm_nomodeset_end"
SUBSYSTEM!="drm", GOTO="gdm_nomodeset_end"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]