I got it working. To recap for future users having this issue.
It was a combination of two previous posts from smarter volumio users than myself:
What I had to do:
- in putty run one command at the time:
sudo apt update
sudo apt install xrander xinput
sudo DISPLAY=:0 xinput list
The last command will output a bunch of pointer and keyboard entries. Find the pointer entry that represents your touch screen. Sometimes is hard to detect which one is the actual entry responsible for the touch. One way to detect it is to connect your display with a power only USB cable, take a snapshot of the output, connect the display with a power and data USB cable and compare the outputs. If you get more than one pointer entry try them all until it works in the following steps. In my case the pointer/touch was “wch.cn USB2IIC_CTP_CONTROL”. You’ll have to substitute this with yours in the commands below
- in putty run the following:
sudo nano /etc/X11/Xsession.d/45custom_xrandr-settings
In the file that opens insert:
export DISPLAY=:0
xrandr -d :0 -o left
xinput set-prop ‘wch.cn USB2IIC_CTP_CONTROL’ ‘Coordinate Transformation Matrix’ 0 -1 1 1 0 0 0 0 1
Press Ctrl+o, enter, Ctrl+x and reboot. The screen and touch should rotate left. There are options for right and invert as well. You’ll have to adjust based on your needs and you’ll find the values in the second link above. Keep in mind to rotate the screen and touch in the same direction.
Hopefully this will help future Volumio x86 users.