https://bugs.kde.org/show_bug.cgi?id=450337

            Bug ID: 450337
           Summary: Multiple issues when waking up from screen energy
                    saving
           Product: plasmashell
           Version: 5.24.1
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: Multi-screen support
          Assignee: plasma-b...@kde.org
          Reporter: traceyd...@yandex.com
                CC: aleix...@kde.org, notm...@gmail.com
  Target Milestone: 1.0

SUMMARY

I have two monitors connected to an NVidia card, and I have Screen Energy
Saving enabled (system hibernate/sleep isn't enabled, it's a desktop computer).
The monitors are of different brands, and when waking up from screen energy
saving, my primary screen wakes up 3-4 seconds later than the secondary one.
When screens wake up, I have multiple issues.

Situation #1

If I move the mouse to wake the screens, the following happens

(1) All windows in the primary are moved to the secondary
(2) Secondary becomes the primary (the taskbar gets moved to the secondary)
(3) The background for the primary becomes plain black.
(4) KWin (X11) crashes with the following:

Application: KWin (kwin_x11), signal: Segmentation fault

[KCrash Handler]
#4  0x00007feda65a7530 in KWin::Toplevel::isOnOutput(KWin::AbstractOutput*)
const () at /usr/lib/libkwin.so.5
#5  0x00007feda65e245e in KWin::Workspace::activeOutput() const () at
/usr/lib/libkwin.so.5
#6  0x00007feda65efe10 in KWin::X11Client::manage(unsigned int, bool) () at
/usr/lib/libkwin.so.5
#7  0x00007feda65d53f6 in KWin::Workspace::createClient(unsigned int, bool) ()
at /usr/lib/libkwin.so.5
#8  0x00007feda650944e in KWin::Workspace::workspaceEvent(xcb_generic_event_t*)
() at /usr/lib/libkwin.so.5
#9  0x00007feda4befad7 in
QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) ()
at /usr/lib/libQt5Core.so.5
#10 0x00007fed9ead2ad9 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*)
() at /usr/lib/libQt5XcbQpa.so.5
#11 0x00007fed9ead6cac in
QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at
/usr/lib/libQt5XcbQpa.so.5
#12 0x00007fed9eaf9db2 in  () at /usr/lib/libQt5XcbQpa.so.5
#13 0x00007feda4bf144b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at
/usr/lib/libQt5Core.so.5
#14 0x00007feda4bfcb97 in QCoreApplication::exec() () at
/usr/lib/libQt5Core.so.5
#15 0x000055c89445be8c in  ()
#16 0x00007feda3b19310 in __libc_start_call_main () at /usr/lib/libc.so.6
#17 0x00007feda3b193c1 in __libc_start_main_impl () at /usr/lib/libc.so.6
#18 0x000055c89445d225 in  ()
[Inferior 1 (process 113133) detached]

After restarting plasmashell, (2) and (3) get fixed, but not (1). I need to
move all open windows manually back to the primary.




If I plug off the secondary monitor before waking up using its power off
button, the let the screens wake up by moving the mouse, wait until the primary
wakes up, and the press the power on button on secondary screen, (2), (3), (4)
don't happen but (1) still happens, which is still annoying.




If I swap the roles for the primary and secondary monitors (such that the
slow-to-wake-up monitor becomes secondary), the following happens:

(1) All windows in the secondary are moved to the primary
(2) The background for the secondary becomes plain black.
(3) KWin crashes again

STEPS TO REPRODUCE
1. Connect two monitors
2. Enable Screen Energy Saving
3. Let screens sleep, wait an additional 1 minute for the screens to scan their
alternative inputs & turn off
4. Move the mouse to wake up the monitors

The "problematic", slow-to-wake-up monitor is MSI Optix G242.


OBSERVED RESULT

Issues & segfaults detailed in SUMMARY, depending on the configuration.


EXPECTED RESULT

Finding the desktop, screen and windows configuration in the exact same state
before monitors go to sleep. Also no crashes :)


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux (linux-lts 5.15.23)
(available in About System)
KDE Plasma Version:  5.24.1
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

NVidia drivers 510.54

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

Reply via email to