<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.autosportlabs.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Turbosax2</id>
	<title>Autosport Labs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.autosportlabs.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Turbosax2"/>
	<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/Special:Contributions/Turbosax2"/>
	<updated>2026-09-20T14:12:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8405</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8405"/>
		<updated>2019-07-31T15:05:23Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Install Raspbian Stretch Lite on MicroSD card */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for their awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager (or alternate method)&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
**Mac users - https://www.tweaking4all.com/hardware/raspberry-pi/applepi-baker-v2/?fbclid=IwAR27PN0QA5QpTNQRhU2sJF9hP53N8Dz36iDZZezMQlAoF40p3SsLXQScp_c&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, monitor, (and mouse if you wish), then power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
*This may cause lag in the dashboard so it&#039;s not recommended except for setup if you elect to use a mouse&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates the display, but does not rotate the touch settings&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*If you have a touch screen, you will need to rotate the touch settings for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*I like to keep the dashboard settings similar between my phone, laptop, and in-dash screen.  Once you follow the directions in the link, you can save the config file from RaceCapture to the thumb drive and transfer it between devices.  In my experience, this was not a foolproof and reliable solution and required a bit of playing around with it, but it&#039;s the easiest solution I found.&lt;br /&gt;
**https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8404</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8404"/>
		<updated>2019-07-31T14:37:46Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for their awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, monitor, (and mouse if you wish), then power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
*This may cause lag in the dashboard so it&#039;s not recommended except for setup if you elect to use a mouse&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates the display, but does not rotate the touch settings&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*If you have a touch screen, you will need to rotate the touch settings for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*I like to keep the dashboard settings similar between my phone, laptop, and in-dash screen.  Once you follow the directions in the link, you can save the config file from RaceCapture to the thumb drive and transfer it between devices.  In my experience, this was not a foolproof and reliable solution and required a bit of playing around with it, but it&#039;s the easiest solution I found.&lt;br /&gt;
**https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=RaceCapture_on_Raspberry_Pi&amp;diff=8403</id>
		<title>RaceCapture on Raspberry Pi</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=RaceCapture_on_Raspberry_Pi&amp;diff=8403"/>
		<updated>2019-07-31T14:28:34Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Additional Tips */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
