Re: Automatic S1 sleep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/11/2010 2:21 PM, Matthew Garrett wrote:
> The exact meaning of PM_STANDBY_SUSPEND isn't defined. The sanest 
> approach might be to add a callback in the platform_suspend_ops 
> structure, pass the sleep state to that and then use that to decide 
> whether or not devices need to sleep.

Sounds reasonable.  Maybe I'll take a crack at writing a patch to do that.

> Putting a video card into D1 is either going to turn off the output or 
> do nothing, so I don't think that's terribly compatible with what you 
> want here. But to answer your question, the PCI core will decide what 
> state to put devices in based on the sleep type provided.

Actually after looking at some ATI specs it seems that there are several
configuration options of exactly what should be powered down in D1 and
D2 but the DAC output did not seem to be one of them.  It seems to be
intended to do things like stop the GPU clocks but otherwise leave the
display on.  I assumed that the card was in D1 last night while the
system was in S1, and the display remained visible.  If D1 does stop the
DVI output then it must not have been set to D1.

How does the PCI core get called when changing state?  I would think it
would be when suspend_devices_and_enter() calls
dpm_suspend_start(PMESG_SUSPEND) but that does not differentiate between
S1 and S3, so I would think that currently it would result in placing
the device in D3, and that if I remove the PMESG_SUSPEND for
PM_SUSPEND_STANDBY that it would result in leaving devices in D0.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux