suspend on 'idle'

Richard A. Smith richard at laptop.org
Thu Aug 7 15:47:44 EDT 2008


Mikus Grinbergs wrote:

> But what got me started on this topic was that on one XO I run a 
> background (nice 19) task 24/7.  If I don't "inhibit" it, I've seen 
> that XO 'suspend' - even though its CPU was 100% utilized!  That is 
> a Linux application for which I only have the binary -- it would be 
> out of the question for me to "patch" the application so as to give 
> "hints" to ohm.

You would not have to patch it.  Simply wrapper it in script that sends 
the appropriate dbus messages when the script starts and exits.  But if 
it really is using 100% of cpu then the system should not be suspending.

-- 
Richard Smith  <richard at laptop.org>
One Laptop Per Child



More information about the Devel mailing list