Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmbootstrap
Commits
4deb9206
Commit
4deb9206
authored
6 years ago
by
Klaus
Committed by
Oliver Smith
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
samsung-gts210vewifi: make touchscreen work (#1516)
parent
3775b184
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aports/device/device-samsung-gts210vewifi/90-sec_touchscreen.rules
+18
-0
18 additions, 0 deletions
...vice/device-samsung-gts210vewifi/90-sec_touchscreen.rules
aports/device/device-samsung-gts210vewifi/APKBUILD
+7
-3
7 additions, 3 deletions
aports/device/device-samsung-gts210vewifi/APKBUILD
with
25 additions
and
3 deletions
aports/device/device-samsung-gts210vewifi/90-sec_touchscreen.rules
0 → 100644
+
18
−
0
View file @
4deb9206
# * need ATTRS{name}=="sec_touchscreen" else device not detected as touchscreen
# * give size hint (in mm) otherwise too small size is assumed
# * to avoid palm detection, need LIBINPUT_ATTR_PALM_PRESSURE_THRESHOLD=256
# and libinput>1.10
# * set calibration matrix for 270 degree clockwise rotation, see [1]
# * remove TOUCHPAD, add TOUCHSCREEN to ensure that device is seen as
# touchscreen only, see [2]
#
# [1] https://wayland.freedesktop.org/libinput/doc/latest/udev_config.html
# [2] https://wayland.freedesktop.org/libinput/doc/latest/udev_config.html#udev_device_type
#
ACTION=="add|change", SUBSYSTEM=="input", ATTRS{name}=="sec_touchscreen", \
ENV{LIBINPUT_ATTR_SIZE_HINT}="190x140", \
ENV{LIBINPUT_ATTR_PALM_PRESSURE_THRESHOLD}="256", \
ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1", \
ENV{ID_INPUT}="1", \
ENV{ID_INPUT_TOUCHPAD}="", \
ENV{ID_INPUT_TOUCHSCREEN}="1"
This diff is collapsed.
Click to expand it.
aports/device/device-samsung-gts210vewifi/APKBUILD
+
7
−
3
View file @
4deb9206
...
...
@@ -2,14 +2,14 @@
pkgname
=
"device-samsung-gts210vewifi"
pkgdesc
=
"Galaxy Tab S2 9.7 WiFi (SM-T813)"
pkgver
=
0.1
pkgrel
=
0
pkgrel
=
1
url
=
"https://postmarketos.org"
license
=
"MIT"
arch
=
"noarch"
options
=
"!check"
depends
=
"postmarketos-base linux-samsung-gts210vewifi mkbootimg mesa-dri-swrast mdss-fb-init-hack"
makedepends
=
"devicepkg-dev"
source
=
"deviceinfo"
source
=
"deviceinfo
90-sec_touchscreen.rules
"
build
()
{
devicepkg_build
$startdir
$pkgname
...
...
@@ -17,6 +17,10 @@ build() {
package
()
{
devicepkg_package
$startdir
$pkgname
install
-D
-m644
"
$srcdir
"
/90-sec_touchscreen.rules
\
"
$pkgdir
"
/etc/udev/rules.d/90-sec_touchscreen.rules
}
sha512sums
=
"bc4d64b148fb1039782af73bf931b77970d6b81e3a61459bbdfa11f6f9edecc1a0753d1fe15ec4b2bd9ff61b08b1c764e760847bdf4947d542efff7f4089fbf3 deviceinfo"
sha512sums
=
"bc4d64b148fb1039782af73bf931b77970d6b81e3a61459bbdfa11f6f9edecc1a0753d1fe15ec4b2bd9ff61b08b1c764e760847bdf4947d542efff7f4089fbf3 deviceinfo
7ff1ca9e9afe4ffa62ed1ce54c9988d761c29af54c9a22f68b1b7d805a5ae280fcfc1833fb657bb1137de649c876a1d4f4592af6b323e883042e0f1aa3a554cc 90-sec_touchscreen.rules"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment