4 ms·
pkill -STOP "$(xprop _NET_WM_PID)" pkill -CONT "$(xprop _NET_WM_PID)" This might have some unintended consequences though (file locks, clock drift between ru
by moviuro 8y ago
pkill -STOP "$(xprop _NET_WM_PID)"
pkill -CONT "$(xprop _NET_WM_PID)"
This might have some unintended consequences though (file locks, clock drift between running program and your quartz...).
Regarding turbo, I'm pretty sure a shell script could set the CPU's speed governor to "conservative" at the press of a button.
- Drdrdrq 8y agoThanks, it's not quite the same though. Pause key was much more convenient, and worked on every system. Thanks nevertheless!
- moviuro 8y agoAlso, for terminals that support it: `Ctrl+S` to pause the display only (the command continues to run) and `Ctrl+Q` to unpause. Still not perfect... but it could help sometimes.
- ars 8y agoYou can also use the cpulimit program to do that. https://github.com/opsengine/cpulimit https://github.com/opsengine/cpulimit