Page MenuHomeFreeBSD

psm(4), evdev support part 3: EVDEV support itself
ClosedPublic

Authored by wulf_cicgroup.ru on Apr 3 2017, 10:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 7 2024, 5:54 AM
Unknown Object (File)
Dec 27 2023, 6:52 PM
Unknown Object (File)
Dec 27 2023, 6:52 PM
Unknown Object (File)
Dec 23 2023, 2:11 PM
Unknown Object (File)
Dec 20 2023, 2:08 AM
Unknown Object (File)
Dec 12 2023, 4:29 PM
Unknown Object (File)
Nov 11 2023, 6:03 PM
Unknown Object (File)
Nov 11 2023, 9:02 AM

Details

Summary

Add EVDEV support to psm(4).

Both relative and absolute multitouch modes are supported.
Requires "options EVDEV_SUPPORT" in kernel config

Part of: https://reviews.freebsd.org/D10207

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I've added some inline comments about Linux device names, IDs and properties.
Here is a patch that I'm using on top of this series right now:

sys/dev/atkbdc/psm.c
923

This is now also used for the Evdev device names. Maybe it would be better to expose the same devices names as Linux does in a seperate function and use that for Evdev devices? Then, scripts that use those names would be compatible.

1663

This should probably be 0x0007 to match the value defined in psmouse.h from Linux.

1724

For a TrackPoint, "INPUT_PROP_POINTING_STICK" should also be set.

1813

This duplicates the MOUSE_MODEL_TRACKPOINT name from above.

Device names and product IDs of supported touchpads and trackpoints are updated to match Linux

Giant-locked version of the patch.
After some discussion with bde@ (on arch@ and private) it is turned out that nothing but Giant can be used to serialize access to I8042 ports currently.
This version obsoletes part1 and part2 and can be applied to unmodified CURRENT (and 11STABLE as well).

This revision is now accepted and ready to land.May 29 2017, 7:21 AM
This revision was automatically updated to reflect the committed changes.