News for hackers. Stuff that matters.
Re:KiCad and Wayland Support by ChocolateGod on Wednesday June 18, 2025 @02:41AM (#44307220)
> X11 is a proper system and protocol

It's really not, it's designed for drawing on remote terminals over a network (it even has a print server), not hardware accelerated devices. Things like HDR, multiple refresh rates, mixed DPI, passive compositing, hardware planes are just harder to do.

There was a reason Android didn't use Xorg and instead used SurfaceFlinger (which shares more design with Wayland than Xorg).

Re:KiCad and Wayland Support by gf000 on Wednesday June 18, 2025 @03:05AM (#44307351)
What I don't understand is why do "GNU Linux" have such an adverse reaction to anything Android? Like why wasn't SurfaceFlinger got adapted for both?
Re:KiCad and Wayland Support by ChocolateGod on Wednesday June 18, 2025 @05:25AM (#44308164)
> Like why wasn't SurfaceFlinger got adapted for both

IIRC SurfaceFlinger is tightly tied to Binder which is an Android only kernel IPC, didn't work with the standard Mesa stack and wasn't designed for multiple windows with multiple displays.

Wouldn't be surprised though if eventually Android swaps to Wayland as Google wants to merge it with ChromeOS. Since talking to the compositor is abstracted away to the platform APIs, I don't see it as big of a hurdle as X11 to Wayland was.

Re:KiCad and Wayland Support by gf000 on Wednesday June 18, 2025 @07:20AM (#44308866)
Fair enough.

Though I would be happy if merging of work would happen in either direction.

Re:KiCad and Wayland Support by ahartmetz on Friday June 20, 2025 @04:41AM (#44325740)
It doesn't seem like Android devices have much to offer to fill desktop computing functionality gaps in Wayland.
Re:KiCad and Wayland Support by ChocolateGod on Friday June 20, 2025 @10:01AM (#44327825)
Adopting SurfaceFlinger on the desktop would certainly be a step backwards, OEMs effectively fork it each time and change it for functionality on their devices.

Google sometimes tries to add these features (e.g. split screen, multiple windows etc) into the base code but can take time for OEMs to adopt them on their skins.

Re:KiCad and Wayland Support by m-p-3 on Thursday June 19, 2025 @09:10AM (#44318387)
I'm curious to see what Google did for their Desktop Mode / DeX-like implementation in Android 16.
Re:KiCad and Wayland Support by teleforce on Thursday June 19, 2025 @08:30AM (#44318028)
>Things like HDR, multiple refresh rates, mixed DPI, passive compositing, hardware planes are just harder to do.

Are you sure it's easier to do with Wayland, all this while the Linux HDR is not working well [1],[2].

I've got the feeling that every features claimed to be easier with Wayland are all bogus and the same thing can be achieved with the same amount of effort and time on X. Wayland now really feel like the Emperor's New Cloth.

[1] Ubuntu 25.04 & Fedora 42 Hit A Long Sought Milestone With HDR Support Working Well On The Linux Desktop:

https://www.phoronix.com/review/linux-hdr-2025

[2] Wayland Color Management & HDR Protocol Support Merged:

https://www.phoronix.com/news/Wayland-CM-HDR-Merged

Re:KiCad and Wayland Support by phendrenad2 on Saturday June 21, 2025 @08:51AM (#44337185)
> it's designed for drawing on remote terminals over a network

Yes, but.

On a local machine the "network" is just system calls, and the kernel just hands the data from one process to the other. The overhead is minimal. HDR, multiple refresh rates, mixed DPI, these can all be implemented on the existing protocol. X11 actually closely resembles win32 (it was inspired by the same source after all - Xerox Parc GUI research), which has support for all of these things (it may not be pretty but are Adobe or the legion of game devs complaining? Of course not, it's write once and done.)