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

Shastao <shas...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shas...@gmail.com

--- Comment #70 from Shastao <shas...@gmail.com> ---
For me the issue manifests a bit differently, so apologies if I should report
this as a separate ticket instead. But it is instability involving multiple
monitors in KDE 6. After turning monitors off and back on, either from power
management settings or from manual power button push, sometimes video playback
by any application (vlc, firefox, etc.) freezes the entire desktop for 30-60
seconds before updating the desktop once then freezing again until playback is
paused/stops. Memory usage by kwin_wayland and plasmashell stay the same (about
400 MB and 600 MB respectively) during this time.

kwin_wayland --replace does not help the issue, but pkill kwin_wayland and
logging back in does.

I did not experience the issue initially when I first installed Arch in January
on I believe one of the last versions of KDE 5 to be shipped with it, and
started noticing the issue some time after the upgrade to KDE 6.

SYSTEM

Arch running kernel 6.13.7-arch1-1
CPU: Ryzen 7 9700X 
GPU: AMD ATI Radeon RX 7900 XT
Monitors: Sceptre M27 at 1920x1080@120Hz (non-primary); Gigabyte M28U at
3840x2160@144Hz (primary)

$ pacman -Qi kwin
Name            : kwin
Version         : 6.3.3.1-1

STEPS TO REPRODUCE (for my specific hardware)

Type 1:
1. Turn off primary display. Secondary display flashes, a device disconnect
chime is heard, menubar on secondary display vanishes briefly.
2. Turn off secondary display. Device connect chime (from primary monitor) is
heard.
3. Turn on secondary display. Disconnect and connect chime is heard.
4. Turn on primary display. Secondary display flashes, disconnect chime,
menubar flicker, connect chime.
5. If unlucky, any video playback (vlc, firefox etc.) causes display freeze.

Type 2:
1. Turn off primary display. Secondary display flashes, a device disconnect
chime is heard, menubar on secondary display vanishes briefly, device connect
chime is heard, menubar reappears with another minor flicker.
2. Turn on primary display. Secondary display flashes, disconnect chime,
menubar flicker, connect chime, etc. 
3. If unlucky, any video playback (vlc, firefox etc.) causes display freeze.

LOG INFO

In being able to force the type 2 scenario above from repeated power toggling,
this is what was output to journalctl from primary display poweroff through the
video playback freeze:

Mar 23 10:27:09 Menphina org_kde_powerdevil[74224]: [ 81069] Removing connected
display on bus 8
Mar 23 10:27:09 Menphina org_kde_powerdevil[74224]: [ 81069] Emitting
DDCA_Display_Status_Event[939.372:  DDCA_EVENT_DISPLAY_DISCONNECTED,
card1-DP-1, dref: DDCA_Display_Ref[14], io_path:/dev/i2c-8, ddc working: false]
Mar 23 10:27:09 Menphina org_kde_powerdevil[74224]: [ 81069] libddcutil
callback thread 0x7926a401f770 started
Mar 23 10:27:09 Menphina org_kde_powerdevil[74224]: [ 81069] Started 1 event
callback thread(s)
Mar 23 10:27:11 Menphina org_kde_powerdevil[74224]: [ 81069] Adding connected
display with bus 8
Mar 23 10:27:11 Menphina org_kde_powerdevil[74224]: [ 81069] Emitting
DDCA_Display_Status_Event[941.095:  DDCA_EVENT_DISPLAY_CONNECTED, card1-DP-1,
dref: DDCA_Display_Ref[15], io_path:/dev/i2c-8, ddc working: true]
Mar 23 10:27:11 Menphina org_kde_powerdevil[74224]: [ 81069] libddcutil
callback thread 0x7926a401a430 started
Mar 23 10:27:11 Menphina org_kde_powerdevil[74224]: [ 81069] Started 1 event
callback thread(s)
Mar 23 10:27:11 Menphina org_kde_powerdevil[74224]: [ 74224] Quiescing
libddcutil API...
Mar 23 10:27:11 Menphina org_kde_powerdevil[74224]: [ 74224] Quiesce libddcutil
API complete
Mar 23 10:27:11 Menphina org_kde_powerdevil[74224]: [ 74224] Display
redetection starting.
Mar 23 10:27:11 Menphina org_kde_powerdevil[74224]: [ 81068] recheck thread
terminating because watch thread terminated
Mar 23 10:27:11 Menphina org_kde_powerdevil[74224]: [ 74224] Watch thread
terminated.
Mar 23 10:27:12 Menphina org_kde_powerdevil[74224]: [ 74224] Watching for
display connection changes, resolved watch mode = Watch_Mode_Xevent, poll loop
interval = 100 millisec
Mar 23 10:27:12 Menphina org_kde_powerdevil[74224]: [ 74224]                   
                      extra_stabilization_millisec: 0, 
