way-displays icon indicating copy to clipboard operation
way-displays copied to clipboard

Layout Changes Failed After Successful Modeset

Open alex-courtis opened this issue 2 years ago • 3 comments

G1LMQS094673 plugged into Dell 5xxx via "4K" HDMI cable. Start way-displays with sway or after. b2b31c5

G1LMQS094673 is functional, laptop display is not.

MODE:
  - NAME_DESC: Ancor Communications Inc ROG PG27AQ G1LMQS094673
    WIDTH: 3840
    HEIGHT: 2160
LOG_THRESHOLD: DEBUG

sway.1.acourtis.log way-displays.1.acourtis.log

alex-courtis avatar Apr 11 '22 03:04 alex-courtis

This is a sway problem.

swaymsg -t command output DP-3 mode 3840x2160@24Hz results in the same. sway.1.acourtis.smc.log

alex-courtis avatar Apr 25 '22 06:04 alex-courtis

When falling back after the initial unsuccessful modeset, output_create_swapchain sets the format to DRM_FORMAT_MOD_INVALID which appears incorrect. Setting to DRM_FORMAT_MOD_NONE resolves the issue.

Documented workaround: https://github.com/alex-courtis/way-displays#known-issues-with-workarounds

alex-courtis avatar Apr 28 '22 04:04 alex-courtis

Raised at wlroots: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3431

alex-courtis avatar May 16 '22 03:05 alex-courtis

There have been extensive way-displays rewrites of mode setting (it's now atomic), along with success/fail/cancel case handling for sway and river.

There have also been many bug fixes and updates for wlroots, sway and river around display handling.

Closing this as I can no longer reproduce any such errors.

alex-courtis avatar May 15 '23 04:05 alex-courtis