2014-03-07 10:43 GMT+07:00 Lan Tianyu <tianyu.lan@xxxxxxxxx>: > Sorry for later response due to be busy on other things. > > Hi Alexander: > > From the DSDT table, _Q08 is in change of notifying AC driver. > So you can check "/sys/firmware/acpi/interrupts/gpe08". Whether the count > increases or not during plugging or unplugging AC. > > According the description, the _Q08 wasn't triggered. cat /sys/firmware/acpi/interrupts/gpe08 0 invalid Always. > I think you can use acpi_notifier_call_chain() here and register acpi > notifier in the AC driver. When get the Battery change event, call > acpi_ac_get_state(ac). From my view, this is more general than traverse all > power supply device and call AC's get_property() callback in battery driver. Thanks for this suggestion. This looks like better solution for me too. I'll prepare v3 soon. > > -- > Best Regards > Tianyu Lan -- 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