On Mon, Oct 23, 2017 at 10:42:37AM +0200, Anton Lindqvist wrote: > How about using the monotonic clock instead. I don't use the feature > myself but tested once with the default poll interval. It did suspend > and upon immediate resume, it took approximately another poll interval > (10 minutes) before a second suspend was triggered. >
I seem to have the same issue with your patch as I do with my own though. When I run apmd with "-A -t 10 -z 10", it suspends again after immediate resume. Like Mark suggested, maybe it's better to register another kevent?
