From owner-freebsd-x11@freebsd.org Tue Jun 11 02:03:34 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D719C15CE247 for ; Tue, 11 Jun 2019 02:03:33 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 749516EF02 for ; Tue, 11 Jun 2019 02:03:33 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2EA4215CE246; Tue, 11 Jun 2019 02:03:33 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A84515CE245 for ; Tue, 11 Jun 2019 02:03:33 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AAFD06EF01; Tue, 11 Jun 2019 02:03:32 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 9AE7CAFE; Tue, 11 Jun 2019 02:03:32 +0000 (UTC) From: Jan Beich To: Dale Brazelton Cc: x11@freebsd.org Subject: Re: Sway, Wayland, and Xwayland References: Date: Tue, 11 Jun 2019 04:03:28 +0200 In-Reply-To: (Dale Brazelton's message of "Mon, 10 Jun 2019 19:09:44 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: AAFD06EF01 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.964,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jun 2019 02:03:34 -0000 (CC'ing appropriate public list. I don't help privately.) Dale Brazelton writes: > Hello! I saw you were the Sway maintainer so I thought I'd direct this > question to you. I'm a fairly new FreeBSD user. I run 12 stable on an > AMD X470 board with an AMD Vega 64 graphics card. I use drm-kmod with > amdgpu driver for graphics support. All the packages I use are built > from ports using poudriere. I've managed to get Sway working but am > unable to get any X11 apps to work thru xwayland. For instance if I > start sway and then start firefox from my terminal app (alacritty) > nothing happens. Firefox appears to start, and indeed if I use ps - a > it shows up in the app list but it is not visible. I've done the usual > "googling" but all I've found are vague references to xwayland not > working properly. Do you know if this is an issue with sway or a > deeper problem with amdgpu? I noticed amdgpu is based off an older > Linux kernel and the ports version of xwayland is behind upstream so I > wondered if that could be the problem. I would like to help resolve > this issue for myself and all FreeBSD users but I'm not sure where to > start. I can read and write basic C code but I'm not a professional > programmer. I would also be glad to do some testing if > necessary. Thanks in advance for any assistance you could give. Maybe an issue with www/firefox. Try www/firefox-esr instead or another X11 application. Firefox supports Wayland natively which can be enabled by defining GDK_BACKEND=wayland or MOZ_ENABLE_WAYLAND=1 (since 66.0, preferred) via environ(7) variable. Did you change any port options in x11-wm/sway or one of its dependencies? Did you define LIBGL_DRI3_ENABLE=1 in environ(7) to avoid llvmpipe fallback? Does $DISPLAY in alacritty session and Xwayland 1st argument in ps(1) match? Can you show "sway -d" output? IIRC, Sway starts Xwayland on first use. Can you try "firefox --new-instance --profile $(mktemp -dt ffprofile)"?