A search of the archives seems to confirm what I suspected, that this is
pretty close to impossible unless you are the one building the device. Are
you? If you are the one building the device, you could easily create a
means for an application to tell the power handler to disable noticing when
the power button is pressed.
Paul T.