Re: [PATCH v2] ACPI / battery: trigger rechecking of AC adapter state when battery state changes.

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

 



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




[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