Booting the Raspberry Pi directly to Desktop
GUI is possibly by using the raspi-config tool,
and selecting the option to boot directly to
the GUI.
9) Shutdown the Raspberry Pi safely, and
remove the power.
10) Connect the 4DPi-32-II to the Raspberry Pi,
and reapply power. The terminal should begin
to show on the 4DPi-32-II, and will be ready to
use once the Raspberry Pi has booted.
4.3. Calibrating the Touch Screen
Each 4DPi-32-II which is shipped from the 4D
Systems factory is slightly different, in the sense
that each of the touch screens has a slightly
different calibration. In order to get the best from
your 4DPi-32-II, you will need to calibrate the
display so it is as accurate as possible.
To calibrate the touch screen for the LDXE GUI, the
xinput_calibrator is required and the following
steps should be carried out. Make sure LDXE is not
running before you start, quite LDXE if it is and
return to the terminal prompt.
1) Delete the old calibration file, in preparation
for the new one. Do this BEFORE running
startx and the calibrator.
sudo rm /etc/X11/xorg.conf.d/99calibration.conf
2) This step is to be performed via a SSH session
to your Raspberry PI. If you wish to do this
directly with a keyboard on the Raspberry Pi
instead, skip to the next step. Enter the
following two commands:
FRAMEBUFFER=/dev/fb1 startx &
DISPLAY=:0.0 xinput_calibrator
3) This step is instead of step 2, if you are using a
keyboard connected to your Pi. Start the LXDE
GUI using the following command:
FRAMEBUFFER=/dev/fb1 startx
4) Execute the xinput_calibrator command
from the terminal after the LXDE GUI has
started.
5) Follow the directions on the screen. Once
complete you should get an output which
contains information such as this:
Section "InputClass"
Identifier "calibration"
MatchProduct "ads7846"
Option "Calibration" "119
3736 3850 174"
# Option "SwapAxes" "1"
EndSection
6) If the /etc/X11/xorg.conf.d directory does not
exist, it needs to be created manually.
mkdir /etc/X11/xorg.conf.d
7) Run the following command
sudo nano /etc/X11/xorg.conf.d/99calibration.conf
Copy the information shown in step 4 into this
file, save it and exit nano.
8) Restart your Raspberry Pi. You should now
have a perfectly calibrated 4DPi-32-II.
4.4. Change the Display Orientation
To change the display orientation, simply edit the
/boot/cmdline.txt file
Find the parameter:
4dpi.rotate = 0
And change this to have the value of 0, 90, 180 or
270.
Save the file and restart your Raspberry Pi.
The touch screen with automatically remap the
alignment thanks to the custom kernel.
4.5. Change the SPI Freq and Compression
The 4DPi-32-II can be adjusted to work with a
range of SPI Frequencies and levels of
compression, depending on the requirements of
the end product/project.
Increasing the frequency can result in a higher
Frame Rate (FPS), however will use more power
and processor time.
Increasing the level of the compression can also
result in a higher FPS, but may cause the display to
corrupt.
By default, a SPI Frequency of 48Mhz is used, with
a Compression level of 7.