Your instructions are incorrect, or at least incorrectly/incompletely written. It would be nice to get the second solution to work. I was able to open your settings UI in an X-session (where the settings were locked) but never on the HDMI display, so the second solution appears still broken. I am a bit disappointed in how messy your documentation is on this. For the record, here's how you can get this working:
Reverting to the legacy driver is possible:
1. Run:
sudo raspi-config
Select:
6) Advanced Options
A2) GL Driver
G1) Legacy
2. edit /boot/config.txt e.g.
display_hdmi_rotate=3
3. in order to get the touch-screen oriented properly, you need to edit
/usr/share/X11/xorg.conf.d/40-libinput.conf
Section "InputClass"
Identifier "libinput touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
#if screen is rotated, you need to transform the touch-matrix as per the below:
#90 degrees
# Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
#180 degrees
# Option "TransformationMatrix" "-1 0 1 0 -1 1 0 0 1"
#270 degrees
Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
Driver "libinput"
EndSection