Categoria: Hardware

Ili9488 Raspberry Pi

sudo nano /boot/cmdline.txt

Add the following lines to the kernel command line parameters (the end of the line)

fbcon=map:10 fbcon=font:VGA8x8 FRAMEBUFFER=/dev/fb1

Install the required fbdev drivers, and make the framebuffer entry for the X11 server

sudo apt-get install xserver-xorg-video-fbdev
sudo nano /usr/share/X11/xorg.conf.d/99-fbdev.conf
Section "Device"
Identifier "myfb"
Driver "fbdev"
Option "fbdev" "/dev/fb1"

Now, for the real modules loading, create the first config file

sudo nano /etc/modules-load.d/fbtft.conf

Add these lines to it


And the one containing the display parameters

sudo nano /etc/modprobe.d/fbtft.conf

Add these lines to it

options fbtft_device name=flexpfb rotate=180 fps=60 gpios=dc:18,reset:7,wr:17,cs:4,db00:22,db01:23,db02:24,db03:10,db04:25,db05:9,db06:11,db07:8
options flexfb width=400 height=320 buswidth=8 init=-1,0xb0,0x0,-1,0x11,-2,120,-1,0x3A,0x55,-1,0xC2,0x33,-1,0xC5,0x00,0x1E,0x80,-1,0x36,0x28,-1,0xB1,0xB0,-1,0xE0,0x00,0x04,0x0E,0x08,0x17,0x0A,0x40,0x79,0x4D,0x07,0x0E,0x0A,0x1A,0x1D,0x0F,-1,0xE1,0x00,0x1B,0x1F,0x02,0x10,0x05,0x32,0x34,0x43,0x02,0x0A,0x09,0x33,0x37,0x0F,-1,0x11,-1,0x29,-3

Your display should start up at this time, if not, perform a reboot.
To have the boot console on the display, run

con2fbmap 1 1

You can install fbcp, an utility to mirror framebuffers

sudo apt-get install cmake
git clone
cd rpi-fbcp/
mkdir build
cd build/
cmake ..
sudo install fbcp /usr/local/bin/fbcp

To disable the console blanking timeout, edit

sudo nano /etc/kbd/config

You can set custom fonts, and resize the framebuffer resolution this way:


sudo apt-get install kbd
sudo dpkg-reconfigure console-setup



ILI9341 on Raspberry PI

sudo apt-get install x11vnc Xvfb -y && sudo x11vnc -storepasswd
#Set password for server
x11vnc -bg -nevershared -forever -tightfilexfer -usepw -display :0


What’s better than a small computer ?
A small computer with a small neat display, of course 🙂
Let’s wire the ILI9341 to our pi:

Test the module:

sudo modprobe fbtft_device custom \
name=fb_ili9341 gpios=reset:25,dc:24,led:18 \
speed=16000000 rotate=90 bgr=1

Pictures pending

sudo nano /boot/cmdline.txt
#add to the end:
For using the small display with an X session:
sudo nano /usr/share/X11/xorg.conf.d/99-fbdev.conf
#add the following to the file
Section "Device"
Identifier "myfb"
Driver "fbdev"
Option "fbdev" "/dev/fb1"

To start the session:

sudo FRAMEBUFFER=/dev/fb1 startx


sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install kbd xserver-xorg-video-fbdev -y
sudo dpkg-reconfigure console-setup

Choose a small font like Terminus6x12

sudo sh -c "TERM=linux setterm -blank 1 >/dev/tty0"

sudo nano /etc/kbd/config
#Edit and search for BLANK_TIME=30 and set it to BLANK_TIME=0
#Test you actually changed something
cat /sys/module/kernel/parameters/consoleblank
sudo nano /etc/X11/Xwrapper.config
# allowd_users from "console" to "anybody"
sudo nano /boot/config.txt
#uncomment hdmi_force_hotplug=1