Page MenuHomeFreeBSD

evdev: several minor fixes and improvements
ClosedPublic

Authored by wulf on Oct 14 2017, 8:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 18 2024, 10:21 AM
Unknown Object (File)
Oct 1 2024, 10:40 AM
Unknown Object (File)
Sep 30 2024, 6:29 PM
Unknown Object (File)
Sep 26 2024, 6:00 PM
Unknown Object (File)
Sep 25 2024, 8:20 AM
Unknown Object (File)
Sep 22 2024, 1:29 AM
Unknown Object (File)
Sep 21 2024, 12:08 PM
Unknown Object (File)
Sep 19 2024, 10:36 AM
Subscribers

Details

Summary

1.Hide "kern.evdev.rcpt_mask" sysctl if kernel is compiled w/o EVDEV_SUPPORT

It can be used for discovery if evdev support for hybrid devices is compiled
into kernel or not. Hide "kern.evdev.sysmouse_t_axis" sysctl as well.
  1. Lock Giant around keyboard ioctls This fixes turning ukbd(4) LEDs on/off with evdev interface as well
  2. Take driver's lock in cdev write handler if necessary
  3. Fixes to ums-style sysmouse(4) T-axis support Do not report T-axis wheel as button presses Reverse T-axis to match Linux Remove wrong comment
  4. Disable value normalization and state filtering for SND events. Some events can take sound pitch as a value so can not be represented as binary on/off events. Tracking for on/off state is left in place as it is a part of the evdev API.
  5. Do not start/stop softrepeat callout if no clients attached.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Unfortunately, phabricator hangs if I try to upload full-context diff, so standard 3-line context diff is uploaded.

This revision is now accepted and ready to land.Nov 1 2017, 7:35 PM
This revision was automatically updated to reflect the committed changes.