We designed the RaceCapture app to run nearly anywhere - even a Raspberry Pi. And now, for about $100 you can create a hardwired, dedicated dash for your RaceCapture system. &lt;br /&gt;
&lt;br /&gt;
[[image:racecapture_raspberry_pi.jpg|1024px]]&lt;br /&gt;
&lt;br /&gt;
==Benefits==&lt;br /&gt;
You get all of the benefits of a dedicated dash:&lt;br /&gt;
* &#039;&#039;&#039;Automatically runs upon power up&#039;&#039;&#039; - you can configure the dash to automatically launch the RaceCapture App - just as you&#039;d expect it to work.&lt;br /&gt;
* &#039;&#039;&#039;Hard-wired data connection to RaceCapture&#039;&#039;&#039; - no wireless connections to configure, with the reliability of a direct wire.&lt;br /&gt;
* &#039;&#039;&#039;Runs on the bare metal&#039;&#039;&#039; - The RaceCapture app runs without Android or iOS; there&#039;s no other apps competing for resources, or compromising system stability. &lt;br /&gt;
* &#039;&#039;&#039;Overheating resistance&#039;&#039;&#039; -  Your typical mobile device requires extra care in very hot weather to prevent damage to it&#039;s internal battery, and will shut down if overheated. With proper heat-sinking, the Raspberry Pi should handle the heat.&lt;br /&gt;
&lt;br /&gt;
==Compatibility==&lt;br /&gt;
The RaceCapture app running on the Raspberry Pi is compatible with any hardware version of RaceCapture or PodiumConnect. &lt;br /&gt;
&lt;br /&gt;
[[image:racecapture_raspberry_pi_backside.jpg|1024px]]&lt;br /&gt;
&lt;br /&gt;
==Experimental!==&lt;br /&gt;
While the results are pretty great, these instructions are &#039;&#039;currently&#039;&#039; for those adventurous race car hackers who know their away around a command line, comfortable working with hardware and want to dig in.  &#039;&#039;&#039;Think it&#039;s cool, but too much to tackle?&#039;&#039;&#039; Rope in your nearest computer/electronics geek - you need one on your race team, anyway. :)&lt;br /&gt;
&lt;br /&gt;
==Current status and future plans==&lt;br /&gt;
Even though this is brand new and officially experimental in nature, we still made it as easy as reasonably possible: we wrapped up the RaceCapture App into as close to a self-running installer, that can run on a bone stock Raspberry Pi image - only a few changes are required to the default image, detailed below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;However&#039;&#039;&#039;, in the near future we will create a dedicated Raspberry Pi image that you can burn to an SD card and simply boot up, and move towards more official support as we iron out the issues. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting issues and getting support===&lt;br /&gt;
Chances are you&#039;ll encounter an issue you&#039;ll want to report. Before you do that, [https://github.com/autosportlabs/RaceCapture_App/issues?q=is%3Aopen+is%3Aissue+label%3A%22raspberry+pi%22 check the issue log] to see if it&#039;s already known.&lt;br /&gt;
&lt;br /&gt;
Otherwise - the best place for support, feedback and sharing success stories is [http://forum.autosportlabs.com on the  forums] .  Drop us a note there so we can see the progress of your project!&lt;br /&gt;
&lt;br /&gt;
=Hardware Selection=&lt;br /&gt;
===Raspberry Pi===&lt;br /&gt;
For best performance, we recommend the latest [https://www.raspberrypi.org/products/raspberry-pi-3-model-b/ Raspberry Pi 3].&lt;br /&gt;
&lt;br /&gt;
===Display===&lt;br /&gt;
The RaceCapture app package is designed to recognize the following screens:&lt;br /&gt;
&lt;br /&gt;
* [https://www.raspberrypi.org/products/raspberry-pi-touch-display/ Official Raspberry Pi display] with capacitive touch screen;&lt;br /&gt;
* Displays supporting the AR1100 resistive touch screen controller.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other displays can work as well, and additional work may be needed to support the screen&#039;s touch controller. If unsure, just pick the [https://www.raspberrypi.org/products/raspberry-pi-touch-display/ Official Raspberry Pi display]&lt;br /&gt;
===Enclosure===&lt;br /&gt;
A recommended enclosure is the [http://https://www.amazon.com/dp/B01HV97F64 Smart Pi Touch Case]&lt;br /&gt;
&lt;br /&gt;
You can 3D print a sun shade for this enclosure  [[file:P001 Raspberry Pi Display Sun Shade.stl.zip|download the .stl file]] (&#039;&#039;Courtesy of Michael Lee&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
[[image:SmartPi_touch_case.jpg|400px]] [[image:RaceCapture_Sun_shade_3dprinted_preview.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
[[image:RaceCapture_RaspberryPi_sun_shade_dashboard.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Installed on Dashboard&lt;br /&gt;
&lt;br /&gt;
===Power Supply===&lt;br /&gt;
To power everything, you&#039;ll need a high quality 5v power supply with 2 amps minimum capacity; 3 amps is highly recommended. You&#039;ll preferably want one designed to be hard wired into your car for maximum reliability.&lt;br /&gt;
&lt;br /&gt;
===Heat sinking===&lt;br /&gt;
If you&#039;re running in hot weather, we recommend the standard Raspberry Pi heatsink kit to keep your system cool.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
==Installing Rasbian OS==&lt;br /&gt;
We recommend installing Raspian Jessie Lite - [https://www.raspberrypi.org/downloads/raspbian/ download from the official site] and follow the instructions for burning to an SD card. &lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve created your image, boot up your Raspberry Pi and log in with the default username of &#039;pi&#039; and password &#039;raspberry&#039;.&lt;br /&gt;
&lt;br /&gt;
==Installing dependencies==&lt;br /&gt;
===Change the default password===&lt;br /&gt;
For maximum security, change the password for the default user &#039;pi&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; passwd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and specify a new, secure password.&lt;br /&gt;
&lt;br /&gt;
===Configure Raspberry Pi base settings===&lt;br /&gt;
====Enable WiFi====&lt;br /&gt;
If you want network capability in addition to the ethernet connection, [https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md enable and configure WiFi per the official documentation]&lt;br /&gt;
&lt;br /&gt;
====(Optional) Enable SSH====&lt;br /&gt;
You can optionally enable SSH for remote management from the comfort of your main computer&#039;s keyboard and screen. &lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/remote-access/ssh/ Enable and configure ssh per the official documentation]&lt;br /&gt;
&lt;br /&gt;
====Install multi-touch tools====&lt;br /&gt;
Install the packages that enable multi-touch interfaces.  Enter the following at the command line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; sudo apt-get install mtdev-tools&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configure memory split====&lt;br /&gt;
You&#039;ll need to bump up the memory made available to the GPU. Increase the default value of 64 to &#039;&#039;&#039;256&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Via raspi-config tool&#039;&#039;&#039;&lt;br /&gt;
You can adjust the memory split by running the raspi-config tool. See the [https://www.raspberrypi.org/documentation/configuration/raspi-config.md official documentation]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Editing /boot/config.txt&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can adjust the value directly by editing the /boot/config.txt file. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; sudo nano /boot/config.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find the line containing gpu_mem=64 and change the number to 256&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gpu_mem=256&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Save the file by pressing &#039;&#039;&#039;ctrl-x&#039;&#039;&#039; then  press &#039;&#039;&#039;Y&#039;&#039;&#039;  to confirm.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Installing the RaceCapture app package==&lt;br /&gt;
&lt;br /&gt;
Download the latest [http://podium.live/software RaceCapture app package for Raspberry Pi] and place it in the /opt/ directory of the Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Directly downloading to the Raspberry Pi&#039;&#039;&#039;&lt;br /&gt;
You can download it directly by getting the URL of the package by right-clicking the download link and copying the URL to your clipboard. Then, use it in the command below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /opt&lt;br /&gt;
sudo wget &amp;lt;package URL&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Extract the package===&lt;br /&gt;
Now extract the downloaded package :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo tar -xjvf &amp;lt;downloaded file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Launch the app===&lt;br /&gt;
Launch the RaceCapture app by running the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/racecapture/run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Launching with Watchdog===&lt;br /&gt;
You can enable an automatic watchdog that re-launches the app in case a crash occurs. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/racecapture/run_racecapture.sh -w 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Note:&#039;&#039;&#039; to break out of the watchdog loop, press &#039;&#039;&#039;ctrl-z&#039;&#039;&#039; to suspend the app, then issue:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
killall -9 run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Automatic start upon power up==&lt;br /&gt;
To get the full dedicated dashboard experience, you can enable automatic launch of the RaceCapture app upon power up. &lt;br /&gt;
&lt;br /&gt;
To do this, edit the system&#039;s startup file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/rc.local&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and add the following line &#039;&#039;&#039;before the exit 0&#039;&#039;&#039; line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/racecapture/boot_racecapture.sh pi&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Save the file by pressing &#039;&#039;&#039;ctrl-x&#039;&#039;&#039; then  press &#039;&#039;&#039;Y&#039;&#039;&#039;  to confirm.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Connecting to your RaceCapture system=&lt;br /&gt;
[[image:racecapture_raspberry_pi_connections.jpg|900px]]&lt;br /&gt;
===Powering up===&lt;br /&gt;
* Connect the power to your display and power up. &lt;br /&gt;
* Connect your RaceCapture/Pro or RaceCapture/Track to the Raspberry Pi using the USB cable.  &lt;br /&gt;
&lt;br /&gt;
* Launch the RaceCapture app by running:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/racecapture/run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have it set to launch automatically, simply let it start upon power-up.&lt;br /&gt;
&lt;br /&gt;
===Connection and usage===&lt;br /&gt;
&lt;br /&gt;
Once the RaceCapture App is running, it will connect automatically over USB.  You can use the app just as you would on Android or iOS.&lt;br /&gt;
&lt;br /&gt;
=Extra Features=&lt;br /&gt;
&lt;br /&gt;
===Hardwire buttons===&lt;br /&gt;
&lt;br /&gt;
The RaceCapture app responds to keyboard commands for certain behaviors. You can use a USB keyboard - or a device that emulates keyboard commands - to control the RaceCapture App.&lt;br /&gt;
&lt;br /&gt;
Currently there are keyboard commands for the following:&lt;br /&gt;
* &#039;&#039;&#039;Navigating dashboard screens&#039;&#039;&#039;  - Use the left and right arrow keys to switch between screens&lt;br /&gt;
* &#039;&#039;&#039;Escaping from screens / menus&#039;&#039;&#039; - The Escape key can be used to exit out of screens and options, just like the &#039;back&#039; button on Android.&lt;br /&gt;
* &#039;&#039;&#039;Acknowledging alerts&#039;&#039;&#039; - Use the following keys to acknowledge alerts, including responding to pit-to-car alerts:&lt;br /&gt;
** K : to indicate &#039;Yes&#039; or &#039;OK&#039;&lt;br /&gt;
** N : to indicate &#039;No&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Additional Tips=&lt;br /&gt;
See this link for additional tips on how to setup the Pi and speed up the boot times.  This should be especially helpful for beginners.&lt;br /&gt;
&lt;br /&gt;
https://wiki.autosportlabs.com/Raspberry_Pi_Tips&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=RaceCapture_on_Raspberry_Pi&amp;diff=8402</id>
		<title>RaceCapture on Raspberry Pi</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=RaceCapture_on_Raspberry_Pi&amp;diff=8402"/>
		<updated>2019-07-31T14:28:21Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Additional Tips */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
We designed the RaceCapture app to run nearly anywhere - even a Raspberry Pi. And now, for about $100 you can create a hardwired, dedicated dash for your RaceCapture system. &lt;br /&gt;
&lt;br /&gt;
[[image:racecapture_raspberry_pi.jpg|1024px]]&lt;br /&gt;
&lt;br /&gt;
==Benefits==&lt;br /&gt;
You get all of the benefits of a dedicated dash:&lt;br /&gt;
* &#039;&#039;&#039;Automatically runs upon power up&#039;&#039;&#039; - you can configure the dash to automatically launch the RaceCapture App - just as you&#039;d expect it to work.&lt;br /&gt;
* &#039;&#039;&#039;Hard-wired data connection to RaceCapture&#039;&#039;&#039; - no wireless connections to configure, with the reliability of a direct wire.&lt;br /&gt;
* &#039;&#039;&#039;Runs on the bare metal&#039;&#039;&#039; - The RaceCapture app runs without Android or iOS; there&#039;s no other apps competing for resources, or compromising system stability. &lt;br /&gt;
* &#039;&#039;&#039;Overheating resistance&#039;&#039;&#039; -  Your typical mobile device requires extra care in very hot weather to prevent damage to it&#039;s internal battery, and will shut down if overheated. With proper heat-sinking, the Raspberry Pi should handle the heat.&lt;br /&gt;
&lt;br /&gt;
==Compatibility==&lt;br /&gt;
The RaceCapture app running on the Raspberry Pi is compatible with any hardware version of RaceCapture or PodiumConnect. &lt;br /&gt;
&lt;br /&gt;
[[image:racecapture_raspberry_pi_backside.jpg|1024px]]&lt;br /&gt;
&lt;br /&gt;
==Experimental!==&lt;br /&gt;
While the results are pretty great, these instructions are &#039;&#039;currently&#039;&#039; for those adventurous race car hackers who know their away around a command line, comfortable working with hardware and want to dig in.  &#039;&#039;&#039;Think it&#039;s cool, but too much to tackle?&#039;&#039;&#039; Rope in your nearest computer/electronics geek - you need one on your race team, anyway. :)&lt;br /&gt;
&lt;br /&gt;
==Current status and future plans==&lt;br /&gt;
Even though this is brand new and officially experimental in nature, we still made it as easy as reasonably possible: we wrapped up the RaceCapture App into as close to a self-running installer, that can run on a bone stock Raspberry Pi image - only a few changes are required to the default image, detailed below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;However&#039;&#039;&#039;, in the near future we will create a dedicated Raspberry Pi image that you can burn to an SD card and simply boot up, and move towards more official support as we iron out the issues. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting issues and getting support===&lt;br /&gt;
Chances are you&#039;ll encounter an issue you&#039;ll want to report. Before you do that, [https://github.com/autosportlabs/RaceCapture_App/issues?q=is%3Aopen+is%3Aissue+label%3A%22raspberry+pi%22 check the issue log] to see if it&#039;s already known.&lt;br /&gt;
&lt;br /&gt;
Otherwise - the best place for support, feedback and sharing success stories is [http://forum.autosportlabs.com on the  forums] .  Drop us a note there so we can see the progress of your project!&lt;br /&gt;
&lt;br /&gt;
=Hardware Selection=&lt;br /&gt;
===Raspberry Pi===&lt;br /&gt;
For best performance, we recommend the latest [https://www.raspberrypi.org/products/raspberry-pi-3-model-b/ Raspberry Pi 3].&lt;br /&gt;
&lt;br /&gt;
===Display===&lt;br /&gt;
The RaceCapture app package is designed to recognize the following screens:&lt;br /&gt;
&lt;br /&gt;
* [https://www.raspberrypi.org/products/raspberry-pi-touch-display/ Official Raspberry Pi display] with capacitive touch screen;&lt;br /&gt;
* Displays supporting the AR1100 resistive touch screen controller.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other displays can work as well, and additional work may be needed to support the screen&#039;s touch controller. If unsure, just pick the [https://www.raspberrypi.org/products/raspberry-pi-touch-display/ Official Raspberry Pi display]&lt;br /&gt;
===Enclosure===&lt;br /&gt;
A recommended enclosure is the [http://https://www.amazon.com/dp/B01HV97F64 Smart Pi Touch Case]&lt;br /&gt;
&lt;br /&gt;
You can 3D print a sun shade for this enclosure  [[file:P001 Raspberry Pi Display Sun Shade.stl.zip|download the .stl file]] (&#039;&#039;Courtesy of Michael Lee&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
[[image:SmartPi_touch_case.jpg|400px]] [[image:RaceCapture_Sun_shade_3dprinted_preview.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
[[image:RaceCapture_RaspberryPi_sun_shade_dashboard.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Installed on Dashboard&lt;br /&gt;
&lt;br /&gt;
===Power Supply===&lt;br /&gt;
To power everything, you&#039;ll need a high quality 5v power supply with 2 amps minimum capacity; 3 amps is highly recommended. You&#039;ll preferably want one designed to be hard wired into your car for maximum reliability.&lt;br /&gt;
&lt;br /&gt;
===Heat sinking===&lt;br /&gt;
If you&#039;re running in hot weather, we recommend the standard Raspberry Pi heatsink kit to keep your system cool.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
==Installing Rasbian OS==&lt;br /&gt;
We recommend installing Raspian Jessie Lite - [https://www.raspberrypi.org/downloads/raspbian/ download from the official site] and follow the instructions for burning to an SD card. &lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve created your image, boot up your Raspberry Pi and log in with the default username of &#039;pi&#039; and password &#039;raspberry&#039;.&lt;br /&gt;
&lt;br /&gt;
==Installing dependencies==&lt;br /&gt;
===Change the default password===&lt;br /&gt;
For maximum security, change the password for the default user &#039;pi&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; passwd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and specify a new, secure password.&lt;br /&gt;
&lt;br /&gt;
===Configure Raspberry Pi base settings===&lt;br /&gt;
====Enable WiFi====&lt;br /&gt;
If you want network capability in addition to the ethernet connection, [https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md enable and configure WiFi per the official documentation]&lt;br /&gt;
&lt;br /&gt;
====(Optional) Enable SSH====&lt;br /&gt;
You can optionally enable SSH for remote management from the comfort of your main computer&#039;s keyboard and screen. &lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/remote-access/ssh/ Enable and configure ssh per the official documentation]&lt;br /&gt;
&lt;br /&gt;
====Install multi-touch tools====&lt;br /&gt;
Install the packages that enable multi-touch interfaces.  Enter the following at the command line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; sudo apt-get install mtdev-tools&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configure memory split====&lt;br /&gt;
You&#039;ll need to bump up the memory made available to the GPU. Increase the default value of 64 to &#039;&#039;&#039;256&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Via raspi-config tool&#039;&#039;&#039;&lt;br /&gt;
You can adjust the memory split by running the raspi-config tool. See the [https://www.raspberrypi.org/documentation/configuration/raspi-config.md official documentation]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Editing /boot/config.txt&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can adjust the value directly by editing the /boot/config.txt file. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; sudo nano /boot/config.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find the line containing gpu_mem=64 and change the number to 256&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gpu_mem=256&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Save the file by pressing &#039;&#039;&#039;ctrl-x&#039;&#039;&#039; then  press &#039;&#039;&#039;Y&#039;&#039;&#039;  to confirm.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Installing the RaceCapture app package==&lt;br /&gt;
&lt;br /&gt;
Download the latest [http://podium.live/software RaceCapture app package for Raspberry Pi] and place it in the /opt/ directory of the Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Directly downloading to the Raspberry Pi&#039;&#039;&#039;&lt;br /&gt;
You can download it directly by getting the URL of the package by right-clicking the download link and copying the URL to your clipboard. Then, use it in the command below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /opt&lt;br /&gt;
sudo wget &amp;lt;package URL&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Extract the package===&lt;br /&gt;
Now extract the downloaded package :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo tar -xjvf &amp;lt;downloaded file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Launch the app===&lt;br /&gt;
Launch the RaceCapture app by running the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/racecapture/run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Launching with Watchdog===&lt;br /&gt;
You can enable an automatic watchdog that re-launches the app in case a crash occurs. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/racecapture/run_racecapture.sh -w 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Note:&#039;&#039;&#039; to break out of the watchdog loop, press &#039;&#039;&#039;ctrl-z&#039;&#039;&#039; to suspend the app, then issue:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
killall -9 run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Automatic start upon power up==&lt;br /&gt;
To get the full dedicated dashboard experience, you can enable automatic launch of the RaceCapture app upon power up. &lt;br /&gt;
&lt;br /&gt;
To do this, edit the system&#039;s startup file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/rc.local&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and add the following line &#039;&#039;&#039;before the exit 0&#039;&#039;&#039; line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/racecapture/boot_racecapture.sh pi&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Save the file by pressing &#039;&#039;&#039;ctrl-x&#039;&#039;&#039; then  press &#039;&#039;&#039;Y&#039;&#039;&#039;  to confirm.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Connecting to your RaceCapture system=&lt;br /&gt;
[[image:racecapture_raspberry_pi_connections.jpg|900px]]&lt;br /&gt;
===Powering up===&lt;br /&gt;
* Connect the power to your display and power up. &lt;br /&gt;
* Connect your RaceCapture/Pro or RaceCapture/Track to the Raspberry Pi using the USB cable.  &lt;br /&gt;
&lt;br /&gt;
* Launch the RaceCapture app by running:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/racecapture/run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have it set to launch automatically, simply let it start upon power-up.&lt;br /&gt;
&lt;br /&gt;
===Connection and usage===&lt;br /&gt;
&lt;br /&gt;
Once the RaceCapture App is running, it will connect automatically over USB.  You can use the app just as you would on Android or iOS.&lt;br /&gt;
&lt;br /&gt;
=Extra Features=&lt;br /&gt;
&lt;br /&gt;
===Hardwire buttons===&lt;br /&gt;
&lt;br /&gt;
The RaceCapture app responds to keyboard commands for certain behaviors. You can use a USB keyboard - or a device that emulates keyboard commands - to control the RaceCapture App.&lt;br /&gt;
&lt;br /&gt;
Currently there are keyboard commands for the following:&lt;br /&gt;
* &#039;&#039;&#039;Navigating dashboard screens&#039;&#039;&#039;  - Use the left and right arrow keys to switch between screens&lt;br /&gt;
* &#039;&#039;&#039;Escaping from screens / menus&#039;&#039;&#039; - The Escape key can be used to exit out of screens and options, just like the &#039;back&#039; button on Android.&lt;br /&gt;
* &#039;&#039;&#039;Acknowledging alerts&#039;&#039;&#039; - Use the following keys to acknowledge alerts, including responding to pit-to-car alerts:&lt;br /&gt;
** K : to indicate &#039;Yes&#039; or &#039;OK&#039;&lt;br /&gt;
** N : to indicate &#039;No&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Additional Tips=&lt;br /&gt;
See this link for additional tips on how to setup the Pi and speed up the boot times.  This should be especially helpful for beginners.&lt;br /&gt;
https://wiki.autosportlabs.com/Raspberry_Pi_Tips&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=RaceCapture_on_Raspberry_Pi&amp;diff=8401</id>
		<title>RaceCapture on Raspberry Pi</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=RaceCapture_on_Raspberry_Pi&amp;diff=8401"/>
		<updated>2019-07-31T14:27:40Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Extra Features */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
We designed the RaceCapture app to run nearly anywhere - even a Raspberry Pi. And now, for about $100 you can create a hardwired, dedicated dash for your RaceCapture system. &lt;br /&gt;
&lt;br /&gt;
[[image:racecapture_raspberry_pi.jpg|1024px]]&lt;br /&gt;
&lt;br /&gt;
==Benefits==&lt;br /&gt;
You get all of the benefits of a dedicated dash:&lt;br /&gt;
* &#039;&#039;&#039;Automatically runs upon power up&#039;&#039;&#039; - you can configure the dash to automatically launch the RaceCapture App - just as you&#039;d expect it to work.&lt;br /&gt;
* &#039;&#039;&#039;Hard-wired data connection to RaceCapture&#039;&#039;&#039; - no wireless connections to configure, with the reliability of a direct wire.&lt;br /&gt;
* &#039;&#039;&#039;Runs on the bare metal&#039;&#039;&#039; - The RaceCapture app runs without Android or iOS; there&#039;s no other apps competing for resources, or compromising system stability. &lt;br /&gt;
* &#039;&#039;&#039;Overheating resistance&#039;&#039;&#039; -  Your typical mobile device requires extra care in very hot weather to prevent damage to it&#039;s internal battery, and will shut down if overheated. With proper heat-sinking, the Raspberry Pi should handle the heat.&lt;br /&gt;
&lt;br /&gt;
==Compatibility==&lt;br /&gt;
The RaceCapture app running on the Raspberry Pi is compatible with any hardware version of RaceCapture or PodiumConnect. &lt;br /&gt;
&lt;br /&gt;
[[image:racecapture_raspberry_pi_backside.jpg|1024px]]&lt;br /&gt;
&lt;br /&gt;
==Experimental!==&lt;br /&gt;
While the results are pretty great, these instructions are &#039;&#039;currently&#039;&#039; for those adventurous race car hackers who know their away around a command line, comfortable working with hardware and want to dig in.  &#039;&#039;&#039;Think it&#039;s cool, but too much to tackle?&#039;&#039;&#039; Rope in your nearest computer/electronics geek - you need one on your race team, anyway. :)&lt;br /&gt;
&lt;br /&gt;
==Current status and future plans==&lt;br /&gt;
Even though this is brand new and officially experimental in nature, we still made it as easy as reasonably possible: we wrapped up the RaceCapture App into as close to a self-running installer, that can run on a bone stock Raspberry Pi image - only a few changes are required to the default image, detailed below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;However&#039;&#039;&#039;, in the near future we will create a dedicated Raspberry Pi image that you can burn to an SD card and simply boot up, and move towards more official support as we iron out the issues. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting issues and getting support===&lt;br /&gt;
Chances are you&#039;ll encounter an issue you&#039;ll want to report. Before you do that, [https://github.com/autosportlabs/RaceCapture_App/issues?q=is%3Aopen+is%3Aissue+label%3A%22raspberry+pi%22 check the issue log] to see if it&#039;s already known.&lt;br /&gt;
&lt;br /&gt;
Otherwise - the best place for support, feedback and sharing success stories is [http://forum.autosportlabs.com on the  forums] .  Drop us a note there so we can see the progress of your project!&lt;br /&gt;
&lt;br /&gt;
=Hardware Selection=&lt;br /&gt;
===Raspberry Pi===&lt;br /&gt;
For best performance, we recommend the latest [https://www.raspberrypi.org/products/raspberry-pi-3-model-b/ Raspberry Pi 3].&lt;br /&gt;
&lt;br /&gt;
===Display===&lt;br /&gt;
The RaceCapture app package is designed to recognize the following screens:&lt;br /&gt;
&lt;br /&gt;
* [https://www.raspberrypi.org/products/raspberry-pi-touch-display/ Official Raspberry Pi display] with capacitive touch screen;&lt;br /&gt;
* Displays supporting the AR1100 resistive touch screen controller.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other displays can work as well, and additional work may be needed to support the screen&#039;s touch controller. If unsure, just pick the [https://www.raspberrypi.org/products/raspberry-pi-touch-display/ Official Raspberry Pi display]&lt;br /&gt;
===Enclosure===&lt;br /&gt;
A recommended enclosure is the [http://https://www.amazon.com/dp/B01HV97F64 Smart Pi Touch Case]&lt;br /&gt;
&lt;br /&gt;
You can 3D print a sun shade for this enclosure  [[file:P001 Raspberry Pi Display Sun Shade.stl.zip|download the .stl file]] (&#039;&#039;Courtesy of Michael Lee&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
[[image:SmartPi_touch_case.jpg|400px]] [[image:RaceCapture_Sun_shade_3dprinted_preview.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
[[image:RaceCapture_RaspberryPi_sun_shade_dashboard.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Installed on Dashboard&lt;br /&gt;
&lt;br /&gt;
===Power Supply===&lt;br /&gt;
To power everything, you&#039;ll need a high quality 5v power supply with 2 amps minimum capacity; 3 amps is highly recommended. You&#039;ll preferably want one designed to be hard wired into your car for maximum reliability.&lt;br /&gt;
&lt;br /&gt;
===Heat sinking===&lt;br /&gt;
If you&#039;re running in hot weather, we recommend the standard Raspberry Pi heatsink kit to keep your system cool.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
==Installing Rasbian OS==&lt;br /&gt;
We recommend installing Raspian Jessie Lite - [https://www.raspberrypi.org/downloads/raspbian/ download from the official site] and follow the instructions for burning to an SD card. &lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve created your image, boot up your Raspberry Pi and log in with the default username of &#039;pi&#039; and password &#039;raspberry&#039;.&lt;br /&gt;
&lt;br /&gt;
==Installing dependencies==&lt;br /&gt;
===Change the default password===&lt;br /&gt;
For maximum security, change the password for the default user &#039;pi&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; passwd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and specify a new, secure password.&lt;br /&gt;
&lt;br /&gt;
===Configure Raspberry Pi base settings===&lt;br /&gt;
====Enable WiFi====&lt;br /&gt;
If you want network capability in addition to the ethernet connection, [https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md enable and configure WiFi per the official documentation]&lt;br /&gt;
&lt;br /&gt;
====(Optional) Enable SSH====&lt;br /&gt;
You can optionally enable SSH for remote management from the comfort of your main computer&#039;s keyboard and screen. &lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/remote-access/ssh/ Enable and configure ssh per the official documentation]&lt;br /&gt;
&lt;br /&gt;
====Install multi-touch tools====&lt;br /&gt;
Install the packages that enable multi-touch interfaces.  Enter the following at the command line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; sudo apt-get install mtdev-tools&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configure memory split====&lt;br /&gt;
You&#039;ll need to bump up the memory made available to the GPU. Increase the default value of 64 to &#039;&#039;&#039;256&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Via raspi-config tool&#039;&#039;&#039;&lt;br /&gt;
You can adjust the memory split by running the raspi-config tool. See the [https://www.raspberrypi.org/documentation/configuration/raspi-config.md official documentation]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Editing /boot/config.txt&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can adjust the value directly by editing the /boot/config.txt file. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; sudo nano /boot/config.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find the line containing gpu_mem=64 and change the number to 256&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gpu_mem=256&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Save the file by pressing &#039;&#039;&#039;ctrl-x&#039;&#039;&#039; then  press &#039;&#039;&#039;Y&#039;&#039;&#039;  to confirm.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Installing the RaceCapture app package==&lt;br /&gt;
&lt;br /&gt;
Download the latest [http://podium.live/software RaceCapture app package for Raspberry Pi] and place it in the /opt/ directory of the Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Directly downloading to the Raspberry Pi&#039;&#039;&#039;&lt;br /&gt;
You can download it directly by getting the URL of the package by right-clicking the download link and copying the URL to your clipboard. Then, use it in the command below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /opt&lt;br /&gt;
sudo wget &amp;lt;package URL&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Extract the package===&lt;br /&gt;
Now extract the downloaded package :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo tar -xjvf &amp;lt;downloaded file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Launch the app===&lt;br /&gt;
Launch the RaceCapture app by running the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/racecapture/run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Launching with Watchdog===&lt;br /&gt;
You can enable an automatic watchdog that re-launches the app in case a crash occurs. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/racecapture/run_racecapture.sh -w 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Note:&#039;&#039;&#039; to break out of the watchdog loop, press &#039;&#039;&#039;ctrl-z&#039;&#039;&#039; to suspend the app, then issue:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
killall -9 run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Automatic start upon power up==&lt;br /&gt;
To get the full dedicated dashboard experience, you can enable automatic launch of the RaceCapture app upon power up. &lt;br /&gt;
&lt;br /&gt;
To do this, edit the system&#039;s startup file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/rc.local&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and add the following line &#039;&#039;&#039;before the exit 0&#039;&#039;&#039; line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/racecapture/boot_racecapture.sh pi&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Save the file by pressing &#039;&#039;&#039;ctrl-x&#039;&#039;&#039; then  press &#039;&#039;&#039;Y&#039;&#039;&#039;  to confirm.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Connecting to your RaceCapture system=&lt;br /&gt;
[[image:racecapture_raspberry_pi_connections.jpg|900px]]&lt;br /&gt;
===Powering up===&lt;br /&gt;
* Connect the power to your display and power up. &lt;br /&gt;
* Connect your RaceCapture/Pro or RaceCapture/Track to the Raspberry Pi using the USB cable.  &lt;br /&gt;
&lt;br /&gt;
* Launch the RaceCapture app by running:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/racecapture/run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have it set to launch automatically, simply let it start upon power-up.&lt;br /&gt;
&lt;br /&gt;
===Connection and usage===&lt;br /&gt;
&lt;br /&gt;
Once the RaceCapture App is running, it will connect automatically over USB.  You can use the app just as you would on Android or iOS.&lt;br /&gt;
&lt;br /&gt;
=Extra Features=&lt;br /&gt;
&lt;br /&gt;
===Hardwire buttons===&lt;br /&gt;
&lt;br /&gt;
The RaceCapture app responds to keyboard commands for certain behaviors. You can use a USB keyboard - or a device that emulates keyboard commands - to control the RaceCapture App.&lt;br /&gt;
&lt;br /&gt;
Currently there are keyboard commands for the following:&lt;br /&gt;
* &#039;&#039;&#039;Navigating dashboard screens&#039;&#039;&#039;  - Use the left and right arrow keys to switch between screens&lt;br /&gt;
* &#039;&#039;&#039;Escaping from screens / menus&#039;&#039;&#039; - The Escape key can be used to exit out of screens and options, just like the &#039;back&#039; button on Android.&lt;br /&gt;
* &#039;&#039;&#039;Acknowledging alerts&#039;&#039;&#039; - Use the following keys to acknowledge alerts, including responding to pit-to-car alerts:&lt;br /&gt;
** K : to indicate &#039;Yes&#039; or &#039;OK&#039;&lt;br /&gt;
** N : to indicate &#039;No&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Additional Tips=&lt;br /&gt;
See this link for additional tips on how to setup the Pi and speed up the boot times.  This should be especially helpful for beginners.&lt;br /&gt;
https://wiki.autosportlabs.com/Raspberry_Pi_Tips#Transfer_RaceCapture_from_Pi_to_another_device_.28or_vice_versa.29&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8400</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8400"/>
		<updated>2019-07-31T14:25:28Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Transfer RaceCapture from Pi to another device (or vice versa) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, monitor, (and mouse if you wish), then power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
*This may cause lag in the dashboard so it&#039;s not recommended except for setup if you elect to use a mouse&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates the display, but does not rotate the touch settings&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*If you have a touch screen, you will need to rotate the touch settings for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*I like to keep the dashboard settings similar between my phone, laptop, and in-dash screen.  Once you follow the directions in the link, you can save the config file from RaceCapture to the thumb drive and transfer it between devices.  In my experience, this was not a foolproof and reliable solution and required a bit of playing around with it, but it&#039;s the easiest solution I found.&lt;br /&gt;
**https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8399</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8399"/>
		<updated>2019-07-31T14:00:46Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Transfer RaceCapture from Pi to another device (or vice versa) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, monitor, (and mouse if you wish), then power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
*This may cause lag in the dashboard so it&#039;s not recommended except for setup if you elect to use a mouse&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates the display, but does not rotate the touch settings&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*If you have a touch screen, you will need to rotate the touch settings for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*I like to keep the dashboard settings similar between my phone, laptop, and in-dash screen.  Once you follow the directions in the link, you can save the config file from RaceCapture to the thumb drive and transfer it between devices.  &lt;br /&gt;
**https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8398</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8398"/>
		<updated>2019-07-31T13:59:24Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Rotate screen 180* */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, monitor, (and mouse if you wish), then power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
*This may cause lag in the dashboard so it&#039;s not recommended except for setup if you elect to use a mouse&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates the display, but does not rotate the touch settings&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*If you have a touch screen, you will need to rotate the touch settings for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8397</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8397"/>
		<updated>2019-07-31T13:58:58Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Rotate screen 180* */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, monitor, (and mouse if you wish), then power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
*This may cause lag in the dashboard so it&#039;s not recommended except for setup if you elect to use a mouse&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates the display, but does not rotate the touch settings&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8396</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8396"/>
		<updated>2019-07-31T13:58:32Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Rotate screen 180* */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, monitor, (and mouse if you wish), then power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
*This may cause lag in the dashboard so it&#039;s not recommended except for setup if you elect to use a mouse&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8395</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8395"/>
		<updated>2019-07-31T13:57:15Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Start Pi and Update OS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, monitor, (and mouse if you wish), then power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
*This may cause lag in the dashboard so it&#039;s not recommended except for setup if you elect to use a mouse&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8394</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8394"/>
		<updated>2019-07-31T13:56:56Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Start Pi and Update OS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard (and mouse if you wish), then power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
*This may cause lag in the dashboard so it&#039;s not recommended except for setup if you elect to use a mouse&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8393</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8393"/>
		<updated>2019-07-31T13:56:30Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Make cursor visible */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
*This may cause lag in the dashboard so it&#039;s not recommended except for setup if you elect to use a mouse&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8392</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8392"/>
		<updated>2019-07-31T13:56:00Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Make cursor visible */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
*This may cause lag in the dashboard so it&#039;s not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8391</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8391"/>
		<updated>2019-07-31T13:55:23Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Make cursor visible */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
*This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8390</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8390"/>
		<updated>2019-07-31T13:55:11Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Run Racecapture manually */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
*If you don&#039;t set it up to run automatically, you&#039;ll have to use this command to run it manually.  &lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8389</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8389"/>
		<updated>2019-07-31T13:54:27Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot; by putting a # symbol at the front of the line&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8388</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8388"/>
		<updated>2019-07-31T13:52:44Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8387</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8387"/>
		<updated>2019-07-31T13:52:22Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://bit.ly/2YwRkrj]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8386</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8386"/>
		<updated>2019-07-31T13:49:43Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://wiki.dfrobot.com Search for 7&amp;quot; HDMI]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8385</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8385"/>
		<updated>2019-07-31T13:49:13Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506 https://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506 Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8384</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8384"/>
		<updated>2019-07-31T13:48:25Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506 DFRobot Instructions]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8383</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8383"/>
		<updated>2019-07-31T13:47:59Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[http://www.example.com https://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506 title]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8382</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8382"/>
		<updated>2019-07-31T13:47:26Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[http://wiki.dfrobot.com/] search for HDMI 7&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8381</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8381"/>
		<updated>2019-07-31T13:47:06Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[http://wiki.dfrobot.com/7&amp;quot;&#039;&#039;&amp;quot;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8380</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8380"/>
		<updated>2019-07-31T13:46:33Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8379</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8379"/>
		<updated>2019-07-31T13:46:12Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8378</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8378"/>
		<updated>2019-07-31T13:44:49Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[&amp;quot;https://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&amp;quot;]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8377</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8377"/>
		<updated>2019-07-31T13:43:58Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8376</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8376"/>
		<updated>2019-07-31T13:43:39Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**[https://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&amp;quot;]&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8375</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8375"/>
		<updated>2019-07-31T13:42:59Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Set up for DFRobot display */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**https://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8374</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8374"/>
		<updated>2019-07-31T13:38:08Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Tweak the Pi’s config to make it startup and run faster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8373</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8373"/>
		<updated>2019-07-31T13:37:20Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Tweak the Pi’s config to make it startup and run faster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize these selections to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8372</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8372"/>
		<updated>2019-07-31T13:36:40Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Tweak the Pi’s config to make it startup and run faster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
*Open the console based raspi-config application:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8371</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8371"/>
		<updated>2019-07-31T13:35:29Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Start Pi and Update OS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, connect a keyboard, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8370</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8370"/>
		<updated>2019-07-31T13:33:52Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Install Raspbian Stretch Lite on MicroSD card */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
**https://raspberry-projects.com/pi/pi-operating-systems/win32diskimager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8369</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8369"/>
		<updated>2019-07-31T13:29:05Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Install Raspbian Stretch Lite on MicroSD card */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the computer&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8368</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8368"/>
		<updated>2019-07-31T13:28:20Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Install Raspbian Stretch Lite on MicroSD card */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap.  Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8367</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8367"/>
		<updated>2019-07-31T13:26:48Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Installing the RaceCapture App */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap, Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
*Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8366</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8366"/>
		<updated>2019-07-31T13:26:35Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Change keyboard to US */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap, Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8365</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8365"/>
		<updated>2019-07-31T13:26:23Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Install Raspbian Stretch Lite on MicroSD card */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap, Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8364</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8364"/>
		<updated>2019-07-31T13:25:11Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Install Raspbian Stretch Lite on MicroSD card */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap, Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
On a computer, format the card to FAT32 format&lt;br /&gt;
&lt;br /&gt;
Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8363</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8363"/>
		<updated>2019-07-31T13:23:48Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Install Raspbian Stretch Lite on MicroSD card */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
*Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap, Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card to FAT32 format&lt;br /&gt;
*Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8362</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8362"/>
		<updated>2019-07-31T13:23:16Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Install Raspbian Stretch Lite on MicroSD card */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap, Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
On a computer, format the card to FAT32 format&lt;br /&gt;
Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8361</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8361"/>
		<updated>2019-07-31T13:22:38Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Tweak the Pi’s config to make it startup and run faster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap, Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card with FAT32&lt;br /&gt;
*Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8360</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8360"/>
		<updated>2019-07-31T13:21:40Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
=Install Raspbian Stretch Lite on MicroSD card=&lt;br /&gt;
Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap, Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card with FAT32&lt;br /&gt;
*Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
=Start Pi and Update OS=&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tweak the Pi’s config to make it startup and run faster=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8359</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8359"/>
		<updated>2019-07-31T13:21:07Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Install Raspbian Stretch Lite on MicroSD card */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
==Install Raspbian Stretch Lite on MicroSD card==&lt;br /&gt;
Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap, Class 10 is preferred.  I used this one:&lt;br /&gt;
** https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card with FAT32&lt;br /&gt;
*Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
==Start Pi and Update OS==&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Tweak the Pi’s config to make it startup and run faster==&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8358</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8358"/>
		<updated>2019-07-31T13:20:40Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* General Notes and Commands */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
==Install Raspbian Stretch Lite on MicroSD card==&lt;br /&gt;
Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap, Class 10 is preferred.  I used this one:&lt;br /&gt;
**https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card with FAT32&lt;br /&gt;
*Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
==Start Pi and Update OS==&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Tweak the Pi’s config to make it startup and run faster==&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=General Notes and Commands=&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8357</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8357"/>
		<updated>2019-07-31T13:19:54Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* UNDER CONSTRUCTION */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
==Install Raspbian Stretch Lite on MicroSD card==&lt;br /&gt;
Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap, Class 10 is preferred.  I used this one:&lt;br /&gt;
**https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card with FAT32&lt;br /&gt;
*Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
==Start Pi and Update OS==&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Tweak the Pi’s config to make it startup and run faster==&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General Notes and Commands==&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
	<entry>
		<id>https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8356</id>
		<title>Raspberry Pi Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.autosportlabs.com/index.php?title=Raspberry_Pi_Tips&amp;diff=8356"/>
		<updated>2019-07-30T18:54:53Z</updated>

		<summary type="html">&lt;p&gt;Turbosax2: /* Start Pi and Update OS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=UNDER CONSTRUCTION=&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
I started out my Raspberry Pi project as a beginner to all things Pi.  There was lots of useful information in the forums, but I still had to learn a lot along the way.  Although I don&#039;t spell out every detail, this page should help beginners along.  All of the &amp;quot;boxes&amp;quot; are text that you will type in or see on the screen.  Unless otherwise instructed, press the &amp;quot;Enter&amp;quot; key after typing the text.&lt;br /&gt;
&lt;br /&gt;
I started with a writeup by PS14 on the forums, then added my own notes and additional sections.  Huge thanks to PS14 for his awesome notes!&lt;br /&gt;
&lt;br /&gt;
You can pick and choose which sections in these Tips may be appropriate for you.  Depending on  your setup, not all of them will be.&lt;br /&gt;
&lt;br /&gt;
==Install Raspbian Stretch Lite on MicroSD card==&lt;br /&gt;
Choose the fastest MicroSD card you can for fastest boot times.  32gb is plenty big and reasonably cheap, Class 10 is preferred.  I used this one:&lt;br /&gt;
**https://www.amazon.com/gp/product/B06XYHN68L/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&lt;br /&gt;
*On a computer, format the card with FAT32&lt;br /&gt;
*Download the latest Raspberry Pi Image to the PC&lt;br /&gt;
**Stretch Lite - https://www.raspberrypi.org/downloads/raspbian/&lt;br /&gt;
*Write the image to the SD card using Win32DiskImager&lt;br /&gt;
&lt;br /&gt;
==Start Pi and Update OS==&lt;br /&gt;
*Place the MicroSD card in the Pi, connect a LAN cable to the Pi&#039;s Cat5 connection for internet access, and power up.&lt;br /&gt;
*You will be asked to login to the device:&lt;br /&gt;
**Login: pi&lt;br /&gt;
**Password: raspberry&lt;br /&gt;
*Once you have a blinking command line prompt, update to the latest packages:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*You will be asked if you would like to continue, press &amp;quot;Y&amp;quot; and press enter&lt;br /&gt;
*Once the upgrade is done, clean the upgrade junk&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get clean&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Tweak the Pi’s config to make it startup and run faster==&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo raspi-config&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Use the up and down arrow keys to move the highlighted selection between the options available. Pressing the right arrow key will jump out of the Options menu and take you to the &amp;lt;Select&amp;gt; and &amp;lt;Finish&amp;gt; buttons. Pressing left will take you back to the options. Alternatively, you can use the Tab key to switch between these.&lt;br /&gt;
*Highlight #3 Boot Options, hit the right arrow key, and press enter.&lt;br /&gt;
*Choose Desktop/CLI as Pi&lt;br /&gt;
**Choose B2 Console Autologin (with this you will no longer need to enter the password every time the Pi boots up) and press enter&lt;br /&gt;
*Highlight #4 Localisation Options and hit enter.  I live in the Eastern Timezone of the US - customize this to your location.&lt;br /&gt;
**Choose I1 Change Locale&lt;br /&gt;
**Uncheck en_GB.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Check en_US.UTF-8 UTF-8 by hitting the spacebar&lt;br /&gt;
**Hit tab so OK is highlighted and hit enter&lt;br /&gt;
**Choose en_US.UTF-8, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I2 Change Timezone and hit enter&lt;br /&gt;
**Choose US, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose Eastern, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Choose I4 Change Wi-Fi Country and hit enter&lt;br /&gt;
**Scroll down to US United States, hit tab to highlight Ok, and hit enter&lt;br /&gt;
**Hit enter&lt;br /&gt;
*Highlight #7 Advanced Options&lt;br /&gt;
*Choose A3 Memory split and change 64 to 256 and press enter&lt;br /&gt;
*Exit out of menu and hit enter with “Yes” selected to reboot&lt;br /&gt;
*When the Pi reboots you should now be auto logged in as user &amp;quot;Pi&amp;quot; and have a blinking command line prompt&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/cmdline.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Inside this file, make the following changes:&lt;br /&gt;
**Append the following to the end of the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;quiet splash loglevel=0 logo.nologo&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Add the following line to the bottom of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_splash=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
*If you are not using the Pi’s internet,wifi or bluetooth during racing, you can turn these services off to boot up faster. They are easily turned back on when you need to do updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl stop dhcpcd.service&lt;br /&gt;
sudo systemctl disable dhcpcd.service&lt;br /&gt;
sudo systemctl stop hciuart.service&lt;br /&gt;
sudo systemctl disable hciuart.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you need to use the internet to update Pi or RaceCapture, simply enable and start the same services.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl enable dhcpcd.service&lt;br /&gt;
sudo systemctl start dhcpcd.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Change keyboard to US=&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/default/keyboard&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change XKBLAYOUT from “gb” to “us”&lt;br /&gt;
Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
=Installing the RaceCapture App=&lt;br /&gt;
Change to the /opt directory to install the RaceCapture app&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /opt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download the RaceCapture app.  Update the URL below for the version that you want.  This is the latest version as of 2019-07-08.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://autosportlabs-software.s3-us-west-2.amazonaws.com/racecapture_linux_raspberrypi_1.16.0.tar.bz2&amp;lt;/pre&amp;gt;&lt;br /&gt;
Extract the downloaded package.  Hit the tab key after typing &amp;quot;race&amp;quot; and it should autofill the name for you so you don&#039;t have to type it all out.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo tar -xjvf race...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Setup for Mausberry circuit=&lt;br /&gt;
The Mausberry circuit is a great way to power the Pi on/off with the ignition and (hopefully) prevent the MicroSD card from becoming corrupt.&lt;br /&gt;
*Here is the link.  Follow the instructions for Raspbian distributions (or just follow the instructions below).&lt;br /&gt;
**https://mausberry-circuits.myshopify.com/pages/car-setup&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://files.mausberrycircuits.com/carsetup.sh&lt;br /&gt;
sudo bash carsetup.sh&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you want, you can change the minute multiplier in the carsetup.sh file to “60” to change it to seconds.  I set my delay to 1 and minutes multiplier to 5, so my delay is 5 seconds.&lt;br /&gt;
&lt;br /&gt;
=Make the RaceCapture app Auto-start=&lt;br /&gt;
*I recommend waiting until you have everything configured the way you want before making the app auto-start.  &lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/rc.local&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add the following line before the exit 0 line:&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/boot_racecapture.sh pi&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter.&lt;br /&gt;
*Reboot to take effect.&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Set up for DFRobot display=&lt;br /&gt;
*If you use the official Pi display, there&#039;s not much setup  to do.  If you choose another display, you may need to configure it.  I chose to use a 7&amp;quot; DFRobot display:&lt;br /&gt;
**http://wiki.dfrobot.com/7&#039;&#039;_HDMI_Display_with_Capacitive_Touchscreen_SKU__DFR0506&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;disable_overscan=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;hdmi_cvt 1024 600 60 6 0 0 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Uncomment and modify these two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hdmi_group=2 &lt;br /&gt;
hdmi_mode=87&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cd /opt/racecapture/&lt;br /&gt;
Sudo nano run_racecapture.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Comment out both checks for &amp;quot;check for ar1100 resistive touch&amp;quot; and &amp;quot;check for ft5406 capacitive touch&amp;quot;&lt;br /&gt;
*Change kivy settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add these lines to the input section of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[input] &lt;br /&gt;
mouse = mouse &lt;br /&gt;
mtdev_%(name)s = probesysfs,provider=mtdev&lt;br /&gt;
hid_%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
#%(name)s = probesysfs,provider=hidinput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General Notes and Commands==&lt;br /&gt;
===Run Racecapture manually===&lt;br /&gt;
&amp;lt;pre&amp;gt;/opt/racecapture/run_racecapture.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Make cursor visible===&lt;br /&gt;
This may cause lag in dashboard so not recommended except for setup&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this to the modules ection&lt;br /&gt;
&amp;lt;pre&amp;gt;cursor = 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the file by pressing Ctrl + X, type Y, and hit enter&lt;br /&gt;
&lt;br /&gt;
===Exit RaceCapture===&lt;br /&gt;
*Depending on how you have this setup, it may be tricky.  This method usually works best for when you have RaceCapture auto-boot.&lt;br /&gt;
**Alt + PrintScreen + K , followed by exiting the app via touch screen&lt;br /&gt;
&lt;br /&gt;
===Manually shutdown pi===&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo Shutdown -h now&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rotate screen 180*===&lt;br /&gt;
*This just rotates display, not touch&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /boot/config.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;display_rotate=2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Rotate touch for RaceCapture&lt;br /&gt;
&amp;lt;pre&amp;gt;Sudo nano /home/pi/.kivy/config.ini&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;mtdev_%(name)s = probesysfs,provider=mtdev,param=rotation=180&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Transfer RaceCapture from Pi to another device (or vice versa)===&lt;br /&gt;
*https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/&lt;/div&gt;</summary>
		<author><name>Turbosax2</name></author>
	</entry>
</feed>