Heh, yeah, initially I started rewriting the panel driver to look like the mainline one, but then decided I had better things to do and I guess I forgot to revert that bit glad it works for you!
I also had to flip the X axis on the accelerometer so iio-sensor-proxy
wouldn’t flip the LCD upside down, and set tp_rotate=1
in the dtoverlay=reTerminal
line, but YMMV depending on the revision of your unit.
If anyone else has trouble working out how the heck to flip the accel axis, save this as /etc/udev/hwdb.d/61-sensor-local.hwdb
:
# fix reterminal accelerometer orientation
sensor:modalias:platform:lis3lv02d:*
ACCEL_LOCATION=display
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1