Bug 431858 - Composition turning off every time secondary screen is plugged in or unplugged
Summary: Composition turning off every time secondary screen is plugged in or unplugged
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (other bugs)
Version First Reported In: 5.22.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-20 18:17 UTC by Michał Dybczak
Modified: 2021-11-03 19:16 UTC (History)
3 users (show)

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


Attachments
journald.log (56.91 KB, text/x-log)
2021-01-20 18:17 UTC, Michał Dybczak
Details
inxi info (4.18 KB, application/octet-stream)
2021-01-20 18:20 UTC, Michał Dybczak
Details
xrandr info (19.01 KB, application/octet-stream)
2021-01-20 18:20 UTC, Michał Dybczak
Details
kwinrc (4.29 KB, text/plain)
2021-01-21 15:00 UTC, Michał Dybczak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Dybczak 2021-01-20 18:17:16 UTC
Created attachment 135022 [details]
journald.log

SUMMARY
When plugging in a secondary screen composition is turned off, so I have to bring it back with shift+alt+f12. The same is happening when I unplug the monitor.
It doesn't happen all the time but in 99%. Unplugging has a higher chance that the composition will stay, but in general, it also causes it to stop working.

STEPS TO REPRODUCE
1. Have composition on.
2. Plug in a secondary monitor.

OBSERVED RESULT

Composition is turned off.

EXPECTED RESULT

Plugging a secondary monitor or unplugging it shouldn't turn off composition when we don't want it.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.9.16-1-MANJARO
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 530

ADDITIONAL INFORMATION

It's a hybrid laptop with optimus-manager. It happens on Intel Modesetting drivers, but also on Hybrid mode as well. Since Hybrid works, I don't use Nvidia mode enough to provide info if this bug happens there as well.
OS: Manjaro KDE, testing branch.

Since I use a laptop but work remotely almost every day, I constantly and on a daily basis plug the secondary monitor on and off. This bug is very disturbing.

The composition is turning off also on system boot when the secondary monitor is working, not always but in 90% of time.

Initially I thought this to be a latte bug, so I switched to a default, testing user, without latte running, with the default Plasma panel. The same happens there.

I observe this bug for over a year, but recently it became a bigger annoyance because I use a secondary monitor all the time for work.

I'm sending a journald log of the plug in-off events. I hope it will help. If something more is needed, let me know.
Comment 1 Michał Dybczak 2021-01-20 18:20:08 UTC
Created attachment 135023 [details]
inxi info

I'm sending additional info about the hardware in case it's hardware specific.
Comment 2 Michał Dybczak 2021-01-20 18:20:36 UTC
Created attachment 135024 [details]
xrandr info

Info about monitors.
Comment 3 Vlad Zahorodnii 2021-01-21 08:52:08 UTC
Can you post your .config/kwinrc file?
Comment 4 Michał Dybczak 2021-01-21 15:00:43 UTC
Created attachment 135032 [details]
kwinrc

Sure. Here it is.
Comment 5 Michał Dybczak 2021-01-24 22:28:16 UTC
@Vlad Zahorodni, do you think that the issue may not be present in the newest kwin in 5.21?

It's only 2,5 weeks to the release. I can endure as much. If the bug will be still present, we'll be back to the discussion. With so major kwin changes it's pointless to focus on this bug for the older kwin version, especially that it may not be so widely experienced. So far I haven't gotten any duplicate mark, and I'm experiencing it since a long time.

I started a second job a while ago, that requires remote work, so now the plug in and off issue is my every day problem and the bug pains more, but I can endure 3 more weeks.
Comment 6 Michał Dybczak 2021-02-21 17:42:59 UTC
I updated to Plasma 5.21 and the issue is still there :(. I tried to check the Wayland session, but it turned out, it doesn't even support multi-monitors on hybrid (intel-nvidia) session.

By the way, did I mention, I usually work on Intel Modesetting drivers? This could be also a contributor to the problem. The same behavior can be observed on intel-nvidia hybrid session (with Intel Modesetting as the default GPU for the desktop, so no wonder it works the same).

I could switch to Nvidia driver and see if the issue is there as well, but Nvidia mode has its own multiple monitor issues, so I avoid it. Additionally, with hybrid session, there is no need to use full Nvidia on a laptop, because there are no real advantages of such a session, since hybrid one works very well and does what it needs (full Nvidia support when needed).

Should I update the logs for Plasma 5.21? Did you see something in the logs that stands out?

Is there any other data I could provide to solve this issue?
Comment 7 Michał Dybczak 2021-07-12 19:55:04 UTC
Plasma 5.22 still with this issue.

I noticed thou, that Wayland session don't have this problem. The secondary monitor finally works in Wayland, and plugging it in and out is super smooth, unlike on Xorg, composition works.

It suggests that regular kwin is at fault here.
Comment 8 Michał Dybczak 2021-11-03 19:16:42 UTC
Plasma 5.23 fixed the issue.
Whatever ground changes were made in kwin, this was fortunate for me. Since the update, I haven't noticed even one turning off of composition.

I'm marking this bug as closed. Hopefully it will stick.