Hi,
I recently purchased a RPi 2 + 3.5 LCD and case for 46$ s&h included… Couldn’t resist…
My goal is to have an all in one Volumio system, with touchscreen allowing me to operate basic Volumio functions.
Here is the result !!
Ressource : http://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)#Software for important informations into the FAQ. Don’t use the driver on this page if you bought the very same hardware as mine.
1) Install Volumio on the microsd, use all the available space extending the filesystem. You need at least a 2GB sdcard.
A little reminder to use all available microsd space.
First you have to use fdisk to resize the partition to fill the whole SD card. You can do this by doing:
fdisk /dev/mmcblk0
Press “p” to show the current partitions and note down the details of the main one that RuneOS is on.
Delete it, pressing “d” and choosing the relevant partition number. (Number “3” for me).
Press “n” to make a new partition, and “p” to select a primary partition. Enter the same start block that you wrote down above, and allow it to use the default end block (the last block available on the device).
Press “t” and enter the value “82” to mark it as a Linux partition.
Press “w” to write changes and exit. You may have to reboot after this for changes to be registered. This has resized the partition, but not yet the filesystem.
reboot
Next, use the resize2fs command in this way:
resize2fs /dev/mmcblk0p3
(“3” for my setup)
This will resize the filesystem to fill the whole partition, and you will have a lot more space available for stuff.
2) update RPi :
rpi-update
reboot
<-- several minutes, then reboot.
3) Setup display on the 3.5" LCD as primary display
apt-get update
apt-get install lightdm
<-- several minutes.
raspi-config
-> Check the configuration: Enable Boot to Desktop/Scratch -> GUI
4) Install driver :
cd /root
wget http://osoyoo.com/wp-content/uploads/samplecode/raspberry_35_inch_ts.rar
tar -zxvf raspberry_35_inch_ts.rar
tar -zxvf LCD-show.tar.gz
(you get a ready to use raspbian distro with drivers and the drivers !!)
tar xvf LCD-show.tar.gz
(the drivers)
cd LCD-show
./LCD35_v1
<-- Should take several minutes before automatic reboot. DON’T EVER REBOOT when shuting down process started, the reboot last for minutes too.
Miracle the RPi boot with display on the Touch LCD screen and display a GUI login !!
5 Install LXDE
apt-get install lxde
Sometime you get a GTK cannot open display error… just :
apt-get install xinit
Test launching startx
You may see the GUI appear. On next reboot, LXDE will automatically start logged as Pi as we choose “GUI” in raspi-config.
6 Display Volumio WebUI
To start GUI and midori on Volumio GUI automatically at boot.
[code]nano ~/.config/lxsession/LXDE/autostart
Comment out everything using a ‘#’ at the start of each line and then add the following lines
Auto run the browser
@xset s off
@xset -dpms
@xset s noblank
@midori -e Fullscreen -a http://127.0.0.1[/code]
Next step :
Analyze performance impact on Volumio.
Your comments are welcome