From owner-freebsd-x11@freebsd.org Thu Jun 13 21:28:10 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 6321415BD7DD for ; Thu, 13 Jun 2019 21:28:10 +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 E95E56F310 for ; Thu, 13 Jun 2019 21:28:09 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id A6D7515BD7DC; Thu, 13 Jun 2019 21:28:09 +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 7F17615BD7DB for ; Thu, 13 Jun 2019 21:28:09 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 1DA856F30E; Thu, 13 Jun 2019 21:28:09 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from [10.46.14.95] (wsip-72-212-151-146.ph.ph.cox.net [72.212.151.146]) (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 91EFC1B17F; Thu, 13 Jun 2019 21:28:08 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Subject: Re: Sway, Wayland, and Xwayland To: Dale Brazelton , Greg V Cc: "x11@freebsd.org" References: <3112c733-c168-8683-892f-d3042b136ec7@FreeBSD.org> <1560288228.78549.0@unrelenting.technology> From: Johannes Lundberg X-Tagtoolbar-Keys: D20190613142807040 Message-ID: <30fdbe32-3f31-33d2-667d-dbd23cef65bf@FreeBSD.org> Date: Thu, 13 Jun 2019 14:28:07 -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: Content-Language: en-US X-Rspamd-Queue-Id: 1DA856F30E X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.94 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.94)[-0.943,0] Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 21:28:10 -0000 On 6/13/19 12:36 PM, Dale Brazelton wrote: > Even after implementing all the suggestions from Jan I was unable to > get firefox to work in sway, neither natively in wayland or with > xwayland. After spending a good part of yesterday testing it, I'm > convinced my problems are due to the implementation of amdgpu in > FreeBSD 12 stable. For example, I could only run sway once per boot. > If I ever exited sway and tried to restart it my computer would hang > and I'd have to power it off. (I realize I'm probably the only person > in the world trying to run a FreeBSD desktop on an amd Vega 64 > graphics card!) I'll postpone further testing until we have a more up > to date amdgpu, mesa, xorg-server, and xwayland in 12 stable. Thanks > to everyone for your help and suggestions! If you'd like, try out our new live usb images for graphics testing from here https://people.freebsd.org/~johalun/images/ They all come with all versions of drm drivers, Xfce and Sway installed. The 13.0-CURRENT one with drm-v5.0 drivers should have better support for Vega graphics. Unfortunately it still comes with old Xorg so Xwayland won't work properly. You'll need a 16GB memstick to fit the image. These are still WIP so I'd really appreciate if you could test boot one on your system and tell me how it works. Thanks! > > Get Outlook for Android > > ------------------------------------------------------------------------ > *From:* Johannes Lundberg > *Sent:* Thursday, June 13, 2019 1:32:55 AM > *To:* Greg V > *Cc:* Dale Brazelton; x11@freebsd.org > *Subject:* Re: Sway, Wayland, and Xwayland >   > > 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://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FFreeBSDDesktop%2Fkms-drm%2Fissues%2F33%23issuecomment-422793245&data=02%7C01%7C%7C8d0d2c69c1c54b08b87908d6efc8fc0b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636960043831829889&sdata=NCuhVs7zzeHl00HpMz9GnkFVitew2jsM1DmqfteM5sU%3D&reserved=0 > > <<< > > > > ^^^ 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://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FFreeBSDDesktop%2Ffreebsd-ports%2Ftree%2Ffeature%2Fxserver-1.20&data=02%7C01%7C%7C8d0d2c69c1c54b08b87908d6efc8fc0b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636960043831829889&sdata=B3tydJ2J7N3qUWAO47A9fxZFwOOZB%2BLPz%2B4x%2Bp%2FKuOQ%3D&reserved=0 > and tested myself. > > Hopefully we can get 1.20 out soon... > > > > >