stabilization_poll_millisec: 100
Mar 23 10:27:12 Menphina org_kde_powerdevil[74224]: [ 74224] libddcutil recheck
thread (nil) started
Mar 23 10:27:12 Menphina org_kde_powerdevil[74224]: [ 74224] libddcutil watch
thread 0x600a3af462d0 started
Mar 23 10:27:12 Menphina org_kde_powerdevil[74224]: [ 74224] Display
redetection finished.
Mar 23 10:27:12 Menphina org_kde_powerdevil[74224]: [ 74224] Unquiescing
libddcutil API...
Mar 23 10:27:12 Menphina org_kde_powerdevil[74224]: [ 81375]
(dw_recheck_displays_func) Recheck interval: Slept for 200 millisec
Mar 23 10:27:16 Menphina org_kde_powerdevil[74224]: [ 81376] Removing connected
display on bus 8
Mar 23 10:27:16 Menphina org_kde_powerdevil[74224]: [ 81376] Emitting
DDCA_Display_Status_Event[945.787:  DDCA_EVENT_DISPLAY_DISCONNECTED,
card1-DP-1, dref: DDCA_Display_Ref[17], io_path:/dev/i2c-8, ddc working: false]
Mar 23 10:27:16 Menphina org_kde_powerdevil[74224]: [ 81376] libddcutil
callback thread 0x7926a0014860 started
Mar 23 10:27:16 Menphina org_kde_powerdevil[74224]: [ 81376] Started 1 event
callback thread(s)
Mar 23 10:27:17 Menphina org_kde_powerdevil[74224]: [ 81376] Adding connected
display with bus 8
Mar 23 10:27:18 Menphina org_kde_powerdevil[74224]: [ 81376] Emitting
DDCA_Display_Status_Event[947.662:  DDCA_EVENT_DISPLAY_CONNECTED, card1-DP-1,
dref: DDCA_Display_Ref[18], io_path:/dev/i2c-8, ddc working: true]
Mar 23 10:27:18 Menphina org_kde_powerdevil[74224]: [ 81376] libddcutil
callback thread 0x7926a00062a0 started
Mar 23 10:27:18 Menphina org_kde_powerdevil[74224]: [ 81376] Started 1 event
callback thread(s)
Mar 23 10:27:18 Menphina org_kde_powerdevil[74224]: [ 74224] Quiescing
libddcutil API...
Mar 23 10:27:21 Menphina org_kde_powerdevil[74224]: Error queiscing libdducitl
API. 1 active API calls outstanding.
Mar 23 10:27:21 Menphina org_kde_powerdevil[74224]: [ 74224] Error queiscing
libdducitl API. 1 active API calls outstanding.
Mar 23 10:27:21 Menphina org_kde_powerdevil[74224]: org.kde.powerdevil:
[DDCutilDisplay]: ddca_close_display -3032
Mar 23 10:27:21 Menphina org_kde_powerdevil[74224]: library quiesced,
ddca_close_display temporarily unavailable
Mar 23 10:27:21 Menphina org_kde_powerdevil[74224]: [ 74224] Display
redetection starting.
Mar 23 10:27:21 Menphina org_kde_powerdevil[74224]: [ 81375] recheck thread
terminating because watch thread terminated
Mar 23 10:27:21 Menphina org_kde_powerdevil[74224]: [ 74224] Watch thread
terminated.
Mar 23 10:27:21 Menphina org_kde_powerdevil[74224]: [ 74224] Attempting to
unlock display lock owned by different thread
Mar 23 10:27:21 Menphina org_kde_powerdevil[74224]: [ 74224] Unexpected error
DDCRC_LOCKED from unlock_display_by_dpath(Display_Path[/dev/i2c-6])
Mar 23 10:27:52 Menphina kwin_wayland[73944]: kwin_wayland_drm: The main thread
was hanging temporarily!

Most times I experience the issue nothing much is emitted to journalctl.

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

Reply via email to