News for hackers. Stuff that matters.
Re:Debian 10 “Buster” Released by nextos on Saturday July 06, 2019 @08:51PM (#20372950)
The problem with Wayland right now is that most (tiling) window managers need a very significant effort to be ported from X11.
Re:Debian 10 “Buster” Released by snazz on Saturday July 06, 2019 @08:54PM (#20372963)
Maybe sircmpwn could comment on this: Could wlroots (originally for Sway) make the transition process easier for other tiling window mangers wanting to port to Wayland?
Re:Debian 10 “Buster” Released by Sir_Cmpwn on Saturday July 06, 2019 @09:02PM (#20372997)
Tremendously so, yes, but it's still going to be a lot of work.
Re:Debian 10 “Buster” Released by new_realist on Saturday July 06, 2019 @09:22PM (#20373058)
Personally I’m waiting for a tiling Wayland WM that supports NVIDIA.
Re:Debian 10 “Buster” Released by thristian on Sunday July 07, 2019 @01:03AM (#20373644)
Effectively, you're waiting for NVIDIA to implement the same APIs every other Linux GPU driver uses.

You may be waiting a very long time.

Re:Debian 10 “Buster” Released by pabs3 on Sunday July 07, 2019 @03:20AM (#20373946)
Sway (Wayland equivalent of i3) works with the open source nouveau drivers, which seem to work quite well for some folks.
Re:Debian 10 “Buster” Released by iforgotpassword on Sunday July 07, 2019 @03:34AM (#20373986)
Wait. So I haven't used Wayland at all yet but why would the graphics driver need to have support for a tiling WM? isn't that in a whole different later and shouldn't matter at all?

Does NVIDIAs driver has any special code to make i3 work on X11 but missing code to make sway work on Wayland?

Re:Debian 10 “Buster” Released by secure on Sunday July 07, 2019 @03:55AM (#20374040)
It’s the other way around: on X11, nVidia implements all the standard APIs, so window managers like i3 don’t need driver-specific code.

For Wayland, nVidia only implements the EGLStreams buffer management API, whereas other drivers implement the GBM API. Individual compositors (like sway) need to add support for EGLStreams.

See also https://wiki.archlinux.org/index.php/Wayland#Requirements

Re:Debian 10 “Buster” Released by makomk on Sunday July 07, 2019 @08:39AM (#20374806)
Note that Wayland doesn't have a full driver abstraction layer in userland like X does. Every Wayland compositior is expected to call into the Linux kernel drivers for the graphics card directly. GBM is just a thin wrapper that hides the fact that Linux never standardised the buffer creation interface across different hardware - it assumes that all those driver-specific interfaces wrap essentially the same shared Linux buffer management code, and it doesn't abstract stuff like modesetting at all. NVidia managed to reimplement enough of the Linux modesetting interface that existing code mostly works, but their own buffer management infrastructure is apparently different enough that they couldn't make it look like the one existing Wayland compositors are expecting to use. So they ended up creating their own slightly higher-level API instead.
Re:Debian 10 “Buster” Released by iforgotpassword on Sunday July 07, 2019 @04:42AM (#20374165)
Oh dear, so right from the start there is unnecessary complication hindering adoption of Wayland in yet another way. After reading your comment I assumed at least all the other drivers would implement EGLStreams too but following your link reveals no, so you couldn't even implement a simple compositor that only supports one.

Personally I avoid NVIDIA like the plague, but at work we have to support VMware running with 3d acceleration on all kinds of cards on Linux, including NVIDIA with proprietary drivers. Apart from VMware having announced no plans yet on supporting Wayland this seems like yet another small reason to stay with X11 until the end of time.

Re:Debian 10 “Buster” Released by xvilka on Sunday July 07, 2019 @12:50AM (#20373608)
Xmonad[1] cannot be ported, but there is a Waymonad[2]. So yes, in most cases that would mean rewriting from scratch. What is worst of all this - no existing plugins/extensions/etc would work...

[1] https://github.com/xmonad/xmonad

[2] https://github.com/waymonad/waymonad

Re:Debian 10 “Buster” Released by anaphor on Saturday July 06, 2019 @08:54PM (#20372965)
I would say "very significant" is understating it. Anything that touches Xlib/XCB/etc would need to be at least modified, if not rewritten completely.
Re:Debian 10 “Buster” Released by smcameron on Saturday July 06, 2019 @09:10PM (#20373026)
How about gtk-2.0 apps?
Re:Debian 10 “Buster” Released by sdegutis on Saturday July 06, 2019 @09:01PM (#20372992)
That’s probably not a bad thing. We have the benefit of hindsight of decades of GUI management and it probably isn’t more than a weekend project to get a baseline library worked out to build cool things (like awesomewm and i3 and dwm) off of. Which probably already exists.
Re:Debian 10 “Buster” Released by maximente on Saturday July 06, 2019 @09:18PM (#20373045)
> it probably isn’t more than a weekend project to get a baseline library worked out to build cool things (like awesomewm and i3 and dwm) off of

what technical justifications are you using to make this claim?

Re:Debian 10 “Buster” Released by ubercow13 on Saturday July 06, 2019 @10:53PM (#20373321)
Isn't that what wlroots is? And it's taken many years of work by multiple contributors and still isn't really finished
Re:Debian 10 “Buster” Released by Sir_Cmpwn on Saturday July 06, 2019 @11:28PM (#20373417)
wlroots is finished enough to build production-quality Wayland desktops out of.
Re:Debian 10 “Buster” Released by ISL on Sunday July 07, 2019 @01:41AM (#20373726)
Will fluxbox be deprecated/compromised by Wayland? I've been happily using it since 2001 without a hiccup...
Re:Debian 10 “Buster” Released by opan on Sunday July 07, 2019 @04:57AM (#20374208)
Yeah, aside from GNOME/KDE trying to do a smooth transition, it's kind of a breaking point for everything. We now have Sway as an i3 successor, for example. There are similar projects for other popular window managers, but from what I understand none of them are in a very usable state the way Sway is. This[0] page can serve as an informal list of all the Wayland compositors succeeding old window managers. Waybox is likely relevant to your interests.

[0] https://github.com/swaywm/wlroots/wiki/Projects-which-use-wl...