-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1227 from siiky/fix/lam-1230/cc-rotate-screens
LAM-1230 fix: `calibrate-screen.sh`
- Loading branch information
Showing
26 changed files
with
578 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
#!/usr/bin/env sh | ||
xrandr -o left # normal, inverted, left, right | ||
identityMat='1 0 0 0 1 0 0 0 1' | ||
leftRotateMat='0 -1 1 1 0 0 0 0 1' | ||
rightRotateMat='0 1 0 -1 0 1 0 0 1' | ||
xinput set-prop 'ILITEK ILITEK-TP' --type=float 'Coordinate Transformation Matrix' $leftRotateMat | ||
xset s off | ||
xset s noblank | ||
xset -dpms | ||
set -e | ||
|
||
### CHANGE CONFIGURATION AT THE END OF THE FILE ### | ||
|
||
configure_screen() { | ||
local rotation="$1" | ||
case "${rotation}" in | ||
normal) touchRotation='1 0 0 0 1 0 0 0 1';; | ||
left) touchRotation='0 -1 1 1 0 0 0 0 1';; | ||
right) touchRotation='0 1 0 -1 0 1 0 0 1';; | ||
*) echo "Unknown rotation '${rotation}'..."; exit 1;; | ||
esac | ||
screenRotation="${rotation}" | ||
|
||
xrandr -o "${screenRotation}" \ | ||
&& xset s off \ | ||
&& xset s noblank \ | ||
&& xset -dpms | ||
} | ||
|
||
configure_touch() { | ||
local screen="$1" | ||
xinput set-prop "${screen}" --type=float 'Coordinate Transformation Matrix' $touchRotation | ||
} | ||
|
||
### CHANGE CONFIGURATION BELOW TO MATCH THE CONNECTED SCREEN ### | ||
|
||
# One of: normal, left, right | ||
configure_screen left | ||
# Find the screen name under "Virtual core pointer" of the following command: | ||
# xinput list | ||
configure_touch 'ILITEK ILITEK-TP' |
10 changes: 0 additions & 10 deletions
10
hardware/system/coincloud/jcm-ipro-rc/supervisor/conf.d/calibrate-screen.conf
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
#!/usr/bin/env sh | ||
xrandr -o left # normal, inverted, left, right | ||
identityMat='1 0 0 0 1 0 0 0 1' | ||
leftRotateMat='0 -1 1 1 0 0 0 0 1' | ||
rightRotateMat='0 1 0 -1 0 1 0 0 1' | ||
xinput set-prop 'ILITEK ILITEK-TP' --type=float 'Coordinate Transformation Matrix' $leftRotateMat | ||
xset s off | ||
xset s noblank | ||
xset -dpms | ||
set -e | ||
|
||
### CHANGE CONFIGURATION AT THE END OF THE FILE ### | ||
|
||
configure_screen() { | ||
local rotation="$1" | ||
case "${rotation}" in | ||
normal) touchRotation='1 0 0 0 1 0 0 0 1';; | ||
left) touchRotation='0 -1 1 1 0 0 0 0 1';; | ||
right) touchRotation='0 1 0 -1 0 1 0 0 1';; | ||
*) echo "Unknown rotation '${rotation}'..."; exit 1;; | ||
esac | ||
screenRotation="${rotation}" | ||
|
||
xrandr -o "${screenRotation}" \ | ||
&& xset s off \ | ||
&& xset s noblank \ | ||
&& xset -dpms | ||
} | ||
|
||
configure_touch() { | ||
local screen="$1" | ||
xinput set-prop "${screen}" --type=float 'Coordinate Transformation Matrix' $touchRotation | ||
} | ||
|
||
### CHANGE CONFIGURATION BELOW TO MATCH THE CONNECTED SCREEN ### | ||
|
||
# One of: normal, left, right | ||
configure_screen left | ||
# Find the screen name under "Virtual core pointer" of the following command: | ||
# xinput list | ||
configure_touch 'ILITEK ILITEK-TP' |
10 changes: 0 additions & 10 deletions
10
hardware/system/coincloud/mei-bnr/supervisor/conf.d/calibrate-screen.conf
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
#!/usr/bin/env sh | ||
xrandr -o left # normal, inverted, left, right | ||
identityMat='1 0 0 0 1 0 0 0 1' | ||
leftRotateMat='0 -1 1 1 0 0 0 0 1' | ||
rightRotateMat='0 1 0 -1 0 1 0 0 1' | ||
xinput set-prop 'ILITEK ILITEK-TP' --type=float 'Coordinate Transformation Matrix' $leftRotateMat | ||
xset s off | ||
xset s noblank | ||
xset -dpms | ||
set -e | ||
|
||
### CHANGE CONFIGURATION AT THE END OF THE FILE ### | ||
|
||
configure_screen() { | ||
local rotation="$1" | ||
case "${rotation}" in | ||
normal) touchRotation='1 0 0 0 1 0 0 0 1';; | ||
left) touchRotation='0 -1 1 1 0 0 0 0 1';; | ||
right) touchRotation='0 1 0 -1 0 1 0 0 1';; | ||
*) echo "Unknown rotation '${rotation}'..."; exit 1;; | ||
esac | ||
screenRotation="${rotation}" | ||
|
||
xrandr -o "${screenRotation}" \ | ||
&& xset s off \ | ||
&& xset s noblank \ | ||
&& xset -dpms | ||
} | ||
|
||
configure_touch() { | ||
local screen="$1" | ||
xinput set-prop "${screen}" --type=float 'Coordinate Transformation Matrix' $touchRotation | ||
} | ||
|
||
### CHANGE CONFIGURATION BELOW TO MATCH THE CONNECTED SCREEN ### | ||
|
||
# One of: normal, left, right | ||
configure_screen left | ||
# Find the screen name under "Virtual core pointer" of the following command: | ||
# xinput list | ||
configure_touch 'ILITEK ILITEK-TP' |
10 changes: 0 additions & 10 deletions
10
hardware/system/coincloud/mei-scr/supervisor/conf.d/calibrate-screen.conf
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
#!/usr/bin/env sh | ||
xrandr -o normal # normal, inverted, left, right | ||
identityMat='1 0 0 0 1 0 0 0 1' | ||
leftRotateMat='0 -1 1 1 0 0 0 0 1' | ||
rightRotateMat='0 1 0 -1 0 1 0 0 1' | ||
xinput set-prop 'Virtual core pointer' --type=float 'Coordinate Transformation Matrix' $identityMat | ||
xset s off | ||
xset s noblank | ||
xset -dpms | ||
set -e | ||
|
||
### CHANGE CONFIGURATION AT THE END OF THE FILE ### | ||
|
||
configure_screen() { | ||
local rotation="$1" | ||
case "${rotation}" in | ||
normal) touchRotation='1 0 0 0 1 0 0 0 1';; | ||
left) touchRotation='0 -1 1 1 0 0 0 0 1';; | ||
right) touchRotation='0 1 0 -1 0 1 0 0 1';; | ||
*) echo "Unknown rotation '${rotation}'..."; exit 1;; | ||
esac | ||
screenRotation="${rotation}" | ||
|
||
xrandr -o "${screenRotation}" \ | ||
&& xset s off \ | ||
&& xset s noblank \ | ||
&& xset -dpms | ||
} | ||
|
||
configure_touch() { | ||
local screen="$1" | ||
xinput set-prop "${screen}" --type=float 'Coordinate Transformation Matrix' $touchRotation | ||
} | ||
|
||
### CHANGE CONFIGURATION BELOW TO MATCH THE CONNECTED SCREEN ### | ||
|
||
# One of: normal, left, right | ||
configure_screen normal | ||
# Find the screen name under "Virtual core pointer" of the following command: | ||
# xinput list | ||
configure_touch 'Virtual core pointer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
#!/usr/bin/env sh | ||
xrandr -o normal # normal, inverted, left, right | ||
identityMat='1 0 0 0 1 0 0 0 1' | ||
leftRotateMat='0 -1 1 1 0 0 0 0 1' | ||
rightRotateMat='0 1 0 -1 0 1 0 0 1' | ||
xinput set-prop 'ILITEK ILITEK-TP' --type=float 'Coordinate Transformation Matrix' $identityMat | ||
xset s off | ||
xset s noblank | ||
xset -dpms | ||
set -e | ||
|
||
### CHANGE CONFIGURATION AT THE END OF THE FILE ### | ||
|
||
configure_screen() { | ||
local rotation="$1" | ||
case "${rotation}" in | ||
normal) touchRotation='1 0 0 0 1 0 0 0 1';; | ||
left) touchRotation='0 -1 1 1 0 0 0 0 1';; | ||
right) touchRotation='0 1 0 -1 0 1 0 0 1';; | ||
*) echo "Unknown rotation '${rotation}'..."; exit 1;; | ||
esac | ||
screenRotation="${rotation}" | ||
|
||
xrandr -o "${screenRotation}" \ | ||
&& xset s off \ | ||
&& xset s noblank \ | ||
&& xset -dpms | ||
} | ||
|
||
configure_touch() { | ||
local screen="$1" | ||
xinput set-prop "${screen}" --type=float 'Coordinate Transformation Matrix' $touchRotation | ||
} | ||
|
||
### CHANGE CONFIGURATION BELOW TO MATCH THE CONNECTED SCREEN ### | ||
|
||
# One of: normal, left, right | ||
configure_screen normal | ||
# Find the screen name under "Virtual core pointer" of the following command: | ||
# xinput list | ||
configure_touch 'ILITEK ILITEK-TP' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
#!/usr/bin/env sh | ||
xrandr -o left # normal, inverted, left, right | ||
identityMat='1 0 0 0 1 0 0 0 1' | ||
leftRotateMat='0 -1 1 1 0 0 0 0 1' | ||
rightRotateMat='0 1 0 -1 0 1 0 0 1' | ||
xinput set-prop 'ILITEK ILITEK-TP' --type=float 'Coordinate Transformation Matrix' $leftRotateMat | ||
xset s off | ||
xset s noblank | ||
xset -dpms | ||
set -e | ||
|
||
### CHANGE CONFIGURATION AT THE END OF THE FILE ### | ||
|
||
configure_screen() { | ||
local rotation="$1" | ||
case "${rotation}" in | ||
normal) touchRotation='1 0 0 0 1 0 0 0 1';; | ||
left) touchRotation='0 -1 1 1 0 0 0 0 1';; | ||
right) touchRotation='0 1 0 -1 0 1 0 0 1';; | ||
*) echo "Unknown rotation '${rotation}'..."; exit 1;; | ||
esac | ||
screenRotation="${rotation}" | ||
|
||
xrandr -o "${screenRotation}" \ | ||
&& xset s off \ | ||
&& xset s noblank \ | ||
&& xset -dpms | ||
} | ||
|
||
configure_touch() { | ||
local screen="$1" | ||
xinput set-prop "${screen}" --type=float 'Coordinate Transformation Matrix' $touchRotation | ||
} | ||
|
||
### CHANGE CONFIGURATION BELOW TO MATCH THE CONNECTED SCREEN ### | ||
|
||
# One of: normal, left, right | ||
configure_screen left | ||
# Find the screen name under "Virtual core pointer" of the following command: | ||
# xinput list | ||
configure_touch 'ILITEK ILITEK-TP' |
10 changes: 0 additions & 10 deletions
10
hardware/system/genmega/gemini/supervisor/conf.d/calibrate-screen.conf
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
#!/usr/bin/env sh | ||
xrandr -o left # normal, inverted, left, right | ||
identityMat='1 0 0 0 1 0 0 0 1' | ||
leftRotateMat='0 -1 1 1 0 0 0 0 1' | ||
rightRotateMat='0 1 0 -1 0 1 0 0 1' | ||
xinput set-prop 'Silicon Works Multi-touch Device' --type=float 'Coordinate Transformation Matrix' $leftRotateMat | ||
xinput set-prop 'Silicon Works Multi-touch SW4101C' --type=float 'Coordinate Transformation Matrix' $leftRotateMat | ||
xset s off | ||
xset s noblank | ||
xset -dpms | ||
set -e | ||
|
||
### CHANGE CONFIGURATION AT THE END OF THE FILE ### | ||
|
||
configure_screen() { | ||
local rotation="$1" | ||
case "${rotation}" in | ||
normal) touchRotation='1 0 0 0 1 0 0 0 1';; | ||
left) touchRotation='0 -1 1 1 0 0 0 0 1';; | ||
right) touchRotation='0 1 0 -1 0 1 0 0 1';; | ||
*) echo "Unknown rotation '${rotation}'..."; exit 1;; | ||
esac | ||
screenRotation="${rotation}" | ||
|
||
xrandr -o "${screenRotation}" \ | ||
&& xset s off \ | ||
&& xset s noblank \ | ||
&& xset -dpms | ||
} | ||
|
||
configure_touch() { | ||
local screen="$1" | ||
xinput set-prop "${screen}" --type=float 'Coordinate Transformation Matrix' $touchRotation | ||
} | ||
|
||
### CHANGE CONFIGURATION BELOW TO MATCH THE CONNECTED SCREEN ### | ||
|
||
# One of: normal, left, right | ||
configure_screen left | ||
# Find the screen name under "Virtual core pointer" of the following command: | ||
# xinput list | ||
configure_touch 'Silicon Works Multi-touch Device' | ||
configure_touch 'Silicon Works Multi-touch SW4101C' |
10 changes: 0 additions & 10 deletions
10
hardware/system/genmega/gmuk1/supervisor/conf.d/calibrate-screen.conf
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.