Hi Michael, seems our messages (and patches) crossed paths. From a quick look, my patch looks more sensible, since it check gnome-settings-daemon, not UPower (AFAICS the latter only executes the suspend, not triggers it?). Anyway, let me know what you think.
Gr. Matthijs
signature.asc
Description: Digital signature