Tiny Core Linux

Off-Topic => Off-Topic - Tiny Core Lounge => Topic started by: GNUser on June 23, 2025, 02:22:36 PM

Title: XLibre - a fork of Xorg
Post by: GNUser on June 23, 2025, 02:22:36 PM
I just saw this today:
https://www.phoronix.com/news/XLibre-25.0-Released
https://github.com/X11Libre/xserver/releases/tag/xlibre-xserver-25.0.0.0

I hope this extends the useful life of X into the distant future. But it's also possible that it peters out after an initial wave of enthusiasm. Time will tell. I wish I could help the initiative but I know too little about graphics.
Title: Re: XLibre - a fork of Xorg
Post by: nick65go on June 24, 2025, 01:24:13 PM
If it would be a one-man orchestra then it will fail. I also hope it will not.
Maybe a better future will have if it will be split in two pieces (with maybe a common code/part):
1. XlibreX11 - for compatibility with ALL old GPU devices. The job will finish soon as no/few new devices /quirk/patches.
2. XlibreX12 - cut the old stuff compatibility, concentrate only on Actual + new GPU devices. Plus No xWayland etc.
Without a split like this, it is too much work, limit in API advances + extensions, to keep pass with innovations in GPU cores.

Anyway, for a long time from now, still will be apps using X11, but under Wayland. What matters, for users of an OS, are the applications. As long as speed is good enough, it should not matter the "insecurities" of Xorg in a container/VM, or isolated machine.
Title: Re: XLibre - a fork of Xorg
Post by: neonix on July 09, 2025, 04:38:30 PM
The Xlibre case brings out the worst in the open source community
https://en.ubunlog.com/The-XLibre-case-brings-out-the-worst-in-the-open-source-community./
Title: Re: XLibre - a fork of Xorg
Post by: mocore on July 25, 2025, 04:00:17 AM
+
https://forum.tinycorelinux.net/index.php/topic,27679.0.html - xlibre_new_xorg_fork
Title: Re: XLibre - a fork of Xorg
Post by: Vaguiner on August 01, 2025, 09:13:29 AM
It took me a while to digest the basics of X* but here's what I've discovered so far, through http://tinycorelinux.net/16.x/x86_64/tcz/src/xorg/:

xorg-server_fbdev.patch
xorg-server-21.1.16-tearfree_backport-1.patch

These and, supposedly, many others are already included in XLibre.

The xlibre xserver only concerns Xorg, not X11, xlib, etc.
Compiling wasn't hard:
Code: [Select]
wget -qO- https://github.com/X11Libre/xserver/archive/refs/tags/xlibre-xserver-25.0.0.7.tar.gz | tar -xz
cd xserver-xlibre-xserver-25.0.0.7/
mkdir build
cd build
CC="gcc -flto -mtune=generic -Os -pipe -fcommon" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti -fcommon" meson --prefix=/usr/local --sysconfdir=/etc --libexecdir=/usr/local/lib/xorg --buildtype=plain -Dsuid_wrapper=true -Dxkb_output_dir=/var/lib/xkb -Ddefault_font_path=/usr/local/lib/X11/fonts/misc,/usr/local/lib/X11/fonts/TTF,/usr/local/lib/X11/fonts/OTF,/usr/local/lib/X11/fonts/Type1,/usr/local/lib/X11/fonts/100pdi,/usr/local/lib/X11/fonts/75dpi -Dsha1=libcrypto -Dlog_dir=/var/log -Dsystemd_logind=false -Dglamor=true ../
sudo ninja install

However, I was unable to execute it successfully. It seems that it tries to run, the screen goes black, but nothing appears. Perhaps it is necessary to recompile the video drivers?
Title: Re: XLibre - a fork of Xorg
Post by: nick65go on August 02, 2025, 04:09:02 AM
For future TC17, the stop of Xorg development/patches maybe will force use of Xlibre  :P  to avoid Xorg "vulnerabilities" which A.I. will discover. This will be a challenge (I guess) because many applications in TC were focused to run Xvesa/Xfbdev/Xorg for smaller size storage/RAM gain. But Xlibre is not yet large tested (is work in progress) and corporate money will push Wayland development and the crowd of developers will develop for future wayland type apps (firefox, libreoffice, mpv, KDE).

Compatibility with (very) old structure could have the fate that DSL / Slax distro suffered.
Title: Re: XLibre - a fork of Xorg
Post by: Juanito on August 02, 2025, 04:49:03 AM
I wonder if it might make sense to keep Xvesa and Xfbdev, but drop the rest of x11 in favour of wayland.

With flwm-1.4 and labwc the tinycore flwm gui applets seems to work well in CorePure64.
Title: Re: XLibre - a fork of Xorg
Post by: Vaguiner on August 03, 2025, 03:04:09 PM
...wayland.

It looks promising. Without an NVIDIA graphics card, Wayland has become easier on TinyCore.
(https://files.catbox.moe/0o5818.png)

However, I find all the dependencies that are loaded hellish, not to mention being forced to load everything related to Xorg, when I could have a Wayland environment without Xorg. I think the Wayland-related packages could be restructured.
Title: Re: XLibre - a fork of Xorg
Post by: nick65go on August 04, 2025, 06:45:08 AM
Wayland without Xwayland (an extra layer to run X11 apps) is just a dream for now, because many applications still ask for X11 (ex: gnumeric). The difference between Xorg and X11 is that Xorg asks for all X11 dependencies PLUS its drivers (xf86* input/video) + its video firmware(<5-10MB). And some Xorg drivers (AMD/Nvidia) pull big size files (+ LLVM libs of 20-30MB).

Ex: if you just want a small distro (tinycore?) with only Firefox, then bad luck; it drags GTK3+deps, all X11 + video firmware + ffmpeg (for decode acceleration). Oh boy, the diff between TC/ AplineLinux and other (relative bloated) distro then becomes smaller and smaller; and if you then want some libreOffice or libreCAD or graphics/audio editing software then is game over.
Title: Re: XLibre - a fork of Xorg
Post by: Juanito on August 04, 2025, 06:52:19 AM
Wayland-only test versions were made for aarch64 and x86_64, see http://tinycorelinux.net/15w.x/

Anything that used gtk3 or gtk4 should work without any x11 libs, but I seem to recall that one or two apps had direct deps rather than via gtk3/4.
Title: Re: XLibre - a fork of Xorg
Post by: nick65go on August 04, 2025, 07:09:48 AM
"Anything that used gtk3 or gtk4 should work without any x11 libs".
Thanks Juanito! this is news for me, I am still learning (sometime bad/wrong things, it seams) using official docs (which is misleading if they are old).
Title: Re: XLibre - a fork of Xorg
Post by: Vaguiner on August 04, 2025, 10:27:29 AM
Wayland-only test versions were made for aarch64 and x86_64, see http://tinycorelinux.net/15w.x/
Hello, Juanito. This is exactly what I need right now. Is there any chance of updating to 16.1? In addition, taking advantage of this shipment, please consider using -O2 -s instead of -Os, as it is extremely beneficial for x64.
Title: Re: XLibre - a fork of Xorg
Post by: Juanito on August 04, 2025, 11:44:01 AM
"Anything that used gtk3 or gtk4 should work without any x11 libs".

Note that I’m referring to the Wayland-only versions of gtk3/4 in the test repos.
Title: Re: XLibre - a fork of Xorg
Post by: Juanito on August 04, 2025, 11:46:52 AM
This is exactly what I need right now. Is there any chance of updating to 16.1? In addition, taking advantage of this shipment, please consider using -O2 -s instead of -Os, as it is extremely beneficial for x64.

Maybe you could try the 15w.x version first to see if you like it (labwc-config will set up the tinycore menus)?
Title: Re: XLibre - a fork of Xorg
Post by: Vaguiner on August 04, 2025, 02:33:59 PM
This is exactly what I need right now. Is there any chance of updating to 16.1? In addition, taking advantage of this shipment, please consider using -O2 -s instead of -Os, as it is extremely beneficial for x64.

Maybe you could try the 15w.x version first to see if you like it (labwc-config will set up the tinycore menus)?

Worked: Firefox

I couldn't run any terminal.
Foot says: err: main.c:436: setlocale() failed
Title: Re: XLibre - a fork of Xorg
Post by: Vaguiner on August 04, 2025, 03:12:54 PM

Foot says: err: main.c:436: setlocale() failed

Loaded mylocale, etc. But still:
Code: [Select]
locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
Title: Re: XLibre - a fork of Xorg
Post by: Juanito on August 04, 2025, 03:26:01 PM
I couldn't run any terminal.

Did you try havoc?
Title: Re: XLibre - a fork of Xorg
Post by: GNUser on August 04, 2025, 04:02:04 PM
Loaded mylocale, etc. But still:
Code: [Select]
locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
Hi Vaguiner. A UTF-8 locale is required for  foot  to work, as stated in its  .info  file. It seems your locale is not correctly configured. You need to see something along these lines:

Code: [Select]
$ locale -a
C
en_US.utf8
POSIX

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Once your locale is set correctly,  foot  should work. I use foot 1.21.0 in TCL16 x86_64 as my daily driver without issues.
Title: Re: XLibre - a fork of Xorg
Post by: Vaguiner on August 04, 2025, 04:05:45 PM
Did you try havoc?

Got it
(https://files.catbox.moe/r813xa.png)

The whole thing feels more elegant, smooth, and responsive. Definitely a good thing.
Title: Re: XLibre - a fork of Xorg
Post by: Vaguiner on August 04, 2025, 05:19:06 PM
Everything works as it should, so it's probably close to perfect. Heh, who would have thought that TinyCore, such a conservative and tinysystem, would now be one of the first to be able to run Wayland only?
(https://files.catbox.moe/t3rhaq.png)


Thanks, I'll keep that in mind. However, although very tempting, it's not feasible for me to stay on 15w.x with so many extensions that have already been updated on 16.x.

btw my onboot is like this:
Code: [Select]
mylocale.tcz
firmware-i915.tcz
havoc
labwc
firmware-atheros
firmware-iwlwifi
wireless_tools
wifi
nano
file
Xorg-fonts

Took me some time to realize that labwc was refusing to spawn because of missing extension Xorg-fonts

I also have no idea how to change the keyboard layout. In dwl, it's easier to do it through the source code.
"file" is missing by nano
Title: Re: XLibre - a fork of Xorg
Post by: GNUser on August 04, 2025, 06:05:55 PM
I also have no idea how to change the keyboard layout.
In labwc it's done through environment variables, which you define in ~/.config/labwc/environment

I like US standard layout as default, with ability to switch to US international layout by pressing Shift+CapsLock. So, as an example, this is what my ~/.config/labwc/environment looks like:

Code: [Select]
$ cat ~/.config/labwc/environment
XKB_DEFAULT_LAYOUT=us,us(intl)
XKB_DEFAULT_OPTIONS=grp:shift_caps_toggle
XCURSOR_THEME=Bibata-Original-Ice
XCURSOR_SIZE=24

More details here:
https://github.com/labwc/labwc/blob/master/docs/environment
https://labwc.github.io/labwc-config.5.html#environment_variables
Title: Re: XLibre - a fork of Xorg
Post by: nick65go on August 05, 2025, 04:02:14 AM
It will be nice if this will evolve in a TC wiki specifically dedicated to Wayland and its application.
Maybe short tips of what config to load, what options are for menu, terminal, keyboard, panel, taskbar etc.

They can be in each .info files, but centralized in a wiki page could be better (even if just concatenate of copy/paste *.info).
And maybe some links to developer source/docs for people who want to spend time to read the fine tune ups. (as GNUser already started listing few).
Title: Re: XLibre - a fork of Xorg
Post by: Rich on August 05, 2025, 07:29:32 AM
Hi nick65go
It will be nice if this will evolve in a TC wiki specifically dedicated to Wayland and its application. ...
Thank you for volunteering, and congratulations, you've been promoted to Wiki Author.

Title: Re: XLibre - a fork of Xorg
Post by: GNUser on August 05, 2025, 09:44:18 AM
what options are for menu, terminal, keyboard, panel, taskbar etc.
Hi nick65go. If you are using a wlroots-based compositor such as sway or labwc, here is a helpful list of options:

https://github.com/solarkraft/awesome-wlroots
Title: Re: XLibre - a fork of Xorg
Post by: nick65go on August 06, 2025, 05:28:21 AM
Hi nick65go
Thank you for volunteering, and congratulations, you've been promoted to Wiki Author.
@Rich: Thank you for your trust and your over-estimating of my skills  :) 
I am still on CachyOS with KDE (Kwin windows manager). But I will prepare something offline and message you when is suitable (after testing my findings) and when time will allow me to focus more on TC. Tiny-core still remains for me a nice project to promote and survive.
FYI: Until now, I never wrote any wiki articles and my English is not native. It could become embarrassing to me.