You are not logged in.

#1 2025-01-16 09:57

Malz1902
Member
Registered: 2025-01-16
Posts: 2

xrandr and xinput on startup

Hello everyone, I have a touchscreen monitor that hangs upright on the wall. When starting, the image should be rotated accordingly and the touch matrix should be reset.

xrandr -o right
xinput set-prop "ILITEK ILITEK-TP" 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1

Can someone tell me how I can solve this. Thank you

Offline

#2 2025-02-27 19:23

theasmitkid
Member
From: New Delhi
Registered: 2025-01-26
Posts: 3

Re: xrandr and xinput on startup

Um you can setup an autostart script for this I think,
On Trinity DE by running

sudo apt-get install kcontrol-autostart-trinity -y

This would add "Autostart Manager" in "TDE Components" in the control panel

Open the autostart manager then click add, check "Run in terminal" and type your command

xrandr -o right
xinput set-prop "ILITEK ILITEK-TP" 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1

Then press enter, a new window will pop up and there you can put any any name for your command for example "monitorfixes" then press enter

with this, after the bootup is complete that command would run automatically.

I use this approach to add a custom monitor resolution using xrandr on boot,
hopefully it works out for you as well!

Offline

Board footer

Powered by FluxBB