I always thought that on Linux all non-root users get the same treatment and always run in parallel, the kernel does not care whose X session is currently active. But now there seems to be some kind of new "feature" in the Linux kernel, Ubuntu or KDE that suspends programs, if they are not in the active X session.
Examples
Login
- I am logged in as Alice and decide to switch to user Bob and start a new KDE session using this menu
- Bob's splash screen appears and I immediately switch back to Alice using Ctrl+Alt+F7.
- I do some work and after a few minutes I switch back to Bob's new session with Ctrl+Alt+F8.
- I find that the splash screen did not continue and the session did not load. Only now it continues to load and finishes in ~10 s.
Logout
Almost the same as above: I initiate a log out and immediately switch to another account and when I come back after a few minutes the logout did not finish.
Music
I start playing music with mpv as Alice. I switch to Bob's account. Music plays fine at first, but then after ~40s it stops. I switch back for a second to Alice, the music continues playing and when I switch to Bob I have again ~40s. Youtube seems to stop earlier, after ~15s.
Questions
This all leads me to believe that there is something going on that suspends processes that are not in the active X session.
- Who is responsible for this?
- How can I turn this off?
- Can I white list programs that should never be suspended?
I am using KDE Neon 5 based on Ubuntu 16.04 LTS (Xenial Xerus) with KDE 5.36.0.
