I have a thinkpad T14 laptop with Debian 11. I want to wakeup system when AC pluged/unpluged, but there isn't any setting option i can find. So is it possible to modify ACPI DSDT to fake a wakeup event? I can override or insert a method based on ACPI DSDT, but i have no idea how to implement this feature, anyone can help me?
- I found that the method _SB.PEPD._DSM executes both power key wakeup and keyboard wakeup. I override AC attach/detach method base ACPI DSDT to invoke _SB.PEPD._DSM method, but it can not wakeup system.
- I found there is not a _PRW method in AC Device. I insert a _PRW method for AC Device, but it can also not wakeup system.