Bug 419506 - when exiting (fullscreen) program which changed (multi)monitor setup, the setup does not return to previous state
Summary: when exiting (fullscreen) program which changed (multi)monitor setup, the set...
Status: RESOLVED DUPLICATE of bug 345291
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.18.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-01 17:54 UTC by Warren Head
Modified: 2020-07-24 06:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
journalctl contents for org.kde.KScreen (135.98 KB, text/x-log)
2020-04-01 17:54 UTC, Warren Head
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Warren Head 2020-04-01 17:54:29 UTC
Created attachment 127168 [details]
journalctl contents for org.kde.KScreen

SUMMARY
When exiting doom game port zandronum (get it here: https://zandronum.com/download#instubuntu), the multimonitor setup I have is affected; the resolution used in game is transferred to KDE. All three monitors are now duplicates as well (they were not before).

Restarting the display-manager does not resolve this.
The only way to recover is to redo all settings via KDE monitor settings.

From the syslog (via journalctl) I can see that the game uses xrand to change the resolution. See log in attachment.




STEPS TO REPRODUCE
1. have a multimonitor setup
2. run zandronum, change the video & display settings via its ingame menu
3. exit the game

OBSERVED RESULT
All monitors are equal with the same resolution as within the game.

EXPECTED RESULT
The normal resolution as preconfigured, with separate monitors.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 19.10, with kubuntu-ppa-backports
(available in About System)
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
The game zandronum is no longer being developed so the fix cannot be applied there.
However, I think no gui program should be able to conflict the windowing system in this manner, which is why I post this bug here.
Comment 1 Warren Head 2020-04-19 10:45:46 UTC
I have changed to title to make it a more general issue; any program which uses xrandr can change the monitor settings.

Proposed solution:
- a layout dropdown in the monitor settings which allows to you store multiple layouts and select/use a single layout
Comment 2 Christoph Feck 2020-04-28 07:55:36 UTC
An application that changes the resolution but does not restore it is broken. This issue is supposed to be impossible with Wayland.

Still, kscreen should restore configuration whenever possible, at least when starting its kcm.
Comment 3 Warren Head 2020-07-24 06:50:15 UTC
*** This bug has been marked as a duplicate of bug 345291 ***