Skip to content

sd_pid_get_user_unit started returning incorrect values in systemd v259-rc2 #39949

@NTMan

Description

@NTMan

What happened

Starting with v259-rc2 (and the current main branch), the XWayland server no longer receives the Xft.dpi (and related) resources that were previously populated by udev.

As a result, every single X11/XWayland application renders at exactly 96 dpi / 100% scale on HiDPI displays, regardless of the compositor scaling settings (200%, 150%, etc.).

This instantly breaks Steam, Discord, Zoom, Slack, VS Code, all JetBrains tools, Firefox (when not forced to Wayland), Wine, Electron apps, etc. on all Wayland compositors that use rootful or rootless XWayland (GNOME/Mutter, KDE/KWin, sway/wlroots-based, Hyprland, etc.).

Hard evidence

systemd v258.2-1 (working, 200% scaling):

$ xrdb -query | grep Xft.dpi
Xft.dpi: 192

systemd v259-rc2 (broken):

$ xrdb -query | grep Xft.dpi
<no output — the resource is completely missing>

Regression window

  • systemd v258 → works perfectly
  • systemd v259-rc2 → completely broken

Reproduction (minimal)

  1. Any Linux distribution with systemd v259-rc2 or newer (e.g., Fedora Rawhide)
  2. Wayland session (GNOME, KDE, sway, anything)
  3. Set display scaling ≠ 100% in the compositor
  4. Launch Steam or any X11 application
  5. Run xrdb -query | grep Xft.dpi → empty

Environment

  • Distribution: Fedora Rawhide (as of November 30, 2025)
  • Compositor: GNOME on Wayland
  • Display: HiDPI (e.g., 3840×2160)
  • Kernel: 6.18-rc7
  • Hardware: x86_64

Workarounds (temporary)

  • Downgrade systemd to v258

Downstream report

https://bugzilla.redhat.com/show_bug.cgi?id=2417768

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Programming errors, that need preferential fixingregression ⚠️A bug in something that used to work correctly and broke through some recent commit

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions