Cracked Volumio 1.55 Pi with a Waveshare 3.2" Touchscreen
Install instructions below
Update package list with
sudo apt-get update
Install LCD driver support
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
sudo reboot
Set LCD console and font
sudo nano /boot/cmdline.txt
Add at the end of the line
fbcon=map:1 fbcon=font:ProFont6x11
Add touchscreen to boot config
sudo nano /boot/config.txt
Add these lines
gpu_mem=128
dtoverlay=ads7846,speed=500000,penirq=17,swapxy=1
Add in LCD kernal modules
sudo nano /etc/modules
Add these 2 lines. First one is huge, second line starts at “fbtft_device…”
flexfb width=320 height=480 regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3
fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24
Create .Xauthority file
sudo touch /home/pi/.Xauthority
Install X server
sudo apt-get install xorg xserver-xorg xserver-xorg-core xinit libx11-dev libxext-dev libxi-dev x11proto-input-dev xinput evtest autoconf -y
Reconfigure the Xwrapper.config file in order to allow all users to start the X server.
[code]sudo dpkg-reconfigure x11-common
Select Anybody in the popup menu[/code]
Edit/create the X LCD device
sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Either change
fb0 to fb1
or if file doesn’t exist add these lines
[code]Section “Device”
Identifier “Allwinner A10/A13 FBDEV”
Driver “fbturbo”
Option “fbdev” “/dev/fb1”
Option "SwapbuffersWait" "true"
EndSection
[/code]
Create X touchscreen calibration
sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf
Add these lines
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3900 240 240 3900"
EndSection
Define input device?
sudo cp /usr/share/X11/xorg.conf.d/99-calibration.conf /usr/share/X11/xorg.conf.d/01-input.conf
Install lightdm window manager
sudo apt-get install --no-install-recommends lightdm
(q to quit) q
Install X fbturbo driver
sudo apt-get --no-install-recommends install git build-essential xorg-dev xutils-dev x11proto-dri2-dev
sudo apt-get --no-install-recommends install libltdl-dev libtool automake libdrm-dev
git clone https://github.com/ssvb/xf86-video-fbturbo.git
cd xf86-video-fbturbo
autoreconf -vi
./configure --prefix=/usr
make
sudo make install
Enable SPI and disable boot to desktop
[code]sudo raspi-config
Advanced Option > A5 SPI Enable/Disable automatic loading > Yes > Ok
Enable Boot to Desktop > Console Text console, requiring login
Finish
Would you like to reboot now? > Yes[/code]
Install web browser
sudo apt-get --no-install-recommends install iceweasel
Configure Volumio browser window to start with X
sudo nano /etc/X11/xinit/xinitrc
Add just below the line # global xinitrc file, used by all X sessions started by xinit (startx), paste the following string
exec iceweasel -fullscreen -url http://localhost
Don’t really know what this does
sudo cp /usr/share/applications/iceweasel.desktop /etc/xdg/autostart/
Autostart X on boot
sudo nano /etc/rc.local
and paste the following lines just before the last command exit 0:
su -l root -c startx &
su pi &
export DISPLAY=:0.0
Once happy browser starts on boot’ Install xul-ext-fullscreen if you want a ‘fullscreen’ kiosk-mode then reboot
Browser will show an Add this Installation message to allow the full-screen add-on, click on Continue and then on Restart Iceweasel.
Very likely to need another reboot for it to display properly
sudo apt-get install xul-ext-fullscreen -y
Install unclutter to hide your mouse cursor after few seconds of inactivity
sudo apt-get install unclutter -y
Hope that helps people
Cheers
Ian