Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip "legacy" devices if EVDEV is enabled #5

Conversation

dumbbell
Copy link
Member

No description provided.

udev-utils.c Outdated
if (enabled != -1)
return (enabled);

if (sysctlbyname("kern.features.evdev", &enabled, &len, NULL, 0) < 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think sysctl's name should be kern.features.evdev_support
kern.features.evdev sysctl appears if evdev.ko is kld-loaded or compiled-in.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thanks, I didn't know the difference between the two.

When EVDEV is enabled in the kernel, devices are exposed twice:
* once through EVDEV (`/dev/input/event*`)
* once through a device-specific driver (e.g. `/dev/atkbd*`)

Users probably want a single one to be exposed and detected. Otherwise,
they may need more rules in xorg.conf(5) to "blacklist" duplicates.

So if EVDEV is enabled, we assume in libudev-devd that they want to use
the EVDEV devices, not the "legacy" ones. This simplifies the
input devices configuration.

Note that this doesn't prevent the "conflict" between individual devices
and multiplexers (kbdmux(8) and sysmouse(8)).
Mostly, they had trailing spaces.
@dumbbell dumbbell force-pushed the ignore-legacy-devices-if-evdev-is-enabled branch from 58fb699 to cde3c67 Compare April 29, 2018 13:19
@dumbbell
Copy link
Member Author

dumbbell commented May 4, 2018

Any comments on the patch? I believe it would help to move forward with the X.Org server update to 1.19.

@johalun johalun merged commit f7872e3 into FreeBSDDesktop:master May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants