atkbdc - Change default to still attach PS2 controller even if FADT says don't
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 16 Dec 2018 21:26:06 +0000 (13:26 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 16 Dec 2018 21:26:06 +0000 (13:26 -0800)
* Temporary workaround, disable commit 131acb0380e93664 by default.
  It can be enabled again with a tunable in /boot/loader.conf:

  hw.acpi.fadt_8042_nolegacy=1

* Should work around several bug reports of the keyboard not working
  in 5.4.

sys/platform/pc64/acpica/acpi_fadt.c

index ca60bc1..bbb15b0 100644 (file)
@@ -74,8 +74,14 @@ static const struct acpi_sci_mode acpi_sci_modes[] = {
        { INTR_TRIGGER_CONFORM, INTR_POLARITY_CONFORM }
 };
 
-/* Defaulting to 1, to stop atkbdc from being configured early, via cninit() */
-int acpi_fadt_8042_nolegacy = 1;
+/*
+ * Set to 1 to stop atkbdc from being configured early, via cninit().
+ *
+ * Currently set to 0 because this is causing problems for several
+ * people.  Can be set to 1 with a tunable.
+ */
+int acpi_fadt_8042_nolegacy = 0;
+TUNABLE_INT("hw.acpi.fadt_8042_nolegacy", &acpi_fadt_8042_nolegacy);
 
 static void
 fadt_probe(void)