You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a scripts that checks whether suspension is needed or not based on current process behavior. Have an option which scripts to activate for a profile.
Example checks
Does application play sound or not by checking pulse audio inputs.
pacmd list-sink-inputs short command gives information which processes are playing sound, also PID of process
Is application under high CPU load
If application is under high CPU load it might not be wise to suspend processes, as it might be processing something.
Is application having high network traffic lately
If application is having high network traffic it might not be wise to suspend processes, as it might be downloading or uploading something.
The text was updated successfully, but these errors were encountered:
How about a library of common, reusable shell scripts that ships with the software? Then we can prefix PATH before executing exec_suspend script, and the user can simply do:
I use this to check if my webcam is in use. If it is, it avoids suspending chrome.
exec_suspend = sh -c 'exit $(lsmod | grep "^uvcvideo " | awk "{ print $3 }")'
Idea
Implement a scripts that checks whether suspension is needed or not based on current process behavior. Have an option which scripts to activate for a profile.
Example checks
pacmd list-sink-inputs short
command gives information which processes are playing sound, also PID of processIf application is under high CPU load it might not be wise to suspend processes, as it might be processing something.
If application is having high network traffic it might not be wise to suspend processes, as it might be downloading or uploading something.
The text was updated successfully, but these errors were encountered: