IsXReady function returns true when X is started. The static boolean XisReady is just there to make sure IsXReady function is not execute after X is ready. So it shouldn't slow down idle detection, and the function is used only if X is expected to be in use (HAVE_XSS). So right now that code only prevent idle detection code to be run when X is not ready. Because I think the problem arises when X related things are initialized without X being ready... apparently not that simple.
I tried it by changing string "Xorg" to "gnuchess", and yes BOINC client sleeps until gnuchess was launched. So I think the code does what I meant. My idea just isn't working, not sure why. But, maybe similarly when BOINC start it would only sleep until X is ready and then restart. I will look if BOINC code has function for restart (at least it does make fork/clone) or anything like that to make things easy. If you know any relevant details, please let me know. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1274456 Title: BOINC is always suspended, if set to work when IDLE To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/boinc/+bug/1274456/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
