Thanks, to note for other people you need to update your build.prop otherwise it will fix orientation but invert touchscreen. I am providing link, download build.prop,
1.)copy to SD card.
3.)flash kernal and wipe dev/cache
4 mount system, copy build.prop to /system/, then set permission to 0644.
5. Reboot and your set to correct orientation.
Only thing added to build.prop was:
Here is the link for the build.prop.
I will work on sensor fix and upload soon.
Sent from my lineage_serranoltexx using Tapatalk