how can i detect that the screensaver stops running?

thanks.