Trouble with PowerManager.goToSleep()
<p>I'm trying to put a device into sleep mode for a certain amount of time, say x, by calling..</p>

<pre><code>powerManager.goToSleep(xNumberOfMilliseconds);
</code></pre>

<p>However, the api never seems to work consistently, and never for any amount of time greater than 1000 milliseconds. I'm stumped. I have the appropriate permissions, my application has its sharedUserId set to "android.uid.system" in the manifest, and the application is signed with the same key the firmware itself is signed with (platform key). </p>

<p>It is a pretty simple API call, so I don't really know what on earth is going wrong. I've been able to get this problem on both a device running android 2.3 and a device running android 3.2. </p>

<p>Any ideas?</p>
