This commit is contained in:
2026-05-29 14:42:16 +08:00
parent d94d3278fa
commit 34191e0462
4 changed files with 18 additions and 8 deletions

View File

@@ -3,11 +3,19 @@
# Flip screen
# 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
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

View File

@@ -1,10 +1,10 @@
[Unit]
Description=TCK RTU Dev 8888
Description=TCK RTU Dev 8888 for 7inch and 9999 for remote hd screen
After=network.target
#Before=nextcloud-web.service
[Service]
ExecStart=/root/rtu_v5/start.sh dev:8888
ExecStart=/root/rtu_v5/start.sh
#ExecReload=/root/rtu_v4/start.sh dev:8888
Type=simple
Restart=always

View File

@@ -12,6 +12,7 @@
# 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
bash flip_display.sh
set -e

1
systemd-rtu-dev.service Symbolic link
View File

@@ -0,0 +1 @@
/etc/systemd/system/rtu-dev.service