Bug 271824 - x11-wm/mutter: enable evdev/udev support
Summary: x11-wm/mutter: enable evdev/udev support
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords: feature
Depends on:
Blocks:
 
Reported: 2023-06-04 19:58 UTC by Jan Beich
Modified: 2023-07-07 15:35 UTC (History)
3 users (show)

See Also:
vishwin: maintainer-feedback+


Attachments
v1 (apply via "git am") (6.43 KB, patch)
2023-06-04 19:58 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2023-06-04 19:58:26 UTC
Created attachment 242596 [details]
v1 (apply via "git am")

FreeBSD (unlike OpenBSD) supports evdev and libgudev. Xorg on FreeBSD already uses evdev via xf86-input-libinput.

Disclaimer: I don't use GNOME and Xorg, so runtime is untested.
Comment 1 Charlie Li freebsd_committer freebsd_triage 2023-06-05 13:28:53 UTC
(setting maintainer-feedback solely to avoid timeout)

Based on experiences with muffin, even though a fork from an older version, udev support is dodgy at best. This should be an option that is not enabled by default and explicitly marked experimental, given the state of base and supporting port(s) in this area.
Comment 2 Olivier Duchateau 2023-06-24 16:35:37 UTC
Tested with Xorg and the Pantheon desktop (using x11 as GDK backend).

Mutter reports only warnings about my USB mouse (in fact it is related to libinput), otherwise nothing particular.
Comment 3 Olivier Duchateau 2023-06-24 16:39:11 UTC
With this desktop I use mutter 43.6 (I'll test it, with GNOME 44 and mutter 44.2).
Comment 4 Jan Beich freebsd_committer freebsd_triage 2023-06-25 11:00:35 UTC
(In reply to Charlie Li from comment #1)
> given the state of base and supporting port(s) in this area.

Xorg defaults to udev/evdev since ports 4b9c697c260c but X11 itself is agnostic. On Wayland udev/evdev is not required by the protocol but "de facto" mandatory to avoid writing syscons backend (vt(4) uses syscons uAPI) on DragonFly + FreeBSD or wscons backend on NetBSD + OpenBSD for everything input-related.

Otherwise, I have no clue what you mean. To avoid udev/evdev on FreeBSD one has either to rebuild xorg-server with UDEV disabled and use xf86-input-{mouse,keyboard) or run DE like GNOME/X11 under Xwin or Xquartz via "ssh -X".

(In reply to Olivier Duchateau from comment #2)
> Mutter reports only warnings about my USB mouse

Looking at Mutter/X11 code:
- udev is limited to distinguishing mouse from touchpad
- evdev is used to translate pointer buttons between Xorg and *nested* "mutter --wayland" (bug 258042)

Thanks for testing i.e., confirming no X11 regressions.
Comment 5 Olivier Duchateau 2023-07-07 15:35:59 UTC
Patch tested with the latest stable release (44.3) of Mutter and GNOME shell (44.3) under X11 session, no observed regressions.

I also use the patch from bug# 271823