add all
This commit is contained in:
@@ -3,11 +3,19 @@
|
|||||||
# Flip screen
|
# Flip screen
|
||||||
# C-Fu for TCK
|
# C-Fu for TCK
|
||||||
|
|
||||||
# Flip the display
|
|
||||||
DISPLAY=:0 xrandr --output HDMI-1 --reflect x
|
|
||||||
|
|
||||||
# Flip the touch input (using ID 7 for your specific device)
|
|
||||||
DISPLAY=:0 xinput set-prop 7 'Coordinate Transformation Matrix' -1 0 1 0 1 0 0 0 1
|
|
||||||
|
|
||||||
# Change reso
|
# Change reso
|
||||||
DISPLAY=:0 xrandr --output HDMI-1 --mode 1024x600
|
DISPLAY=:0 xrandr --output HDMI-1 --mode 1024x600
|
||||||
|
|
||||||
|
# Flip the display
|
||||||
|
#DISPLAY=:0 xrandr --output HDMI-1 --reflect x
|
||||||
|
DISPLAY=:0 xrandr --output HDMI-1 --reflect y
|
||||||
|
|
||||||
|
# Flip the touch input (using ID 7 for your specific device)
|
||||||
|
# Invert 180
|
||||||
|
#DISPLAY=:0 xinput set-prop 7 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1
|
||||||
|
|
||||||
|
# Normal
|
||||||
|
DISPLAY=:0 xinput set-prop 7 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
|
||||||
|
|
||||||
|
# Change reso
|
||||||
|
#DISPLAY=:0 xrandr --output HDMI-1 --mode 1024x600
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=TCK RTU Dev 8888
|
Description=TCK RTU Dev 8888 for 7inch and 9999 for remote hd screen
|
||||||
After=network.target
|
After=network.target
|
||||||
#Before=nextcloud-web.service
|
#Before=nextcloud-web.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/root/rtu_v5/start.sh dev:8888
|
ExecStart=/root/rtu_v5/start.sh
|
||||||
#ExecReload=/root/rtu_v4/start.sh dev:8888
|
#ExecReload=/root/rtu_v4/start.sh dev:8888
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|||||||
1
start.sh
1
start.sh
@@ -12,6 +12,7 @@
|
|||||||
# Flip the touch input (using ID 7 for your specific device)
|
# Flip the touch input (using ID 7 for your specific device)
|
||||||
#DISPLAY=:0 xinput set-prop 7 'Coordinate Transformation Matrix' -1 0 1 0 1 0 0 0 1
|
#DISPLAY=:0 xinput set-prop 7 'Coordinate Transformation Matrix' -1 0 1 0 1 0 0 0 1
|
||||||
|
|
||||||
|
bash flip_display.sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|||||||
1
systemd-rtu-dev.service
Symbolic link
1
systemd-rtu-dev.service
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/etc/systemd/system/rtu-dev.service
|
||||||
Reference in New Issue
Block a user