Repository navigation
Fixing Barrier on Debian 13 / antiX-26: Two Real Bugs (and One Red Herring) #2140
FurryShaoDe
started this conversation in
General
Replies: 1 comment
|
Barrier is no longer in development. Check out Deskflow (upstream) or Input Leap (fork). https://github.com/deskflow/deskflow If this is still an issue in those projects, we would appreciate a cross-post of this issue. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Environment: Samsung NC10 netbook (Atom N270, 2 GB RAM, 32-bit) running antiX-26 (Debian 13 "Trixie", IceWM + zzzfm desktop), controlled by a Win11 machine acting as the Barrier server. Barrier v2.4.0 compiled from source (GCC 14 requires
-DCMAKE_CXX_STANDARD=17and patching missing#include <cstdint>).Red herring: disabling screen saver sync "fixed" it
On first connect, the NC10 session would crash back to the login screen within seconds. Disabling "Synchronize screen savers" in the Barrier server settings appeared to stop the crash temporarily. I logged it as "Bug #1."
Later, after applying the real fix below, I re-enabled screen saver sync, clipboard sharing, and drag-and-drop — all three — and nothing crashed. Disabling screen saver sync was never a fix; it simply altered event timing enough that the Xorg null-pointer dereference didn't fire immediately. If you're debugging a similar issue: skip the screen saver setting entirely and go straight to the real cause.
Bug 1 (root cause): Xorg segfault when mouse enters the client screen
Symptom
The connection establishes fine, but the moment the mouse cursor crosses from Win11 onto the NC10 screen, the NC10 session terminates entirely — screen goes black, then lands on the slim login prompt. All windows are gone; it's a full session kill, not a screen lock.
Diagnosis
On the NC10, check the previous Xorg log:
The smoking gun:
This is not IceWM or zzzfm crashing — it is Xorg itself dying with a null-pointer dereference inside
libpciaccess.Root cause chain
pci_device_vgaarb_set_target()to arbitrate VGA resources.libpciaccess, the globalpci_syspointer isNULL.pci_sys->memberat offset0x1c→ SIGSEGV.desktop-sessiondetects the dead components → session ends → slim login prompt.This bug matches Debian Bug #1140338 (libpciaccess vgaarb null-pointer checks missing on Trixie with rootless Xorg).
Fix
Create
/etc/X11/xorg.conf.d/90-nodpms.confto disable DPMS entirely at the Xorg level. No recompilation needed.Log out and back in (no reboot required). Reconnect Barrier and test.
Verification after the fix
After applying
90-nodpms.conf, I re-enabled all Barrier features — screen saver sync, clipboard sharing, and drag-and-drop — and the Xorg crash never returned. This confirms that the DPMS path was the sole root cause.Bug 2: Mouse stuck at the bottom-right corner after crossing screens
Symptom
With the Xorg crash fixed, the mouse now successfully enters the NC10 screen — but immediately freezes at the bottom-right corner. Clicks still work, but the cursor won't move.
Root cause
This is a known Barrier v2.4.0 HiDPI bug (GitHub #1638). If the Win11 server machine has display scaling set above 100 % (common on laptop screens: 125 %, 150 %), the Barrier server reads logical coordinates instead of physical pixel coordinates. The coordinates are multiplied by the scaling factor, mapping far outside the NC10's 1024 × 600 screen. X11 clamps the out-of-bounds coordinates to the corner.
Fix (on the Win11 server machine)
barriers.exe— note the trailings; this is the server process, notbarrier.exe(the GUI launcher).Summary
Applicability: If you run any Debian 13/Trixie derivative (antiX, MX Linux, etc.) with an older Intel iGPU and rootless Xorg, the
90-nodpms.conffix is very likely to apply to your setup as well.All reactions