XLibre XServer 25.2 发布

Lobsters Hottest 工具

摘要

社区管理的 X Window System 显示服务器 XLibre XServer 25.2 已发布,默认启用 TearFree 模式设置,支持 Nvidia 驱动程序,并通过 seatd 进行席位管理。

<p><a href="https://lobste.rs/s/vpe3o6/xlibre_xserver_25_2_released">评论</a></p>
查看原文
查看缓存全文

缓存时间: 2026/06/20 14:35

X11Libre/xserver 源代码: https://github.com/X11Libre/xserver

XLibre Xserver

XLibre Xserver 是由社区管理的显示服务器,用于 X Window 系统核心协议版本 11(维基百科)(https://en.wikipedia.org/wiki/X_Window_System_core_protocol),简称 X11。

XLibre 一周年。在此查看更多解放的屏幕。

精选特性

  • X.Org Server(https://en.wikipedia.org/wiki/X.Org_Server)的所有优点,包括其未发布的功能
  • 默认启用 TearFree modesetting(https://github.com/X11Libre/xserver/commit/0dacee6c5149b63a563e9bed63502da2e9f1ac1f),并可选启用 atomic modesetting(https://github.com/X11Libre/xserver/commit/461411c798c263f70daa96f7136614dfefda6adc)
  • 支持 Nvidia 驱动程序 340、390、470、570 及更新版本
  • Xnamespace 扩展(https://github.com/X11Libre/xserver/blob/master/doc/Xnamespace.md)用于隔离 X 客户端
  • 支持通过 seatd(https://sr.ht/~kennylevinsen/seatd)和 systemd-logind(https://www.freedesktop.org/software/systemd/man/latest/systemd-logind.service.html)进行 seat 管理
  • Xfbdev(https://github.com/X11Libre/xserver/tree/master/hw/kdrive),Linux 的通用帧缓冲 Xserver
  • 针对多个 BSD、Linux、macOS 和 Microsoft Windows 的 CI 构建
  • 活跃的社区,基于贡献的清理、修复和开发

要了解更多关于 XLibre 的特性和使命,请访问我们的主页(https://xlibre.net)。

切换到 XLibre

安装和运行 XLibre 最简单的方法是使用您的发行版提供的软件包。请参阅 Are We XLibre Yet? - (X11Libre/xserver Wiki)(https://github.com/X11Libre/xserver/wiki/Are-We-XLibre-Yet%3F)页面以获取可用选项列表。如果没有可用选项,则继续从源码构建和安装 XLibre。

构建 XLibre

在克隆 Xserver 仓库(https://github.com/X11Libre/xserver.git)或解压源码并安装依赖项后,进入源码目录并运行 Meson(https://mesonbuild.com)构建工具:

cd <source_dir>
meson setup build
ninja -C build install

您可以通过例如 --prefix="$(pwd)/image" 来指定安装 <prefix>,并通过类似 -Dxnest=false 的方式添加构建时选项 <option>(https://github.com/X11Libre/xserver/blob/master/meson_options.txt)。

您可能还想构建和安装一些图形和输入驱动程序。请参阅 Building XLibre (X11Libre/xserver Wiki)(https://github.com/X11Libre/xserver/wiki/Building-XLibre)页面了解更多详情。

配置 XLibre

在 XLibre 发布自己的配置工具之前,您可以在 Configuration - Xorg (ArchWiki)(https://wiki.archlinux.org/title/Xorg#Configuration)页面上找到详细的配置说明。

如果您自行构建并安装了 XLibre,请使用 cd <prefix> 进入 <prefix> 目录,创建一个 etc/X11 目录,并在其中添加一个 xorg.conf 文件,然后进行相应调整。

从版本 25.0.0.16 开始,专有 Nvidia 驱动程序会自动检测并在内部处理,无需特殊配置。

请参阅 Compatibility of XLibre (X11Libre/xserver Wiki)(https://github.com/X11Libre/xserver/wiki/Compatibility-of-XLibre)页面,了解关于 Nvidia 驱动(https://github.com/X11Libre/xserver/wiki/Compatibility-of-XLibre#nvidia-proprietary-driver)和兼容性的更多详情。

运行 XLibre

如果您通过发行版提供的软件包安装了 XLibre,那么 Xserver 通常会在系统启动时由 init(Wikipedia)(https://en.wikipedia.org/wiki/Init)启动。

在其他系统上,应可通过调用 startx 以用户权限手动启动 XLibre。

请参阅 man startx(https://linux.die.net/man/1/startx)了解如何使用。

如果您自行构建并安装了 XLibre,则可能需要关闭其他 Xserver,进入 <prefix> 目录,并创建一个包含以下内容的简单 testx.sh 文件:

#!/bin/sh
./bin/X :1 vt8 -logfile /dev/stdout &
_pid=$!
sleep 10 && kill $_pid

您可以根据 man Xorg(https://linux.die.net/man/1/xorg)中的详细说明,调整 testx.sh 文件中的 :1 vt8 及其他选项。

使 testx.sh 可执行并运行它:

chmod 0770 testx.sh
./testx.sh

这应该会给你 10 秒美妙的黑色空屏。之后 Xserver 会抱怨被杀死,但对于“测试通过”来说,不应有其他严重错误。

更多详情,请参阅 Building XLibre (X11Libre/xserver Wiki)(https://github.com/X11Libre/xserver/wiki/Building-XLibre)。

我想帮忙!

太好了,每个人都有很多事可做。您可以考虑众多想法(新想法(https://github.com/orgs/X11Libre/discussions/categories/1-new-ideas)、核心团队 RFC(https://github.com/orgs/X11Libre/discussions/categories/2-rfcs-of-the-core-team)、即将处理的想法(https://github.com/orgs/X11Libre/discussions/categories/3-ideas-soon-to-be-addressed))和功能请求(https://github.com/X11Libre/xserver/issues?q=is%3Aissue%20state%3Aopen%20label%3Aenhancement)中的一个。

为了帮助测试,您可以考虑成为 XLibre 测试驱动者(https://github.com/X11Libre/xserver/wiki/XLibre-Test-Drivers)。

也请关注 good first(https://github.com/X11Libre/xserver/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22good%20first%20issue%22)和 help wanted(https://github.com/X11Libre/xserver/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22help%20wanted%22)问题以及 Liberated Screens(https://github.com/orgs/X11Libre/discussions/211)。

如果您想参与任何工作,请告诉我们。如有任何疑问,请直接提问(https://github.com/orgs/X11Libre/discussions/categories/q-a)。谢谢!

联系方式

GitHub 上的 XLibre 讨论(https://github.com/orgs/X11Libre/discussions) | FreeLists 上的 XLibre 邮件列表(https://www.freelists.org/list/xlibre) | Telegram 上的 @x11dev 频道(https://t.me/x11dev) | Matrix 上的 #xlibredev 空间(https://matrix.to/#/#xlibredev:matrix.org) | GitHub 上的 XLibre 安全联系(https://github.com/X11Libre/xserver/security/policy)

相似文章

Xfwl4 的首个预览版发布

Lobsters Hottest

Brian Tarricone 宣布推出 xfwl4 的首个预览版,这是 Xfce 的 Wayland 合成器,经过了六个月的工作,详细说明了已知缺失的功能和未来计划。

yserver: 一个用Rust从头编写的现代X11服务器

Lobsters Hottest

yserver是一个用Rust从头编写的现代X11服务器,能够运行MATE、XFCE和Cinnamon等完整的桌面环境,同时去掉了遗留的负担。它支持多种X扩展,并已在多种硬件上测试过。

NixOS 26.05 发布

Lobsters Hottest

NixOS 26.05 'Yarara' 发布,特性包括 initrd 中的 systemd、GNOME 50、弃用 x86_64-darwin,以及数千个软件包更新。

笔记本电脑上的 FreeBSD 15

Lobsters Hottest

作者分享了他们在笔记本电脑上使用 FreeBSD 15 的积极体验,重点介绍了 pkgbase、LinuxKPI 驱动程序和笔记本电脑支持项目等改进,并提供了在 ThinkPad X1 Carbon 上安装和配置 KDE Plasma 6 的分步指南。