https://bugzilla.kernel.org/show_bug.cgi?id=43228





--- Comment #7 from Peter <lekenst...@gmail.com>  2012-05-16 12:07:45 ---
Rafael, the nvidia card can be disabled through the _PS3 method and is done
with `pci_set_power_state(dis_dev, PCI_D3hot);` as you can see on
https://github.com/Bumblebee-Project/bbswitch/blob/d12ce73a0d042fce3738aea800f55f8a23874e8c/bbswitch.c#L240

switcheroo does something similar.

I think I have found the real issue.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=drivers/acpi/scan.c;h=7417267e88fa9763617e0cc7e36fde6154ff4335;hb=1cc0c998fdf2cb665d625fb565a0d6db5c81c639#l906

905         /* Set defaults for D0 and D3 states (always valid) */
906         device->power.states[ACPI_STATE_D0].flags.valid = 1;
907         device->power.states[ACPI_STATE_D0].power = 100;
908         device->power.states[ACPI_STATE_D3].flags.valid = 1;
909         device->power.states[ACPI_STATE_D3].power = 0;

With the change, ACPI_STATE_D3 has become "4":
include/acpi/actypes.h:502:#define ACPI_STATE_D3_HOT               (u8) 3
include/acpi/actypes.h:503:#define ACPI_STATE_D3                   (u8) 4
include/acpi/actypes.h:504:#define ACPI_STATE_D3_COLD             
ACPI_STATE_D3

@rocko, can you revert the patches and try ACPI_STATE_D3_HOT instead of
ACPI_STATE_D3 for those lines?

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to