Skip to content

Custom touchscreens

Huan Truong edited this page Apr 19, 2018 · 11 revisions

Screen orientation

Open the file crankshaft/chrankshaft_env.sh on the boot partition (that's what you see when you open the SD card on Windows) with Sublime Text, then edit so it says FLIP_SCREEN=1 instead of FLIP_SCREEN=0. Save the file, put the card into the Pi and start it, then wait for it to restart.

Custom touchscreen

If you use a custom screen or touch layer, it probably will have a better chance to work if you use X11 instead of the EGL layer. Normally Crankshaft starts OpenAuto in EGL, which draws directly on the Pi screen. X11 is another way to draw stuff and receive inputs on the screen. X11 might be a tiny bit less performant, but is very mature and is 99% of all apps that has a GUI on Linux use. Many touch layers and screen optimize their usage on X11, but not EGL.

If you want to start OpenAuto under X11, Open the file crankshaft/chrankshaft_env.sh on the boot partition (that's what you see when you open the SD card on Windows) with Sublime Text, then edit so it says START_X11=1 instead of START_X11=0.

Clone this wiki locally