Perform action for long press power button

Hello Sir,

I want to set proper action for press and Hold power button about 3 seconds and above

Note:Now I am able to successfully perform the action for single second press but I want to perform action only when user tapHold power button about 3 seconds…

I am using “acpid” package to perform the action.(now I am getting power button events under /etc/acpi/events/{anything}) and I am running my script under (/etc/acpi/{filename})

is their any tapHold functions for power button in acpid? , How the acpid event receive RISING and FALLING EDGE of a power button.

please Help me out to resolve this issue.