Skip to content

Custom touchscreens

inspector71 edited this page Aug 15, 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

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 99% of all GUI apps on Linux use X11. Many touch layers and screens optimize their usage on X11, but not EGL.

If you want to start OpenAuto under X11, open 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 START_X11=1 instead of START_X11=0.

Clone this wiki locally