try again!

develop
Cole Deck 4 years ago
parent fd987219fc
commit e0313a70c3

@ -276,7 +276,7 @@ static void bbswitch_off(void) {
ad->power.state = ACPI_STATE_D0; ad->power.state = ACPI_STATE_D0;
} }
} while (0); } while (0);
pci_set_power_state(dis_dev, PCI_D3hot); pci_set_power_state(dis_dev, PCI_D3cold);
if (bbswitch_acpi_off()) if (bbswitch_acpi_off())
pr_warn("The discrete card could not be disabled by a _DSM call\n"); pr_warn("The discrete card could not be disabled by a _DSM call\n");
@ -436,7 +436,7 @@ static int __init bbswitch_init(void) {
dev_name(&pdev->dev), (char *)buf.pointer); dev_name(&pdev->dev), (char *)buf.pointer);
} else { } else {
dis_dev = pdev; dis_dev = pdev;
pci_d3cold_disable(pdev); pci_d3cold_enable(pdev);
dis_handle = handle; dis_handle = handle;
pr_info("Found discrete VGA device %s: %s\n", pr_info("Found discrete VGA device %s: %s\n",
dev_name(&pdev->dev), (char *)buf.pointer); dev_name(&pdev->dev), (char *)buf.pointer);

Loading…
Cancel
Save