Power Management / Other / Run custom script

Hello,
I am trying to run custom script if no activity was detected for 5 min.

I set 10 sec for testing.
Waited a while but the script never run. The mouse was turned off just to be sure there is no input.
How do I check what activity was detected that prevents the 10 sec timer to run out.