[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-11-09 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=476340

Zamundaaa  changed:

   What|Removed |Added

 Resolution|--- |FIXED
  Latest Commit||https://invent.kde.org/plas
   ||ma/kwin/-/commit/c1312a5551
   ||69c801b2c116a7b333443730092
   ||e07
 Status|ASSIGNED|RESOLVED

--- Comment #7 from Zamundaaa  ---
Git commit c1312a555169c801b2c116a7b333443730092e07 by Xaver Hugl.
Committed on 09/11/2023 at 12:35.
Pushed by zamundaaa into branch 'master'.

backends/drm: fix pageflip events getting lost when outputs get turned off

When a display gets turned off while a pageflip event was still pending, the
pending
state gets changed immediately, without waiting for the pageflip event to
arrive first.
When this happens, activePending() returns false, and so the pageflip event
gets discarded.
This commit changes the logic to only check for activePending() when the
pageflip is for a
modeset, avoiding that issue.
Related: bug 476341, bug 476342, bug 437520, bug 475146

M  +10   -2src/backends/drm/drm_commit.cpp
M  +2-0src/backends/drm/drm_commit.h
M  +5-2src/backends/drm/drm_pipeline.cpp
M  +2-1src/backends/drm/drm_pipeline.h

https://invent.kde.org/plasma/kwin/-/commit/c1312a555169c801b2c116a7b333443730092e07

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-11-08 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=476340

--- Comment #6 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/plasma/kwin/-/merge_requests/4611

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-11-08 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=476340

--- Comment #5 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/plasma/kwin/-/merge_requests/4611

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-11-07 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=476340

Bug Janitor Service  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED

--- Comment #4 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/plasma/kwin/-/merge_requests/4605

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-11-05 Thread Harald Sitter
https://bugs.kde.org/show_bug.cgi?id=476340

--- Comment #3 from Harald Sitter  ---
I was wrong when I said it doesn't get enabled. It's much more complicate.d
It apparently gets enabled but it doesn't get applied correctly. That said I
think this bug and bug #476342 are actually the same defect. When I VT switch I
can force a repaint to get the laptop screen activated; input processing is
entirely not working though and only happens when VT switching.

Specifically I see
https://invent.kde.org/plasma/kwin/-/blob/e3186ae8e66c21be61dc4100c0d0e4fa4dffd201/src/scene/workspacescene.cpp#L230
triggering during the DrmOutput changes which I guess means the time management
is broken somehow?  After the VT switching I then see
KWin::RenderLoop::scheduleRepaint calls as I try to interact with widgets but
they appear to never result in DrmOutput::present calls which explains why
nothing is happening on screen I guess.

I would conclude that the RenderLoop(?) is having trouble. I am as yet unsure
why.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-11-04 Thread Harald Sitter
https://bugs.kde.org/show_bug.cgi?id=476340

Harald Sitter  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|REPORTED|CONFIRMED
 CC||sit...@kde.org

--- Comment #2 from Harald Sitter  ---
Can reproduce with clean configs, some pre-existing degree of configs will make
this not reproducible for some reason though.

What appears to happen is that DrmOutput in KWin doesn't get an update with
enabled=true so the builtin screen stays disabled. Curiously kscreen does
however think the output is enabled, so it seems there is a communication
problem between the two.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-11-01 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=476340

Nate Graham  changed:

   What|Removed |Added

   See Also||https://bugs.kde.org/show_b
   ||ug.cgi?id=476412

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-10-30 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=476340

Nate Graham  changed:

   What|Removed |Added

   Keywords||multiscreen

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-10-30 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=476340

Nate Graham  changed:

   What|Removed |Added

   Keywords||wayland

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-10-30 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=476340

Nate Graham  changed:

   What|Removed |Added

 CC||xaver.h...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-10-30 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=476340

Nate Graham  changed:

   What|Removed |Added

   See Also||https://bugs.kde.org/show_b
   ||ug.cgi?id=437520

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-10-30 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=476340

Nate Graham  changed:

   What|Removed |Added

   See Also||https://bugs.kde.org/show_b
   ||ug.cgi?id=476342

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-10-30 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=476340

Nate Graham  changed:

   What|Removed |Added

   See Also||https://bugs.kde.org/show_b
   ||ug.cgi?id=476341

--- Comment #1 from Nate Graham  ---
Missing Plasma containment issue is Bug 476341.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 476340] After disabling the laptop screen while an external screen is connected, disconnecting the external screen doesn't re-activate the laptop screen

2023-10-30 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=476340

Nate Graham  changed:

   What|Removed |Added

Summary|When disabling the laptop   |After disabling the laptop
   |screen while an external|screen while an external
   |screen is connecting,   |screen is connected,
   |disconnecting the external  |disconnecting the external
   |screen doesn't re-activate  |screen doesn't re-activate
   |the laptop screen   |the laptop screen

-- 
You are receiving this mail because:
You are watching all bug changes.