Skip to contentSkip to conversation

2.6.24: (ACPI AC adapter) sending {proc,netlink,kobject}_event from -> resume method?

DISCUSSION Andrey Borzenkov 2 participants 3 messages Oct 30, 2007 – Oct 31, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

Is it valid to send events from within ->resume device method? If not, what is the proper way to notify user space about hardware changes during suspension? Specifically it seems that new sysfs ACPI power supply interface sometimes missing plugged in AC cord during suspend. I suspect that no event is generated for this; I am not sure whether ACPI is required to generate such events at all in this case.

I'll need some time to get reproducible case so I do not categorize this yet as regression.

-andrey

#1 lore raw
Quoted 1 line · Andrey Borzenkov

Is it valid to send events from within ->resume device method?

It is or at least it should be. The GPEs are supposed to be fully functional at this point.

Quoted 9 lines

If not, what is the proper way to notify user space about hardware changes during suspension?
Specifically it seems that new sysfs ACPI power supply interface sometimes missing plugged in AC cord during suspend. I suspect that no event is generated for this; I am not sure whether ACPI is required to generate such events at all in this case.

I'll need some time to get reproducible case so I do not categorize this yet as regression.

Is the "[2.6.24-rc1 regression] AC adapter state does not change after resume" message a follow-up to this one?

Rafael

#2 lore raw
Quoted 13 lines · Rafael J. Wysocki
Quoted 1 line · Andrey Borzenkov

Is it valid to send events from within ->resume device method?

It is or at least it should be. The GPEs are supposed to be fully functional at this point.

Quoted 7 lines

If not, what is the proper way to notify user space about hardware changes during suspension?
Specifically it seems that new sysfs ACPI power supply interface sometimes missing plugged in AC cord during suspend. I suspect that no event is generated for this; I am not sure whether ACPI is required to generate such events at all in this case.

Quoted 6 lines
Quoted 2 lines

I'll need some time to get reproducible case so I do not categorize this yet as regression.

Is the "[2.6.24-rc1 regression] AC adapter state does not change after resume" message a follow-up to this one?

yes