From owner-freebsd-x11@freebsd.org Thu Jun 13 19:36:31 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 C48EC15BB097 for ; Thu, 13 Jun 2019 19:36:30 +0000 (UTC) (envelope-from dalebrazelton@outlook.com) 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 E2FFD6BC0E for ; Thu, 13 Jun 2019 19:36:29 +0000 (UTC) (envelope-from dalebrazelton@outlook.com) Received: by mailman.ysv.freebsd.org (Postfix) id 9CE1915BB093; Thu, 13 Jun 2019 19:36:29 +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 78F4115BB092 for ; Thu, 13 Jun 2019 19:36:29 +0000 (UTC) (envelope-from dalebrazelton@outlook.com) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-oln040092002063.outbound.protection.outlook.com [40.92.2.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E90DC6BC08; Thu, 13 Jun 2019 19:36:28 +0000 (UTC) (envelope-from dalebrazelton@outlook.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XFwrB+a2lm4zyWFRq45YMJ3D/LRO6wXOOkLitWIa/CM=; b=Ju84MGIb/hE5mJ+K/n6p3JIYNrIreATST30zDRz7kM57DwQlK2AxFI1NyisUaJ5zxZyf4DeckE4Rwugj0l4SgZIqzBPlElNIzUY2MA6fFc0Mfz8ISqoI4yIP8KfW3kXbsFrPqwCqX5gUT0x9rLCPAuFngzh7gKLN+FIriy+cgJp2guxQenm50uPlBUFHIOQ6k2OMBIjrnzs4sNj2E8rY4HHpX2yK1ecdBfB3vGwqa2tTnbAsIwi3k1Uw75YY2RIbyUqmOOtqC66AZnnD6vlLdqUPcdKZ5rTJ1hQLIiYPmV9xVpPkbDiRtsVfK4fHcmOTsoeR5AA6zfyxafvYL3qwbA== Received: from BY2NAM01FT050.eop-nam01.prod.protection.outlook.com (10.152.68.60) by BY2NAM01HT170.eop-nam01.prod.protection.outlook.com (10.152.68.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1987.11; Thu, 13 Jun 2019 19:36:26 +0000 Received: from MWHPR19MB1533.namprd19.prod.outlook.com (10.152.68.55) by BY2NAM01FT050.mail.protection.outlook.com (10.152.69.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11 via Frontend Transport; Thu, 13 Jun 2019 19:36:26 +0000 Received: from MWHPR19MB1533.namprd19.prod.outlook.com ([fe80::80a5:8356:a25e:7a9b]) by MWHPR19MB1533.namprd19.prod.outlook.com ([fe80::80a5:8356:a25e:7a9b%7]) with mapi id 15.20.1987.010; Thu, 13 Jun 2019 19:36:26 +0000 From: Dale Brazelton To: Johannes Lundberg , Greg V CC: "x11@freebsd.org" Subject: Re: Sway, Wayland, and Xwayland Thread-Topic: Sway, Wayland, and Xwayland Thread-Index: AQHVH7gKC1wXUqRGzkKcUPYcSTj9xKaVtFMrgAAFxoCAAT5gAIACK8GAgADXaOg= Date: Thu, 13 Jun 2019 19:36:26 +0000 Message-ID: References: <3112c733-c168-8683-892f-d3042b136ec7@FreeBSD.org> <1560288228.78549.0@unrelenting.technology>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:B0CD916AAFEE27D228DD50DA53E489EA056FAE3D13EA0D5493837F20A386A486; UpperCasedChecksum:372E921D0E6F4B6549677A1AF3DE1722DAF31CA45D5DDCF0947BD857804D16C3; SizeAsReceived:6930; Count:43 x-tmn: [BR1G3ZTf3K7vYCAVnwDHLE4E1LdgVQzX] x-ms-publictraffictype: Email x-incomingheadercount: 43 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031323274)(2017031324274)(1601125500)(1603101475)(1701031045); SRVR:BY2NAM01HT170; x-ms-traffictypediagnostic: BY2NAM01HT170: x-ms-exchange-purlcount: 3 x-microsoft-antispam-message-info: QzeupZtAqwDGc/2qkbvZP1zWsKEXj/bz+GtHXCB1AWaFtk7MAN8V1hacqGtx0Ym7s+AOI27uxGUoc5tVfBeSLth9S3xfwVeUxgN8c53R94yTWiDUA5p7vpq4kAbUX0Gh8oVVxY7ffLeSDHREhxMUTqnUzhkN4hLWaJNzQUoqu7jZmIIMtGkEx7yckAidMhxh MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 65300c1d-7c0f-4928-5409-08d6f0366cc3 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jun 2019 19:36:26.2694 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM01HT170 X-Rspamd-Queue-Id: E90DC6BC08 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.970,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 19:36:31 -0000 Even after implementing all the suggestions from Jan I was unable to get fi= refox 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 c= ould only run sway once per boot. If I ever exited sway and tried to restar= t it my computer would hang and I'd have to power it off. (I realize I'm pr= obably the only person in the world trying to run a FreeBSD desktop on an a= md Vega 64 graphics card!) I'll postpone further testing until we have a mo= re up to date amdgpu, mesa, xorg-server, and xwayland in 12 stable. Thanks = to everyone for your help and suggestions! 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=3D1 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=3Dhttps%3A%2F%2Fgithu= b.com%2FFreeBSDDesktop%2Fkms-drm%2Fissues%2F33%23issuecomment-422793245&= ;data=3D02%7C01%7C%7C8d0d2c69c1c54b08b87908d6efc8fc0b%7C84df9e7fe9f640afb43= 5aaaaaaaaaaaa%7C1%7C0%7C636960043831829889&sdata=3DNCuhVs7zzeHl00HpMz9G= nkFVitew2jsM1DmqfteM5sU%3D&reserved=3D0 > <<< > > ^^^ 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=3Dhttps%3A%2F%2Fgithub.= com%2FFreeBSDDesktop%2Ffreebsd-ports%2Ftree%2Ffeature%2Fxserver-1.20&da= ta=3D02%7C01%7C%7C8d0d2c69c1c54b08b87908d6efc8fc0b%7C84df9e7fe9f640afb435aa= aaaaaaaaaa%7C1%7C0%7C636960043831829889&sdata=3DB3tydJ2J7N3qUWAO47A9fxZ= FwOOZB%2BLPz%2B4x%2Bp%2FKuOQ%3D&reserved=3D0 and tested myself. Hopefully we can get 1.20 out soon... > >