Waveshare AMOLED: Difference between revisions
No edit summary |
|||
| Line 21: | Line 21: | ||
==Console rotation== | ==Console rotation== | ||
Write 1 to <tt>/sys/class/graphics/fbcon/rotate</tt>. To do it from the kernel, add <tt>fbcon=rotate:1</tt> to the kernel command line; in Raspbian, this is done by editing <tt>/boot/cmdline.txt</tt>. This has no effect on Xorg. | Write 1 to <tt>/sys/class/graphics/fbcon/rotate</tt>. To do it from the kernel, add <tt>fbcon=rotate:1</tt> to the kernel command line; in Raspbian, this is done by editing <tt>/boot/cmdline.txt</tt>. This has no effect on Xorg. | ||
==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>. | |||
==Assembling front pane== | ==Assembling front pane== | ||