Sway: Fails to display if config has any output commands

Created on 9 Apr 2020  路  4Comments  路  Source: swaywm/sway

Regressed by https://github.com/swaywm/sway/commit/0cdcf66bbccf

Environment:

$ cc --version
FreeBSD clang version 10.0.0 ([email protected]:llvm/llvm-project.git llvmorg-10.0.0-0-gd32170dbd5b)
Target: x86_64-unknown-freebsd13.0
Thread model: posix

$ pkg info -x libffi xkbcommon \^wayland drm-.\*kmod
libffi-3.2.1_3
libxkbcommon-0.10.0_1
wayland-1.18.0_3
wayland-protocols-1.20
drm-devel-kmod-5.0.g20200320

$ sway --version                                                                                                             ~
sway version 1.2-rc1-291-gc9fa7510
wlroots version 0.10.0-67-gd10f8a98

Steps to reproduce:

$ echo 'output * subpixel rgb' >/tmp/sway.conf
$ sway -c /tmp/sway.conf

Debug log:

--- good
+++ bad
@@ -36,6 +36,12 @@
 [types/wlr_idle.c:247] idle manager created
 [wayland] unable to lock lockfile /var/run/holo/wayland-0.lock, maybe another compositor is running
 [sway/config.c:387] Loading config from /tmp/sway.conf
+[sway/config.c:796] Read line 1: output * subpixel rgb
+[sway/commands.c:372] Config command: output * subpixel rgb
+[sway/commands.c:392] After replacement: output * subpixel rgb
+[sway/commands.c:423] Subcommand: subpixel rgb
+[sway/config/output.c:223] Adding output * config
+[sway/config/output.c:233] Config stored for output * (enabled: -1) ([email protected] position -1,-1 scale -1.000000 subpixel rgb transform -1) (bg (null) (null)) (dpms 0) (max render time: -1)
 [sway/server.c:188] Initializing Xwayland (lazy=1)
 [sway/server.c:206] Starting backend on wayland display 'wayland-1'
 [backend/drm/drm.c:1323] Scanning DRM connectors
@@ -79,12 +85,9 @@
 [backend/drm/drm.c:1234]   'HDMI-A-3' crtc=-1 state=0 desired_enabled=0
 [backend/drm/drm.c:1535] Requesting modeset for 'DP-1'
 [sway/desktop/output.c:866] New output 0x802291f80: DP-1
-[sway/config/output.c:349] Turning on output DP-1
-[sway/config/output.c:326] Output DPI: 162.560000x161.364706
+[sway/config/output.c:366] Set * subpixel to rgb
 [sway/config/output.c:382] Auto-detected output scale: 1.000000
 [sway/config/output.c:421] Committing output DP-1
-[backend/drm/drm.c:838] Modesetting 'DP-1' with '3840x2160@60000 mHz'
-[backend/drm/drm.c:715] Initializing renderer on connector 'DP-1'
 [sway/tree/workspace.c:284] Workspace: Generating new workspace name for output DP-1
 [sway/tree/output.c:127] Creating default workspace 1
 [sway/tree/workspace.c:64] Adding workspace 1 for output DP-1
@@ -116,11 +119,8 @@
 [xcursor/wlr_xcursor.c:250] xterm (1 images) 9x16+4,8
 [xcursor/wlr_xcursor.c:250] hand1 (1 images) 13x16+12,0
 [xcursor/wlr_xcursor.c:250] watch (1 images) 16x16+15,9
-[sway/desktop/layer_shell.c:189] Usable area changed, rearranging output
-[sway/tree/arrange.c:264] Usable area for ws: 3840x2160@0,0
+[sway/tree/arrange.c:264] Usable area for ws: 0x0@0,0
 [sway/tree/arrange.c:294] Arranging workspace '1' at 0.000000, 0.000000
-[sway/tree/arrange.c:264] Usable area for ws: 3840x2160@0,0
-[sway/tree/arrange.c:294] Arranging workspace '1' at 0.000000, 0.000000
 [sway/desktop/transaction.c:412] Transaction 0x809ca7960 committing with 2 instructions
 [sway/desktop/transaction.c:280] Applying transaction 0x809ca7960
 [backend/libinput/backend.c:55] Initializing libinput
bug

Most helpful comment

Thanks for reporting this issue. Can you try this PR? #5194

Works for me!

All 4 comments

I wonder if this is the same issue I'm having. When starting from a tty does it just hang at that screen?

EDIT: Yeah looks to be the same issue. Default sway config from /etc/sway/config doesn't work unless commenting out the one output line that sets the background.

Thanks for reporting this issue. Can you try this PR? https://github.com/swaywm/sway/pull/5194

Thanks for reporting this issue. Can you try this PR? #5194

Works for me!

I confirm, #5194 fixes the regression.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Olie440 picture Olie440  路  4Comments

emersion picture emersion  路  4Comments

ddevault picture ddevault  路  3Comments

WhyNotHugo picture WhyNotHugo  路  3Comments

ddevault picture ddevault  路  4Comments