Bug 466342 - While 2 screens are connected, after resuming from hibernation, the secondary screen is set as the primary screen
Summary: While 2 screens are connected, after resuming from hibernation, the secondary...
Status: RESOLVED WORKSFORME
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.27.2
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-24 10:31 UTC by shinjii
Modified: 2023-12-31 03:46 UTC (History)
4 users (show)

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


Attachments
KScreen unloaded (60.47 KB, image/png)
2023-05-16 17:47 UTC, shinjii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shinjii 2023-02-24 10:31:09 UTC
Hi,
After upgrade plasma from 5.26.x to 5.27.0 resuming from hibernation has some weird change:
I have an laptop () with nvidia rtx 3060 and second screen connected with HDMI to it  - now after resume from hibernation my laptop screen which is main screen before hibernation changes places with that second screen and second screen is main screen, laptop screen is as additional screen :P i have to go to settings of screen and change it again - it happens on every hibernate, even after change when I hibernate again  it changes again.
In plasma 5.26.x there wasn't something like that.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 37 
(available in About System)
KDE Plasma Version: 5.27
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Comment 1 shinjii 2023-02-24 10:31:43 UTC
Ah - it's on Wayland session, I didn't check it on X11.
Comment 2 Nate Graham 2023-02-27 15:34:00 UTC
A few questions:
1. is `nvidia-settings` running? If it is, does the issue go away if you stop it from running?
2. If it's not running, or if the issue persists after you terminate it, can you paste the output of `kscreen-doctor -o` both before hibernating, and after the laptop comes out of hibernation?
Comment 3 shinjii 2023-02-27 16:02:33 UTC
(In reply to Nate Graham from comment #2)
> A few questions:
> 1. is `nvidia-settings` running? If it is, does the issue go away if you
> stop it from running?
> 2. If it's not running, or if the issue persists after you terminate it, can
> you paste the output of `kscreen-doctor -o` both before hibernating, and
> after the laptop comes out of hibernation?

Hi, after some upgrades (I guess 5.27.0 to 5.27.1) it's working now fine :)
Comment 4 Nate Graham 2023-02-27 16:05:08 UTC
Woohoo, thanks for following up!
Comment 5 shinjii 2023-03-02 10:29:36 UTC
shit....today it happened again...but I know when it happens! 
It happens only after FIRST hibernation, after second and more hibernations it's fine lol
Comment 6 Nate Graham 2023-03-02 15:25:52 UTC
How exceptionally odd!
Comment 7 Nate Graham 2023-03-02 15:26:11 UTC
Can you paste the output of `kscreen-doctor -o` before this happens (when the screens are set up properly) and afterwards (when they are not)? Thanks!
Comment 8 shinjii 2023-03-06 11:07:47 UTC
Before hibernation (when it's fine):
"kscreen-doctor -o
QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 1000
Output: 1 eDP-1 enabled connected priority 1 Panel Modes: 0:2560x1440@165*! 1:2560x1440@60 2:1920x1200@165 3:1920x1080@165 4:1600x1200@165 5:1680x1050@165 6:1280x1024@165 7:1440x900@165 8:1280x800@165 9:1280x720@165 10:1024x768@165 11:800x600@165 12:640x480@165 13:1600x1200@60 14:1280x1024@60 15:1024x768@60 16:1920x1200@60 17:1280x800@60 18:2560x1440@60 19:1920x1080@60 20:1600x900@60 21:1368x768@60 22:1280x720@60 Geometry: 1920,0 2560x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: Automatic RgbRange: unknown
Output: 2 HDMI-A-1 enabled connected priority 2 HDMI Modes: 0:1920x1080@60! 1:1920x1080@240* 2:1920x1080@144 3:1920x1080@120 4:1920x1080@120 5:1920x1080@60 6:1920x1080@50 7:1600x900@60 8:1280x1024@75 9:1280x1024@60 10:1152x864@75 11:1280x720@60 12:1280x720@50 13:1024x768@75 14:1024x768@60 15:800x600@75 16:800x600@60 17:720x576@50 18:720x480@60 19:640x480@75 20:640x480@60 21:640x480@60 22:1280x1024@60 23:1024x768@60 24:1280x800@60 25:1920x1080@60 26:1600x900@60 27:1368x768@60 28:1280x720@60 Geometry: 0,0 1920x1080 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
"


After resume from hibernation when it's wrong:

"kscreen-doctor -o
QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 1000
Output: 1 eDP-1 enabled connected priority 2 Panel Modes: 0:2560x1440@165*! 1:2560x1440@60 2:1920x1200@165 3:1920x1080@165 4:1600x1200@165 5:1680x1050@165 6:1280x1024@165 7:1440x900@165 8:1280x800@165 9:1280x720@165 10:1024x768@165 11:800x600@165 12:640x480@165 13:1600x1200@60 14:1280x1024@60 15:1024x768@60 16:1920x1200@60 17:1280x800@60 18:2560x1440@60 19:1920x1080@60 20:1600x900@60 21:1368x768@60 22:1280x720@60 Geometry: 1920,0 2560x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: Automatic RgbRange: unknown
Output: 2 HDMI-A-1 enabled connected priority 1 HDMI Modes: 0:1920x1080@60! 1:1920x1080@240* 2:1920x1080@144 3:1920x1080@120 4:1920x1080@120 5:1920x1080@60 6:1920x1080@50 7:1600x900@60 8:1280x1024@75 9:1280x1024@60 10:1152x864@75 11:1280x720@60 12:1280x720@50 13:1024x768@75 14:1024x768@60 15:800x600@75 16:800x600@60 17:720x576@50 18:720x480@60 19:640x480@75 20:640x480@60 21:640x480@60 22:1280x1024@60 23:1024x768@60 24:1280x800@60 25:1920x1080@60 26:1600x900@60 27:1368x768@60 28:1280x720@60 Geometry: 0,0 1920x1080 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
"
Comment 9 shinjii 2023-03-06 11:08:12 UTC
Plasma is now 5.27.2 and still wrong :D
Comment 10 Nate Graham 2023-03-06 15:27:19 UTC
Thanks. Looks like the Priority values of the eDP-1 and HDMI-A-1 screen are getting reversed.
Comment 11 shinjii 2023-03-08 13:01:56 UTC
Something changed or I don't know but in 5.27.2 it's on every hibernation :D not like in 5.27.1 when it was only after first :D
Comment 12 shinjii 2023-03-10 10:24:43 UTC
Hi again,
I can confirm that it's happening only on Wayland session, on X11 it's fine :)
Comment 13 shinjii 2023-04-04 12:16:04 UTC
This bug still happening - now on 5.27.3
Comment 14 Zamundaaa 2023-04-04 14:50:40 UTC
Can you disable the kscreen service (in the background services settings) and see if it still happens? It would be good to know if it's KWin or KScreen that causes this change
Comment 15 shinjii 2023-04-05 09:11:38 UTC
(In reply to Zamundaaa from comment #14)
> Can you disable the kscreen service (in the background services settings)
> and see if it still happens? It would be good to know if it's KWin or
> KScreen that causes this change

Where it is? Can you show me screen?
Comment 16 TraceyC 2023-04-29 19:42:00 UTC
(In reply to shinjii from comment #15)
> Where it is? Can you show me screen?

The setting is under Menu - Settings - Background Services. Search using the search bar for kscreen.

I was able to reproduce this bug, but with X11. It does not happen under Wayland on my system.

## System info
Operating System: Solus 4.3
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.2.12-231.current (64-bit)
Graphics Platform: X11
Processors: 16 × 11th Gen Intel® Core™ i7-11800H @ 2.30GHz
Memory: 62.5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2
Manufacturer: Dell Inc.
Product Name: XPS 17 9710

## Setup
Laptop connected to an external display via a Thunderbird dock
External monitor set as primary "For only this specific display arrangement"

This is always reproducible with X11. I cannot reproduce with Wayland. (In both cases, with the kscreen service active at boot and running).

The bug did not occur on Plasma 5.26. This started happening after my system was updated with Plasma 5.27.4.

## Steps to reproduce
With the setup described above, and the external monitor as primary, put the system to sleep. Disconnect the dock cable. (Note: This is so the laptop is not plugged in all the time, to prevent battery issues).
Wake system, log in, reconnect dock cable.

## Expected behavior
The external monitor is treated as the primary display as configured

## Actual behavior
The laptop screen is treated as the primary display, with desktop icons and the taskbar.
The settings are correct in Display Configuration, but not reflected on the displays.

## Workaround for X11
Set the laptop screen as primary display, Apply
Set the external monitor as primary, Apply.


## Notes
* Attempted to reproduce when the dock cable remains connected.
With the external monitor as primary, put the system to sleep. 
Did *not* disconnect the dock cable, and woke the system. System settings were honored.

* Attempted to reproduce with Wayland
Restarted the system and logged into a Wayland session. The bug does not occur following the reproduction steps. When re-connecting the dock cable, the external monitor is treated as the primary display, consistent with settings.

* Disabled the kscreen service under Services - Background Services. Restarted and logged into an X11 session. Not able to reproduce the bug.
Re-enabled the kscreen service and attempted to reproduce again, it was reproduced.

* kscreen-doctor -o before and after suspend and wake in the X11 session
Before
```
❯ kscreen-doctor -o  
Output: 445 DP-0 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 446 DP-1 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 447 DP-2 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 448 DP-3 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 449 DP-4 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 450 DP-5 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 451 DP-6 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 452 DP-7 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 488 eDP-1-1 enabled connected priority 2 Panel Modes: 497:3840x2400@60*! 498:3840x2400@48 499:3840x216  
0@60 500:3840x2160@60 501:3840x2160@60 502:3840x2160@60 503:3200x1800@60 504:3200x1800@60 505:2880x1620@60 506  
:2880x1620@60 507:2560x1600@60 508:2560x1600@60 509:2560x1440@60 510:2560x1440@60 511:2560x1440@60 512:2560x14  
40@60 513:2048x1536@60 514:1920x1440@60 515:1856x1392@60 516:1792x1344@60 517:2048x1152@60 518:2048x1152@60 51  
9:2048x1152@60 520:2048x1152@60 521:1920x1200@60 522:1920x1200@60 523:1920x1080@60 524:1920x1080@60 525:1920x1  
080@60 526:1920x1080@60 527:1600x1200@60 528:1680x1050@60 529:1680x1050@60 530:1400x1050@60 531:1600x900@60 53  
2:1600x900@60 533:1600x900@60 534:1600x900@60 535:1280x1024@60 536:1400x900@60 537:1400x900@60 538:1280x960@60  
539:1440x810@60 540:1440x810@60 541:1368x768@60 542:1368x768@60 543:1280x800@60 544:1280x800@60 545:1280x800@  
60 546:1280x800@60 547:1280x720@60 548:1280x720@60 549:1280x720@60 550:1280x720@60 551:1024x768@60 552:1024x76  
8@60 553:960x720@60 554:928x696@60 555:896x672@60 556:1024x576@60 557:1024x576@60 558:1024x576@60 559:1024x576  
@60 560:960x600@60 561:960x600@60 562:960x540@60 563:960x540@60 564:960x540@60 565:960x540@60 566:800x600@60 5  
67:800x600@60 568:800x600@56 569:840x525@60 570:840x525@60 571:864x486@60 572:864x486@60 573:700x525@60 574:80  
0x450@60 575:800x450@60 576:640x512@60 577:700x450@60 578:700x450@60 579:640x480@60 580:640x480@60 581:720x405  
@60 582:720x405@59 583:684x384@60 584:684x384@60 585:640x400@60 586:640x400@60 587:640x360@60 588:640x360@60 5  
89:640x360@60 590:640x360@59 591:512x384@60 592:512x288@60 593:512x288@60 594:480x270@60 595:480x270@60 596:40  
0x300@60 597:400x300@56 598:432x243@60 599:432x243@60 600:320x240@60 601:360x202@60 602:360x202@59 603:320x180  
@60 604:320x180@59 Geometry: 0,0 3840x2400 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 489 DP-1-1 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1  
Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 490 DP-1-2 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1  
Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 491 DP-1-3 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1  
Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 492 DP-1-4 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1  
Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 493 DP-1-1-1 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation:  
1 Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 494 DP-1-1-2 enabled connected priority 1 DisplayPort Modes: 528:1680x1050@60 535:1280x1024@60 545:128  
0x800@60 552:1024x768@60 567:800x600@60 580:640x480@60 605:3440x1440@144! 606:3440x1440@120 607:3440x1440@60 6  
08:3440x1440@100* 609:3440x1440@75 610:1920x1080@75 611:1920x1080@60 612:1920x1080@60 613:1920x1080@50 614:192  
0x1080@60 615:1600x900@60 616:1280x1024@75 617:1152x864@60 618:1280x720@60 619:1280x720@50 620:1280x720@60 621  
:1024x768@75 622:800x600@75 623:720x576@50 624:720x480@60 625:720x480@60 626:640x480@75 627:640x480@60 Geometr  
y: 3839,0 3440x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 495 DP-1-1-3 disabled connected priority 0 DisplayPort Modes: 529:1680x1050@60 535:1280x1024@60 546:12  
80x800@60 552:1024x768@60 567:800x600@60 580:640x480@60 611:1920x1080@60 612:1920x1080@60 613:1920x1080@50 614  
:1920x1080@60 615:1600x900@60 616:1280x1024@75 618:1280x720@60 619:1280x720@50 620:1280x720@60 623:720x576@50  
624:720x480@60 625:720x480@60 627:640x480@60 628:3440x1440@85! 629:3840x2160@30 630:3840x2160@25 631:3840x2160  
@24 632:3840x2160@30 633:3840x2160@24 634:3440x1440@50 635:2560x1440@120 636:1920x1080@120 637:1920x1080@120 6  
38:1920x1080@75 639:1152x864@60 Geometry: 0,0 3440x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRan  
ge: unknown
```

After
```
❯ kscreen-doctor -o  
Output: 445 DP-0 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 446 DP-1 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 447 DP-2 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 448 DP-3 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 449 DP-4 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 450 DP-5 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 451 DP-6 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 452 DP-7 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Ov  
erscan: 0 Vrr: incapable RgbRange: unknown  
Output: 488 eDP-1-1 enabled connected priority 2 Panel Modes: 497:3840x2400@60! 498:3840x2400@48 499:3840x2160  
@60 500:3840x2160@60 501:3840x2160@60 502:3840x2160@60 503:3200x1800@60 504:3200x1800@60 505:2880x1620@60 506:  
2880x1620@60 507:2560x1600@60* 508:2560x1600@60 509:2560x1440@60 510:2560x1440@60 511:2560x1440@60 512:2560x14  
40@60 513:2048x1536@60 514:1920x1440@60 515:1856x1392@60 516:1792x1344@60 517:2048x1152@60 518:2048x1152@60 51  
9:2048x1152@60 520:2048x1152@60 521:1920x1200@60 522:1920x1200@60 523:1920x1080@60 524:1920x1080@60 525:1920x1  
080@60 526:1920x1080@60 527:1600x1200@60 528:1680x1050@60 529:1680x1050@60 530:1400x1050@60 531:1600x900@60 53  
2:1600x900@60 533:1600x900@60 534:1600x900@60 535:1280x1024@60 536:1400x900@60 537:1400x900@60 538:1280x960@60  
539:1440x810@60 540:1440x810@60 541:1368x768@60 542:1368x768@60 543:1280x800@60 544:1280x800@60 545:1280x800@  
60 546:1280x800@60 547:1280x720@60 548:1280x720@60 549:1280x720@60 550:1280x720@60 551:1024x768@60 552:1024x76  
8@60 553:960x720@60 554:928x696@60 555:896x672@60 556:1024x576@60 557:1024x576@60 558:1024x576@60 559:1024x576  
@60 560:960x600@60 561:960x600@60 562:960x540@60 563:960x540@60 564:960x540@60 565:960x540@60 566:800x600@60 5  
67:800x600@60 568:800x600@56 569:840x525@60 570:840x525@60 571:864x486@60 572:864x486@60 573:700x525@60 574:80  
0x450@60 575:800x450@60 576:640x512@60 577:700x450@60 578:700x450@60 579:640x480@60 580:640x480@60 581:720x405  
@60 582:720x405@59 583:684x384@60 584:684x384@60 585:640x400@60 586:640x400@60 587:640x360@60 588:640x360@60 5  
89:640x360@60 590:640x360@59 591:512x384@60 592:512x288@60 593:512x288@60 594:480x270@60 595:480x270@60 596:40  
0x300@60 597:400x300@56 598:432x243@60 599:432x243@60 600:320x240@60 601:360x202@60 602:360x202@59 603:320x180  
@60 604:320x180@59 Geometry: 0,0 2560x1600 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 489 DP-1-1 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1  
Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 490 DP-1-2 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1  
Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 491 DP-1-3 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1  
Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 492 DP-1-4 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1  
Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 493 DP-1-1-1 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation:  
1 Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 494 DP-1-1-2 enabled connected priority 1 DisplayPort Modes: 528:1680x1050@60 535:1280x1024@60 545:128  
0x800@60 552:1024x768@60 567:800x600@60 580:640x480@60 605:3440x1440@144! 606:3440x1440@120 607:3440x1440@60 6  
08:3440x1440@100* 609:3440x1440@75 610:1920x1080@75 611:1920x1080@60 612:1920x1080@60 613:1920x1080@50 614:192  
0x1080@60 615:1600x900@60 616:1280x1024@75 617:1152x864@60 618:1280x720@60 619:1280x720@50 620:1280x720@60 621  
:1024x768@75 622:800x600@75 623:720x576@50 624:720x480@60 625:720x480@60 626:640x480@75 627:640x480@60 Geometr  
y: 2560,0 3440x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown  
Output: 495 DP-1-1-3 disabled connected priority 0 DisplayPort Modes: 529:1680x1050@60 535:1280x1024@60 546:12  
80x800@60 552:1024x768@60 567:800x600@60 580:640x480@60 611:1920x1080@60 612:1920x1080@60 613:1920x1080@50 614  
:1920x1080@60 615:1600x900@60 616:1280x1024@75 618:1280x720@60 619:1280x720@50 620:1280x720@60 623:720x576@50  
624:720x480@60 625:720x480@60 627:640x480@60 628:3440x1440@85! 629:3840x2160@30 630:3840x2160@25 631:3840x2160  
@24 632:3840x2160@30 633:3840x2160@24 634:3440x1440@50 635:2560x1440@120 636:1920x1080@120 637:1920x1080@120 6  
38:1920x1080@75 639:1152x864@60 Geometry: 0,0 3440x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRan  
ge: unknown
```
Comment 17 Nate Graham 2023-05-14 22:24:51 UTC
The "For only this specific display arrangement" setting has been removed for Plasma 6, so unfortunately I don't think there is going to be a lot of interest in fixing this for X11 in Plasma 5.27.

Shinjii, when you experience the issue, are you also using the "For only this specific display arrangement" setting? If not, then your issue is something other than what TraceyC is reporting.
Comment 18 shinjii 2023-05-16 14:09:53 UTC
no, I have option for all screens:)
Comment 19 Nate Graham 2023-05-16 16:12:11 UTC
Thanks.
Comment 20 Nate Graham 2023-05-16 16:13:29 UTC
Shinjii, can you try disabling kscreen as requested in Comment 14? Make sure to reboot afterwards.
Comment 21 shinjii 2023-05-16 16:44:06 UTC
(In reply to Nate Graham from comment #20)
> Shinjii, can you try disabling kscreen as requested in Comment 14? Make sure
> to reboot afterwards.

Nate - how to disable it? :)
Comment 22 Nate Graham 2023-05-16 16:49:15 UTC
System Settings > Startup and Shutdown > Background Services > uncheck the checkbox by "KScreen 2", click the pause button, and then reboot.
Comment 23 shinjii 2023-05-16 17:47:33 UTC
It's here (screen in attachment)? So it's unloaded (I checked it before restart (and change anything), after hibernation when that error happens)
Comment 24 shinjii 2023-05-16 17:47:54 UTC
Created attachment 159009 [details]
KScreen unloaded
Comment 25 shinjii 2023-05-16 17:52:23 UTC
Ofcourse that bug is on WAYLAND SESSION - and you Nate told earlier today about X11 fixes :D
Comment 26 Zamundaaa 2023-05-17 14:22:53 UTC
if you rename or move (not delete!) the ~/.local/share/kscreen folder, does it still happen?
Comment 27 shinjii 2023-05-17 18:13:48 UTC
(In reply to Zamundaaa from comment #26)
> if you rename or move (not delete!) the ~/.local/share/kscreen folder, does
> it still happen?

after rename it's still happening and it recreates kscreen dir with default values I guess ;p
Comment 28 Nate Graham 2023-05-18 15:53:57 UTC
Darn. Thanks for the info. Go ahead and turn the KScreen service back on then, so it being off doesn't become the cause of future weird bugs. :)
Comment 29 Zamundaaa 2023-10-05 19:42:30 UTC
Git commit ae84480fbfdc684b8ee4b0207d3ce679f6fb4cd7 by Xaver Hugl.
Committed on 05/10/2023 at 20:29.
Pushed by zamundaaa into branch 'master'.

outputconfigurationstore: add new config system

Instead of an external service (like KScreen) storing and restoring output configurations,
with this commit KWin takes over that responsibility. This allows it to, among other things,
generate appropriate configs for new sets of outputs immediately, and take KWin-internal information
about outputs into account when generating them.
Related: bug 466208, bug 455082, bug 457430, bug 474021, bug 469653, bug 470863, bug 466556

M  +1    -0    CMakeLists.txt
M  +1    -0    autotests/integration/kwin_wayland_test.cpp
M  +1    -0    src/CMakeLists.txt
M  +5    -0    src/backends/drm/drm_output.cpp
M  +9    -0    src/core/output.cpp
M  +11   -0    src/core/output.h
M  +1    -0    src/core/outputconfiguration.h
M  +7    -0    src/main.cpp
M  +1    -0    src/main.h
M  +0    -4    src/main_wayland.cpp
M  +709  -20   src/outputconfigurationstore.cpp
M  +68   -4    src/outputconfigurationstore.h
M  +1    -0    src/utils/CMakeLists.txt
M  +8    -0    src/utils/edid.cpp
M  +8    -0    src/utils/edid.h
A  +54   -0    src/utils/orientationsensor.cpp     [License: GPL(v2.0+)]
A  +38   -0    src/utils/orientationsensor.h     [License: GPL(v2.0+)]
M  +34   -1    src/wayland/outputdevice_v2.cpp
M  +1    -0    src/wayland/outputdevice_v2.h
M  +12   -1    src/wayland/outputmanagement_v2.cpp
M  +49   -6    src/workspace.cpp
M  +2    -0    src/workspace.h

https://invent.kde.org/plasma/kwin/-/commit/ae84480fbfdc684b8ee4b0207d3ce679f6fb4cd7
Comment 30 fanzhuyifan 2023-11-14 21:50:32 UTC
I can reproduce this behavior on wayland. For me this happens after suspend (I don't have hibernate configured on my laptop).
I am using the "for any display arrangement setting".

My KDE plasma version is 5.27.9, on Arch Linux. What additional information do I need to provide?

Thanks!
Comment 31 shinjii 2023-11-15 10:22:14 UTC
Yeah, I have still that "bug" too :D
Comment 32 Zamundaaa 2023-11-15 12:26:06 UTC
One thing you could try is to test the Plasma 6 alpha in a live boot, which has the new output configuration system for the Wayland session, and see if it still happens there. It's better at persistently identifying outputs, so it might fix it.
Comment 33 fanzhuyifan 2023-11-16 04:26:22 UTC
fyi I tried on neon unstable and this issue is no longer happening for me. Could other people also test on neon unstable, if possible? Thanks!
Comment 34 Bug Janitor Service 2023-12-01 03:45:48 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 35 fanzhuyifan 2023-12-01 04:04:29 UTC
(In reply to fanzhuyifan from comment #33)
> fyi I tried on neon unstable and this issue is no longer happening for me.
> Could other people also test on neon unstable, if possible? Thanks!

Plasma beta1 is out. If would be great if the other reporters could test on that. Thanks a lot!
Comment 36 Bug Janitor Service 2023-12-16 03:45:56 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 37 Bug Janitor Service 2023-12-31 03:46:08 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!