Bug 241867 - x11/libinput: document common quirks
Summary: x11/libinput: document common quirks
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
Keywords: buildisok, needs-qa
Depends on:
Reported: 2019-11-10 22:09 UTC by Jan Beich
Modified: 2020-03-01 15:17 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (x11)

v0 (non-verbose) (892 bytes, patch)
2019-11-10 22:09 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 2019-11-10 22:09:26 UTC
Created attachment 209044 [details]
v0 (non-verbose)

libinput is a common entry point for running Wayland- and some KMS-based compositors. As FreeBSD defaults are not adjusted for the average user how to get started is confusing.

For one, running x11-wm/sway doesn't require extra steps compared to any other Wayland compositor.
Comment 1 Jan Beich freebsd_committer 2019-11-10 22:40:32 UTC
Comment on attachment 209044 [details]
v0 (non-verbose)

> - For arrow keys to work export XKB_DEFAULT_RULES=evdev via environ(7)

"setxkbmap -rules evdev" in xf86-input-libinput case. Compositor-specific way to do the same would be "input * xkb_rules evdev" in ~/.sway/config or Option "XkbRules" "evdev" in xorg.conf(5).
Comment 2 Automation User 2019-11-25 04:55:10 UTC
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/98217011
Comment 3 Emmanuel Vadot freebsd_committer 2020-02-17 17:20:43 UTC
Comment 4 Jan Beich freebsd_committer 2020-03-01 15:17:43 UTC
Comment on attachment 209044 [details]
v0 (non-verbose)

> +- If mouse/keyboard events are wanted build kernel with EVDEV_SUPPORT

Only affects FreeBSD 11, see base r340695.

> +- Make sure /dev/input/* are accessible by user or "video" group

Only affects FreeBSD 11, see base r344983.

> +- For arrow keys to work export XKB_DEFAULT_RULES=evdev via environ(7)

To be fixed by review D23860.

> +- For non-multiplexed events set sysctl kern.evdev.rcpt_mask=12

Partially documented in ports r526589, the rest will likely be in a separate wiki article.