• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Firmware of Silead Touchscreen Controller for Jumper EZpad 6 Pro.


Commit MetaInfo

修訂bfa61b3e64b55f7eec225461dec1113b225ea642 (tree)
時間2019-04-08 06:16:53
作者Van Laser <gabi_laser@yaho...>
CommiterGregor Riepl

Log Message

adjust to *normal* screen orientation (xrandr, sensor)

Change Summary

差異

--- a/firmware/myria/my8307/auto-rotate.sh
+++ /dev/null
@@ -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-
--- a/firmware/myria/my8307/convert.sh
+++ b/firmware/myria/my8307/convert.sh
@@ -6,8 +6,11 @@
66 # rename the result
77 mv firmware_00.fw firmware.fw
88
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
1114
1215 ## when used with gslx680_ts_acpi module:
1316 #sudo rmmod gslx680_ts_acpi
Binary files a/firmware/myria/my8307/silead_ts.fw and b/firmware/myria/my8307/silead_ts.fw differ