Tipp: Monitor und Touch beim Start automatisch einstellen (Linux)

Antworten
Benutzeravatar
Frankomio
Fortgeschrittener
Beiträge: 71
Registriert: 9. Jan 2025 08:35
Wohnort: Bottrop
Has thanked: 9 times
Been thanked: 4 times

Tipp: Monitor und Touch beim Start automatisch einstellen (Linux)

Monitor und Touch beim Start automatisch einstellen (Linux):
xinput installieren:

Code: Alles auswählen

sudo apt install xinput
Listet alle Geräte auf:
xinput --list

Bash Skripte erstellen:
Verzeichnis erstellen

Code: Alles auswählen

mkdir $HOME/script/
Datei erstellen:

Code: Alles auswählen

sudo nano $HOME/script/monitor_normal.sh
Inhalt:

Code: Alles auswählen

#!/bin/sh

xrandr -o normal
xinput set-prop "NAME DEVICE" 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
Datei ausführbar machen:

Code: Alles auswählen

sudo chmod +x $HOME/script/monitor_normal.sh
Datei erstellen:

Code: Alles auswählen

sudo nano $HOME/script/monitor_right.sh
Inhalt:

Code: Alles auswählen

#!/bin/sh

xrandr -o right
xinput set-prop "NAME DEVICE" 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1
Datei ausführbar machen:

Code: Alles auswählen

sudo chmod +x $HOME/script/monitor_right.sh
Autostart Script erstellen:

Code: Alles auswählen

sudo nano $HOME/.trinity/Autostart/monitor_right.desktop
Inhalt:

Code: Alles auswählen

[Desktop Entry]
Comment=
Comment[de]=
Exec[$e]='$HOME/script/monitor_right.sh'
GenericName=
GenericName[de]=
Icon=application-x-executable
MimeType=
Name=
Name[de]=
Path[$e]=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=
X-TDE-SubstituteUID=false
X-TDE-Username=
Datei ausführbar machen:

Code: Alles auswählen

sudo chmod +x $HOME/.trinity/Autostart/monitor_right.desktop
Antworten