For a while now when I switch between two user sessions the inactive one in some cases will stop executing GUI processes. This way I'm forced waiting for another session to load and can't do something in another one, because if I switch and return after a while it's still on the same point. The software affected includes rsync, rdiff-backup, KDE background processes, Steam launched in Openbox session (even downloading stops) and at least some games. VLC is not affected, at least it skips to needed time after I switch back, but for a moment I can see old frame and time in it's window.
What process is responsible for such behaviour? Can I reconfigure it somehow?
Update: Memory and Swap Usage
Some additional context: The irony is I suggested this exact behaviour on the old brainstorm.ubuntu.com (now defunct).
free --human
andfor szFile in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 "\t" $3}END{ print "" }' $szFile done | sort --key 2 --numeric --reverse | head -n 20
after you've switched to the second session? – Fabby Jul 02 '15 at 22:47find
on/
, [ctrl][Alt][F8] to the second user and everything keeps on running... (though the sound of the movie is muted when switching users.) How do you test? – Fabby Jul 03 '15 at 12:08rsync
launched inkonsole
is affected so I cannot switch to another user while running it. Thus, VSync looks completely irrelevant. – int_ua Sep 18 '17 at 12:11rsync
you are usingverbose
to print progress? have you tried without it + have you tried with sending it directly to the backgroundrsync .... &
? How aboutnohup rsync .... &
? for GUI they must suspend because there is only one output resource and it does taken by another user session and they will pause : ) – αғsнιη Sep 29 '17 at 03:09screen
should work too, but is there a way to [temporarily] prevent this behavior while launching it with output? The question is about what exactly is responsible and it's not really clear yet from your comment, can you provide more details please? What resource do you mean exactly? – int_ua Sep 29 '17 at 16:19rsync
to run in background it's can useCPU
,disk
also cannot use input resources like mouse or keyboard for inactive user. – αғsнιη Sep 29 '17 at 21:45rsync
is designed to suspend when focus is lost because disk shape might change or something. Perhaps a simple script that prints hello, increments counter, sleeps for a second and repeats would be a better test. – WinEunuuchs2Unix Oct 04 '17 at 23:47rsync
launch them through a VT (CTRL-ALT-F1) so that the X display isn't involved. You could also background the process if you desire by launching it withcommand &
For GUI programs you may be able to utilize a fake display. I hope this is useful. – Elder Geek Oct 05 '17 at 13:43