From owner-freebsd-x11@freebsd.org Thu Jun 13 06:33:00 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 61E5515CD94F for ; Thu, 13 Jun 2019 06:33:00 +0000 (UTC) (envelope-from johalun@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 D5DF76E93F for ; Thu, 13 Jun 2019 06:32:59 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9470215CD94E; Thu, 13 Jun 2019 06:32:59 +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 8181A15CD94D for ; Thu, 13 Jun 2019 06:32:59 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 108746E93E; Thu, 13 Jun 2019 06:32:59 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from [192.168.0.83] (ip72-208-182-43.ph.ph.cox.net [72.208.182.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: johalun) by smtp.freebsd.org (Postfix) with ESMTPSA id 741A41492A; Thu, 13 Jun 2019 06:32:58 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Subject: Re: Sway, Wayland, and Xwayland To: Greg V Cc: Dale Brazelton , x11@freebsd.org References: <3112c733-c168-8683-892f-d3042b136ec7@FreeBSD.org> <1560288228.78549.0@unrelenting.technology> From: Johannes Lundberg X-Tagtoolbar-Keys: D20190612233255795 Message-ID: Date: Wed, 12 Jun 2019 23:32:55 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <1560288228.78549.0@unrelenting.technology> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 108746E93E X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 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.99)[-0.985,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: Thu, 13 Jun 2019 06:33:00 -0000 On 6/11/19 2:23 PM, Greg V wrote: > > > On Mon, Jun 10, 2019 at 19:24, Johannes Lundberg > wrote: >> On 6/10/19 7:03 PM, Jan Beich wrote: >>>  (CC'ing appropriate public list. I don't help privately.) >>> >>>  Dale Brazelton writes: >>> >>>> 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. >>> >>>  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)"? >> Other simple X apps like xclock, or even glxgears that need Xwayland run >> but are not displayed. The window seem to be  simply hidden. IIRC there >> was a fix to this but I can't remember what that was. I tried >> enable/disable DRI3 but to no success... > > Xwayland windows not displaying is the good old ioctl permission thing: > > >>> > https://github.com/FreeBSDDesktop/kms-drm/issues/33#issuecomment-422793245 > <<< > > ^^^ maybe it's time to merge my workaround since no one's found the > root cause ^^^ Looks like this is fixed in Xorg 1.20.  I built my xorg-server and xwayland packages from our dev branch here https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/xserver-1.20 and tested myself. Hopefully we can get 1.20 out soon... > >