RE: [PATCH V5] acpi: trigger wakeup key event from power button

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

 



[AMD Official Use Only - General]

> >  #include "internal.h"
> >  #include "sleep.h"
> >
> > @@ -507,6 +511,7 @@ static void acpi_pm_finish(void)
> >         pwr_btn_adev =
> acpi_dev_get_first_match_dev(ACPI_BUTTON_HID_POWERF,
> >                                                     NULL, -1);
> >         if (pwr_btn_adev) {
> > +               acpi_power_button_wakeup(pwr_btn_adev);
>
> Why does this need to be done from here?
>
> Can't the button driver itself to it?
[Ken] Thanks for reminding. It does work in button driver itself too.
This patch just tried to make sure "wakeup" event is reported after pwr_btn_event_pending becomes false by adding codes here.
But in fact, Reporting "wakeup" event in button driver itself also can support same sequence.
I will submit a new patch later.




[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