pmaports/device/device-samsung-n5110/90-device-samsung-n5110.rules
Michael Hamann 1622e2b075 New device: Samsung Galaxy Note 8.0 (WiFi) n5110 (#1219)
This port includes:
* Weston including touch and WiFi (using e.g. firmware-samsung-i9305) works.
* Touchscreen calibration for osk-sdl
* Sound configuration
* Udev rules for touch and pen, pen works!
2018-02-12 19:20:49 +00:00

21 lines
946 B
Text

# Configure the touch including calibration for wayland and x11
# Add the touch to a group so the pen can be added to the same group
# and then whenever the pen is recognized, regular touch is deactivated.
SUBSYSTEM=="input", ENV{DEVNAME}=="/dev/input/event2", \
ENV{WL_CALIBRATION}="0 1 0 -1 0 800", \
ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1", \
ENV{LIBINPUT_DEVICE_GROUP}="touchpen", \
ENV{ID_INPUT}="1", ENV{ID_INPUT_TOUCHSCREEN}="1"
# Configure the pen including calibration (for x11).
# Further, the resolution needs to be set.
# This could be in hwdb and calls the builtin "keyboard" from (e)udev
# that sets the internal "ABS" property.
# This "resolution" is units/mm.
SUBSYSTEM=="input", ENV{DEVNAME}=="/dev/input/event10", \
ENV{ID_INPUT_TABLET}="1", \
ENV{LIBINPUT_DEVICE_GROUP}="touchpen", \
ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1", \
ENV{EVDEV_ABS_00}="::100", \
ENV{EVDEV_ABS_01}="::100", \
RUN{builtin}+="keyboard"