Waveshare AMOLED: Difference between revisions

 
Line 23: Line 23:


==Touch rotation==
==Touch rotation==
Add the appropriate <tt>CalibrationMatrix</tt> to the <tt>touchscreen</tt> libevent stanza. For instance, rotate 90 degrees clockwise with <tt>Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"</tt>.
We can do it through Xorg: add the appropriate <tt>CalibrationMatrix</tt> to the <tt>touchscreen</tt> libevent stanza. For instance, rotate 90 degrees clockwise with <tt>Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"</tt>. But this will only work for X.
 
If we want to handle all libinput consumers (particularly [[Wayland]]), it's better to make a [[udev]] rule that sets <tt>
ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1</tt>. You can test this by checking <tt>libinput list-devices | grep ^Calibration:</tt>.


==Assembling front pane==
==Assembling front pane==