On Thursday 11 February 2010, Maxim Levitsky wrote: > On Wed, 2010-02-10 at 22:36 +0100, Rafael J. Wysocki wrote: > > On Wednesday 10 February 2010, Maxim Levitsky wrote: > > > On Sun, 2010-02-07 at 03:17 +0100, Rafael J. Wysocki wrote: > > > > On Sunday 07 February 2010, Rafael J. Wysocki wrote: > > > > > Hi, > > > > > > > > > > On Wednesday 03 February 2010, Moore, Robert wrote: > > > > > > Matthew, > > > > > > > > > > > > Thanks for your response to my questions. > > > > > > > > > > > > I've been thinking about these interfaces: > > > > > > > > > > > > acpi_ref_runtime_gpe > > > > > > acpi_ref_wakeup_gpe > > > > > > acpi_unref_runtime_gpe > > > > > > acpi_unref_wakeup_gpe > > > > > > > > > > > > One minor, mostly off-topic question. > > > Currently to enable static wakeup one has to write /proc/acpi/wakeup. > > > > That depends on the device. For PCI devices there's another interface for > > that, which is /sys/devices/.../power/wakeup . > > > > > Do you consider propagating device wakeup settings to acpi, > > > so /proc/acpi/wakeup could finally be deprecated? > > > > We already do that for PCI devices. > > Not in 2.6.33-rc6 > > maxim@maxim-laptop:~$ cat /proc/acpi/wakeup > Device S-state Status Sysfs node > UHC1 S3 disabled pci:0000:00:1d.0 > UHC2 S3 disabled pci:0000:00:1d.1 > UHC3 S3 disabled pci:0000:00:1d.2 > UHC4 S3 disabled pci:0000:00:1a.0 > UHC5 S3 disabled pci:0000:00:1a.1 > EHC1 S3 disabled pci:0000:00:1d.7 > EHC2 S3 disabled pci:0000:00:1a.7 > EXP3 S4 disabled pci:0000:00:1c.2 > EXP5 S4 disabled > EXP6 S4 disabled > AZAL S4 disabled pci:0000:00:1b.0 > MODM S4 disabled > > maxim@maxim-laptop:~$ echo enabled | sudo tee /sys/devices/pci0000 > \:00/0000\:00\:1d.0/power/wakeup > enabled > > cat /sys/devices/pci0000\:00/0000\:00\:1d.0/power/wakeup enabled > > > maxim@maxim-laptop:~$ cat /proc/acpi/wakeup > Device S-state Status Sysfs node > UHC1 S3 disabled pci:0000:00:1d.0 > UHC2 S3 disabled pci:0000:00:1d.1 > UHC3 S3 disabled pci:0000:00:1d.2 > UHC4 S3 disabled pci:0000:00:1a.0 > UHC5 S3 disabled pci:0000:00:1a.1 > EHC1 S3 disabled pci:0000:00:1d.7 > EHC2 S3 disabled pci:0000:00:1a.7 > EXP3 S4 disabled pci:0000:00:1c.2 > EXP5 S4 disabled > EXP6 S4 disabled > AZAL S4 disabled pci:0000:00:1b.0 > MODM S4 disabled > > > Or am I mistaken somehow? You are. Please ignore the "Status" column in /proc/acpi/wakeup, it shows the value of a flag that's not used for PCI devices (unless you set it via /proc/acpi/wakeup). Rafael -- 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