Repository navigation
sysmon: process pause and priority - #4137
Merged
Merged
Conversation
Add Pause/Resume and Priority to the process menu and the expanded row, in both the window and the popout. Pause sends SIGSTOP to a process and everything it started, parents first so a shell keeps its foreground job, and Resume sends SIGCONT. Session processes, polkitd and DMS can't be paused, and the root helper never stops itself. Paused rows are dimmed and show an icon. A stopped process ignores SIGTERM until it continues, so Quit, End process tree and Restart now continue it after signalling. Otherwise they did nothing and Resume ended the process later. Priority offers five presets for the nice value. It applies to every thread, and on a merged row to every process in that row. Nice is per thread on Linux, so a plain renice only changes the main thread. Lowering your own process needs no password; anything else goes through the unlocked helper or pkexec. The level shows as a chip in the expanded row, and the optional Nice column becomes Priority, showing the level and sorting Highest first. Values set elsewhere read as the nearest level; the exact number stays in the Details tab. Fix the session list too: comm is cut to 15 characters, so dbus-broker-launch never matched. It now gets the critical warning and no restart, as the list intended.
The window menu sent a plain kill, which a stopped process ignores until it continues. Go through the same tree script as Quit on a paused process. Continuing a running process changes nothing.
Member
|
/claude review |
Contributor
Claude reviewNo issues found. |
bbedward
pushed a commit
that referenced
this pull request
Nov 6, 2026
port 2.1 (cherry picked from commit 564e301)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This adds two features to the system monitor: pausing processes and changing their priority. Both are in the right-click menu and in the expanded process view.
Pause freezes a process and everything it started until it is resumed, for example a game while you're away. Paused processes are dimmed and show a pause icon in the list. Session processes, DMS itself and kernel threads can't be paused. Quit, End process tree, Restart and the kill button in the bar's window menu resume a paused process so the commands can go through.
Priority has five levels from Highest to Lowest and applies to all threads of a process, and on a merged row to every process in that row. The current level shows in the expanded view, and the optional Nice column is now a Priority column that shows the level and sorts by it. The exact nice value stays in the Details tab. Lowering the priority of your own process needs no password, everything else goes through the system monitor's unlock or a password prompt.
I also fixed the session process list:
dbus-broker-launchnever matched because process names get cut off at 15 characters, so it now gets the same warning on quit as the other session processes and no Restart.One limit: pausing a single program inside a terminal hands the terminal back to the shell, the same as Ctrl+Z.
Type of change
Related issues
Partially implements #1256
I left out affinity and the profiles from the issue. Affinity can be a follow-up, the work there is a CPU picker that makes sense on hybrid CPUs with different CCDs for example which I cannot reliably test on my own system. Profiles would need to watch every process start for example with a kernel-level interface, and ananicy-cpp and gamemode already cover that. Should stay separate from DMS in my opinion.
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings