Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Warning: Multiple clicks bad' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Warning: Multiple clicks bad
Authored by: SeanAhern on Oct 19, '06 10:18:18PM

Woe be ye who clicks on this widget more than once!

Sometimes, you know how Dashboard widgets take a moment or two to swap into RAM? Well, I clicked the "Deep Sleep" widget a few times, assuming that it was "coming up". Well, it registered all of those clicks, and did a deep sleep for each one.

So my Mac went to deep sleep. Then I woke it up. It then immediately went into deep sleep again. And again. And again. Once for each click I did.

But that's not all! Remember, the way the "Deep Sleep" widget works is to check what the "normal" sleep mode is, remember that, set "deep sleep" mode, sleep, then restore the remembered "normal" mode once the Mac wakes back up again. Well, since the widget was being invoked several times in rapid succession, it didn't have time to restore the default setting of 3 (safe sleep) and the subsequent invocations remembered 1 (deep sleep). So I got stuck in "deep sleep" mode every time I did a normal sleep.

A quick trip to the command line and pmset was able to get me back happy again.

But yeeesh! That'll teach me to be impatient with my widgets!



[ Reply to This | # ]
Warning: Multiple clicks bad
Authored by: Cochonou on Nov 01, '06 06:27:23AM
Well, since the widget was being invoked several times in rapid succession, it didn't have time to restore the default setting of 3 (safe sleep) and the subsequent invocations remembered 1 (deep sleep). So I got stuck in "deep sleep" mode every time I did a normal sleep.
This is something I had not noticed and have overlooked so far. I will think about some kind of protection against this for the next revision.

[ Reply to This | # ]