Prevent suspend when load average is high

خرید بک لینک

I often run into the situation, that I start a long-running process, then leave the PC for a while and come back to a suspended system. So I though that there must be a better, more intelligent way of deciding whether or not to suspend the system.

Some applications, e.g. music-players, inhibit a system-suspend via a DBus-call, but that requires support by the application, which is often not given (especially with terminal-applications).

So my question is: Would it be a good idea to include the load-avg of the last, say, 5 minutes into the suspend-decision and prevent a system-suspend if the load-avg is above a certain value (e.g. 1) instead of only relying on user-idle-time and processes preventing suspend via DBus or similar mechanisms?

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 177 تاريخ: سه شنبه 1 تير 1395 ساعت: 21:27

صفحه بندی