Skip to content

Custom touchscreens

inspector71 edited this page Sep 21, 2018 · 11 revisions

Screen orientation

Open the file crankshaft/crankshaft_env.sh on the boot partition (that's what you see when you open the SD card in 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

Crankshafts defaults to rendering OpenAuto in EGL mode which draws directly to the Pi screen.

If you're using a custom screen or touch layer, X11 mode is more likely to work. Whilst X11 might be a tiny bit less performant, it is very mature with 99% of all GUI apps on Linux using X11. Many touch layers and screens are optimised for X11, but not EGL.

To start OpenAuto in X11 mode, open crankshaft/crankshaft_env.sh on the boot partition (that's what you see when you open the SD card in Windows) and edit the START_X11=0 line to be START_X11=1.

Clone this wiki locally