Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jan 2019 13:21:33 +0300
From:      Greg V <greg@unrelenting.technology>
To:        Gunther Nikl <gnikl@justmail.de>
Cc:        freebsd-x11@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: AMDGPU RX580 OpenCL
Message-ID:  <1547029293.34223.0@smtp.migadu.com>
In-Reply-To: <20190108191830.00004a83@justmail.de>
References:  <CAFYkXjnVOspenga%2BM0oP-0pS=vxr4gmqs7XcrJZdSjnf1geEZA@mail.gmail.com> <20190102070113.1e9781fc9ac1c37bba8f1800@sohara.org> <CAFYkXjny-6Wihc=6=AGE3Vo6y6X2LMeD=T9LnzX1VbkXZW2YBA@mail.gmail.com> <1546646937.2475.3@smtp.migadu.com> <20190105122042.00004687@justmail.de> <1546691721.1768.0@smtp.migadu.com> <20190108191830.00004a83@justmail.de>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, Jan 8, 2019 at 9:18 PM, Gunther Nikl <gnikl@justmail.de> wrote:
> Greg V <greg@unrelenting.technology=20
> <mailto:greg@unrelenting.technology>> 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
>>  <https://reviews.freebsd.org/rS342768>; (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 <https://github.com/swaywm/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
>>  <https://github.com/myfreeweb/weston>; + it needs to be launched with
>>  <https://github.com/myfreeweb/loginw>; =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.

=




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1547029293.34223.0>