Firmware of Silead Touchscreen Controller for Jumper EZpad 6 Pro.
Révision | bfa61b3e64b55f7eec225461dec1113b225ea642 (tree) |
---|---|
l'heure | 2019-04-08 06:16:53 |
Auteur | Van Laser <gabi_laser@yaho...> |
Commiter | Gregor Riepl |
adjust to *normal* screen orientation (xrandr, sensor)
@@ -1,39 +0,0 @@ | ||
1 | -#!/bin/bash | |
2 | - | |
3 | -# NOTE: this is a 2-in-1 laptop (detachable keyboard) | |
4 | -# The following script can be used with 'monitor-sensor' in order to | |
5 | -# automatically rotate the tablet *and* calibrate both touchscreen and | |
6 | -# touchpad input (if keyboard is connected) | |
7 | - | |
8 | -TOUCHPAD="SIPODEV USB Composite Device Mouse" | |
9 | - | |
10 | -# with gslx680_ts_acpi driver: | |
11 | -#TOUCHSCREEN="Silead GSLx680 Touchscreen" | |
12 | -# with silead_ts driver: | |
13 | -TOUCHSCREEN="pointer:silead_ts" | |
14 | - | |
15 | -stdbuf -oL monitor-sensor | | |
16 | - while IFS= read -r line; do | |
17 | - if [ -z "${line##*right*}" ]; then | |
18 | - xrandr -o left | |
19 | - xinput set-prop "$TOUCHPAD" --type=float "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1 | |
20 | - xinput set-prop "$TOUCHSCREEN" --type=float "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1 | |
21 | - fi | |
22 | - if [ -z "${line##*normal*}" ]; then | |
23 | - xrandr -o normal | |
24 | - xinput set-prop "$TOUCHPAD" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1 | |
25 | - xinput set-prop "$TOUCHSCREEN" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1 | |
26 | - fi | |
27 | - if [ -z "${line##*left*}" ]; then | |
28 | - xrandr -o right | |
29 | - xinput set-prop "$TOUCHPAD" --type=float "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1 | |
30 | - xinput set-prop "$TOUCHSCREEN" --type=float "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1 | |
31 | - fi | |
32 | - if [ -z "${line##*bottom*}" ]; then | |
33 | - xrandr -o inverted | |
34 | - xinput set-prop "$TOUCHPAD" --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1 | |
35 | - xinput set-prop "$TOUCHSCREEN" --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1 | |
36 | - fi | |
37 | - xrandr --dpi 96 | |
38 | - done | |
39 | - |
@@ -6,8 +6,11 @@ | ||
6 | 6 | # rename the result |
7 | 7 | mv firmware_00.fw firmware.fw |
8 | 8 | |
9 | -# align with touchpad orientation | |
10 | -../../../tools/fwtool -c firmware.fw -m 1680 -w 1720 -h 1140 -f track,yflip -t 10 silead_ts.fw | |
9 | +# create copy for silead driver | |
10 | +cp firmware.fw gsl1680-myria-my8307.fw | |
11 | + | |
12 | +# align with normal (xrandr, sensor) orientation | |
13 | +../../../tools/fwtool -c firmware.fw -m 1680 -h 1720 -w 1140 -f track,xflip,yflip,swap -t 10 silead_ts.fw | |
11 | 14 | |
12 | 15 | ## when used with gslx680_ts_acpi module: |
13 | 16 | #sudo rmmod gslx680_ts_acpi |