TouchScreen rotation reversed x-y

Also interested in this post, I have the Asus T100-HA and the same issue. When I rotate the screen 90 left the touchscreen doesn't go with it, I.E touching the bottom left is sensed on the bottom right.
There's a lot of T100 models out there and Zorin has brought them back to life if this can be resolved!
The output for me says "[ Directory '/etc/iio-sensor-proxy' does not exist ]"

Gday @Moocher , Welcome to the community.
Do you get any file showing with this command?

ls /etc/iio-sensor-proxy

Hi buddy, thanks for getting involved!

Output.
ls: cannot access '/etc/iio-sensor-proxy': No such file or directory

Ok please try installing the app

sudo apt install iio-sensor-proxy

restart pc.

iio-sensor-proxy is already the newest version (2.8-1ubuntu2).
iio-sensor-proxy set to manually installed.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

Just to add to that, when the computer first boots up it is in portrait mode and the touch screen works fine. It's only when I rotate the screen to put it back on the keyboard.

ok , you could try removing/purge it & reinstall again, this sometimes corrects the issue.

@Ocka Uninstalled it and purged, on install....

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
iio-sensor-proxy
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 35.8 kB of archives.
After this operation, 171 kB of additional disk space will be used.
Get:1 Index of /ubuntu focal-updates/main amd64 iio-sensor-proxy amd64 2.8-1ubuntu2 [35.8 kB]
Fetched 35.8 kB in 0s (124 kB/s)
Selecting previously unselected package iio-sensor-proxy.
(Reading database ... 214969 files and directories currently installed.)
Preparing to unpack .../iio-sensor-proxy_2.8-1ubuntu2_amd64.deb ...
Unpacking iio-sensor-proxy (2.8-1ubuntu2) ...
Setting up iio-sensor-proxy (2.8-1ubuntu2) ...
iio-sensor-proxy.service is a disabled or a static unit, not starting it.
Processing triggers for dbus (1.12.16-2ubuntu2.3) ...

1 st run

sudo systemctl enable iio-sensor-proxy

then

sudo systemctl start iio-sensor-proxy

reboot

Then run this to check status.

systemctl status iio-sensor-proxy

If you encounter any issues, run this to see log's.

journalctl -u iio-sensor-proxy

Hope this helps.

Sorry im offline now, Someone else wil help further if needed.

1 Like

Appreciated, I'll post results.

1 Like

neil@neil-T100HAN:~$ systemctl status iio-sensor-proxy
● iio-sensor-proxy.service - IIO Sensor Proxy service
Loaded: loaded (/lib/systemd/system/iio-sensor-proxy.service; static; vend>
Active: active (running) since Mon 2023-08-07 22:21:07 BST; 9min ago
Main PID: 723 (iio-sensor-prox)
Tasks: 3 (limit: 2074)
Memory: 1.5M
CGroup: /system.slice/iio-sensor-proxy.service
└─723 /usr/sbin/iio-sensor-proxy

Aug 07 22:21:07 neil-T100HAN systemd[1]: Starting IIO Sensor Proxy service...
Aug 07 22:21:07 neil-T100HAN systemd[1]: Started IIO Sensor Proxy service.
lines 1-11/11 (END)

if I close the terminal it says process is still running.

ug 05 15:08:47 neil-T100HAN systemd[1]: Starting IIO Sensor Proxy service...
Aug 05 15:08:47 neil-T100HAN systemd[1]: Started IIO Sensor Proxy service.
Aug 05 17:20:33 neil-T100HAN systemd[1]: Stopping IIO Sensor Proxy service...
Aug 05 17:20:33 neil-T100HAN systemd[1]: iio-sensor-proxy.service: Succeeded.
Aug 05 17:20:33 neil-T100HAN systemd[1]: Stopped IIO Sensor Proxy service.

1 Like

After performing the above, is there any change in rotation behavior?

1 Like

Hi buddy, no change. To clarify, if I rotate the screen 90 left so the screen is in portrait mode the screen and the touchpad are fine, if I have the screen in landscape mode and docked on the keyboard the Zorin start button opens the calender, left is down and right is up using the touchscreen but the touchpad works fine.

I believe that this relates to your issue.

1 Like

When I....
udevadm info -a -p /sys/class/input/event6 | grep name
ATTRS{name}=="Asus Keyboard"

Wondering if I change the settings it will change the touchpad rather than the screen?

1 Like

This is a legitimate concern. And... I am not sure. I will need to search the web alongside of you on this...

Nevermind... I do not have touchscreen, but I ran the command udevadm info -a -p /sys/class/input/event6 | grep name on my own machine and it returned Optical Mouse. So I changed the event to a 5
udevadm info -a -p /sys/class/input/event5 | grep name and that returned keyboard.

Try changing the event number and see if you can isolate the multi-touch

1 Like

Thanks Buddy, I also had to install Vim but I'm not sure how to save after adding the line which is probably a good thing, noticed on the post you linked that the poster was having the exact opposite issue to me, they seemed to have the issue when switching to portrait mode whereas mine is in landscape.

Looks like I need to have a think on this one, I think the issue is the touchpad and touchscreen don't appear to be in sync depending which screen mode I'm in.

When the T100 boots up the screen is in portrait mode for logging in (which going by other posts I've read is a trait of this notebook/tablet)
at this point the touchscreen is correct but the touchpad is inverted.
After I sign in the screen flips left (which is what I want it to do) but the touchpad is correct and the touchscreen is inverted.

1 Like

This was the part that got my attentions:

It seems to be X and Y inverted

Which is what it looks like you describe. Granted, his is on portrait instead of Landscape - but the act of calibration should be the same.

You do not need VIM... It is just what that user prefers. You can use nano in place of vim in the instructions. Nano is what comes with Zorin OS.

You can save with ctrl+o to overwrite the file, then enter key to save current configuration. You can then tap ctrl+x` to exit the editor.

Are you saying that the mouse cursor appears in the x-y inverted state or that that touching the screen does?

1 Like

Depends which way round I do this, when the screen is portrait, the mouse pointer on the touch screen is correct but the touchpad isn't i.e up is right/left is down.

When the screen is in landscape the touchpad is correct but touchscreen is inverted.

Thanks for the tip on Nano :+1:

1 Like

Ah, this is helpful.
What I can find is- this persists across Gnome or XFCE. So it really seems to center on xinput.
You might try (as the simplest approach):

sudo apt install --reinstall xserver-xorg-input-evdev

sudo apt remove xserver-xorg-input-libinput

If that does nothing - you can easily reverse it:

sudo apt install xserver-xorg-input-libinput

1 Like