From owner-freebsd-questions@freebsd.org Wed Jan 9 10:21:48 2019 Return-Path: Delivered-To: freebsd-questions@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 CECE8149E2CC for ; Wed, 9 Jan 2019 10:21:48 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out.migadu.com (out.migadu.com [91.121.223.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.migadu.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EBFDC7768A for ; Wed, 9 Jan 2019 10:21:46 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: (Migadu outbound); Wed, 09 Jan 2019 10:21:38 +0000 Received: from [192.168.1.141] ([62.122.208.146]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id 8708C7A2-4D2A-40CF-8CC9-6BCFDA34A490.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Wed, 09 Jan 2019 10:21:38 +0000 Date: Wed, 09 Jan 2019 13:21:33 +0300 From: Greg V Subject: Re: AMDGPU RX580 OpenCL To: Gunther Nikl Cc: freebsd-x11@freebsd.org, freebsd-questions@freebsd.org Message-Id: <1547029293.34223.0@smtp.migadu.com> In-Reply-To: <20190108191830.00004a83@justmail.de> References: <20190102070113.1e9781fc9ac1c37bba8f1800@sohara.org> <1546646937.2475.3@smtp.migadu.com> <20190105122042.00004687@justmail.de> <1546691721.1768.0@smtp.migadu.com> <20190108191830.00004a83@justmail.de> X-Mailer: geary/lite-gnome~g3766af013824-dirty MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; bh=j4mBdq3uoUdgcwwBiBtlXrHMSoDjuqqCN8rE8LjsaoY=; c=relaxed/simple; d=unrelenting.technology; h=from:subject:date:to; s=default; b=DE70+4RiCTaAwFZPq8wqryeGcsINGd+MLxUf7XCRyeu0aOLNqtT9qV/HzdRxQ98Ijf4zOkcnl6dh/kIyCbu8yZ+Fo+9mHVSd5cqfogATZcoezHmmukvYK0mTkhKA3j05HIhqidBLcJtAFo/uZcMQmYKy3ysQ9mP50TyV2yASrQI= X-Rspamd-Queue-Id: EBFDC7768A X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=DE70+4Ri; dmarc=pass (policy=none) header.from=unrelenting.technology; spf=pass (mx1.freebsd.org: domain of greg@unrelenting.technology designates 91.121.223.63 as permitted sender) smtp.mailfrom=greg@unrelenting.technology X-Spamd-Result: default: False [-6.74 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[unrelenting.technology:s=default]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:91.121.223.63]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; MX_GOOD(-0.01)[aspmx1.migadu.com,aspmx2.migadu.com]; NEURAL_HAM_SHORT(-0.99)[-0.992,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.74)[ip: (-9.88), ipnet: 91.121.0.0/16(-4.27), asn: 16276(0.46), country: FR(-0.02)]; ASN(0.00)[asn:16276, ipnet:91.121.0.0/16, country:FR]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 10:21:49 -0000 On Tue, Jan 8, 2019 at 9:18 PM, Gunther Nikl wrote: > Greg V > wrote: >> > Slightly OT, but can you describe what is required to get Wayland >> > running? What additional software is required? Can I (still) use >> > xterm, >> > Opera 12, etc? >>=20 >> Yes, you can run any X apps, Xwayland makes that work. >=20 > Are you using Xwayland yourself? Of course. It's always been supported out of the box in most=20 compositors, you just run an X app and it works. Though I don't rely on that very much, as most applications work=20 natively on Wayland! (Even Firefox, if you build nightly from source) >=20 >> So, if you want Wayland, >>=20 >> - most importantly, you need a kernel built with the EVDEV_SUPPORT >> option, otherwise you won't get any input devices >=20 > AFAIK, this requires at least 11.2? I don't follow releases, but it's been there for a long time. >> - (btw you can use evdev+libinput in Xorg too) >=20 > Do I need something special for Xorg when building/configuring? Probably not, just install xf86-input-libinput. >> - EVDEV_SUPPORT has been enabled by default in CURRENT and >> 12-STABLE, so 12.1 will be the first release to get evdev out of the >> box I think >=20 > I am on 11.2-RELEASE. Then I have to build a custom kernel. >=20 >> - set sysctl kern.evdev.rcpt_mask=3D12 to get events from individual >> keyboards/mice instead of the multiplexer =97 important for=20 >> touchpads >=20 > Ok. >=20 >> - also it's very nice to have a kernel with >> (just landed in CURRENT,=20 >> will be >> merged into 12-STABLE after a week) =97 otherwise unresponsive >> applications can make the whole desktop unresponsive (kinda like in >> the good old Mac OS 9.x days :D) =97 but it was surprisingly rare, I >> lived with that bug for over a year >=20 > I noticed that differential. I suppose the patch can be applied on > 11.2+? Yes. Well, maybe the infiniband part won't, but it doesn't matter, you=20 can just ignore that. Why are you staying on 11 on a desktop? ;) >> - for now, you need access permissions on /dev/input* devices =97=20 >> I've >> been working on fixing that, there are patches (on differential for >> the kernel, on github for libudev-devd) but you can just chmod g+rw >> /dev/input/* and ignore security lol >>=20 >> - you need mesa, the UI toolkits, etc. built with wayland support=20 >> =97 >> thankfully, it's on by default in ports now, so it should all be in >> the official packages already :) >=20 > Up-to here it should be doable. >=20 >> - well, you need a compositor: >> - there's Sway which has FreeBSD >> support and it's already in a sort of user friendly state (for >> advanced users :D) >> - there's my development fork of Weston >> + it needs to be launched with >> =97 this is in development,=20 >> not >> really documented >> - KDE Plasma5 kwin_wayland =97 won't run directly on the desktop >> right now I think, only in a window. I'll need to investigate >> ConsoleKit2=85 >=20 > This looks bit more involved. Thank you for these instructions! I=20 > think > this will help me get started. As Jan mentioned, Sway is now in ports. =