101 Direct Volumio GUI Raspberry Pi + 3.5 LCD TouchScreen

Tell us how you made up your Volumio powered Project

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

101 Direct Volumio GUI Raspberry Pi + 3.5 LCD TouchScreen

Postby yakelkun » Fri Sep 18 2015 20:55

Hi,

I recently purchased a RPi 2 + 3.5 LCD and case for 46$ s&h included... Couldn't resist...

http://www.aliexpress.com/item/Osoyoo-Original-Raspberry-Pi-2-Model-B-Board-3-5-LCD-Touch-Screen-Display-Acrylic-Case/32443451181.html

My goal is to have an all in one Volumio system, with touchscreen allowing me to operate basic Volumio functions.

Here is the result !!

Image


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:
Code: Select all
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.
Code: Select all
reboot

Next, use the resize2fs command in this way:
Code: Select all
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 :
Code: Select all
rpi-update
reboot
<-- several minutes, then reboot.

3) Setup display on the 3.5" LCD as primary display
Code: Select all
apt-get update
apt-get install lightdm
<-- several minutes.
Code: Select all
raspi-config
-> Check the configuration: Enable Boot to Desktop/Scratch -> GUI
4) Install driver :
Code: Select all
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 !!)
Code: Select all
tar xvf LCD-show.tar.gz
(the drivers)
Code: Select all
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
Code: Select all
apt-get install lxde


Sometime you get a GTK cannot open display error... just :
Code: Select all
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: Select all
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



Next step :
Analyze performance impact on Volumio.

Your comments are welcome
Random avatar
yakelkun
Serious Listener
Serious Listener
 
Posts: 81
Joined: Wed Dec 17 2014 14:08

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


101 Direct Volumio GUI Raspberry Pi + 3.5 LCD TouchScreen

Postby zalun » Thu Oct 15 2015 07:40

Hi,

I've got Waveshare 4 inch, the drivers from their site are not working indeed.
Where did you get the drivers from?
Random avatar
zalun
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Thu Oct 15 2015 07:01


101 Direct Volumio GUI Raspberry Pi + 3.5 LCD TouchScreen

Postby yakelkun » Thu Oct 15 2015 08:22

Look at chapter "4".
Random avatar
yakelkun
Serious Listener
Serious Listener
 
Posts: 81
Joined: Wed Dec 17 2014 14:08


101 Direct Volumio GUI Raspberry Pi + 3.5 LCD TouchScreen

Postby erotavlas » Thu Oct 15 2015 13:51

It seems very interesting. I'm looking forward to see test about performance impact.
Random avatar
erotavlas
Sunday DIYer
Sunday DIYer
 
Posts: 29
Joined: Mon Mar 16 2015 13:36


101 Direct Volumio GUI Raspberry Pi + 3.5 LCD TouchScreen

Postby yakelkun » Thu Oct 15 2015 16:43

As far as I tested no impact on listening (mp3 320kbp mainly), on the RPi 2
Anyway to say the truth, Volumio GUI isn't adapted to this small screen and resolution.


I hop Volumio 2 will come with a minimalist interface...
Random avatar
yakelkun
Serious Listener
Serious Listener
 
Posts: 81
Joined: Wed Dec 17 2014 14:08


101 Direct Volumio GUI Raspberry Pi + 3.5 LCD TouchScreen

Postby zalun » Fri Oct 16 2015 08:21

Well, chapter 4 has info about 3.5 inch waveshare. I tried a dummy approach to simply install these drivers, but no luck.
If I'd knew what's the difference between these files and those provided by Waveshare, maybe I could make them work.
I think it could also be benefitial to run the browser as a window manager. Volumio has an ability to set the network and switch itself off from the web UI.
Random avatar
zalun
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Thu Oct 15 2015 07:01


101 Direct Volumio GUI Raspberry Pi + 3.5 LCD TouchScreen

Postby yakelkun » Fri Oct 16 2015 11:02

You may have noticed that I use a 3.5 screen, and the driver directories names start with 35.... 40... if my memory is good...

Did you use corresponding driver ? 35 for me, 40 for you I guess....
Random avatar
yakelkun
Serious Listener
Serious Listener
 
Posts: 81
Joined: Wed Dec 17 2014 14:08


101 Direct Volumio GUI Raspberry Pi + 3.5 LCD TouchScreen

Postby Alexandre » Thu Oct 29 2015 02:14

I have a Pi TFT 2.8' can you help me install my tft to works with volumio?

thanks :p
Random avatar
Alexandre
Fresh off the boat
Fresh off the boat
 
Posts: 4
Joined: Mon Oct 12 2015 23:53


101 Direct Volumio GUI Raspberry Pi + 3.5 LCD TouchScreen

Postby gat » Sat Dec 05 2015 16:16

help

Code: Select all
root@airaudio:~# tar -zxvf LCD-show.tar.gz
tar (child): LCD-show.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
root@airaudio:~# tar (child): LCD-show.tar.gz: Cannot open: No such file or directory
bash: syntax error near unexpected token `child'
root@airaudio:~# tar (child): Error is not recoverable: exiting now
bash: syntax error near unexpected token `child'
root@airaudio:~# tar: Child returned status 2
bash: tar:: command not found
root@airaudio:~# tar: Error is not recoverable: exiting now
bash: tar:: command not found


possibility give img installed?
Last edited by MobeyDuck on Sat Dec 05 2015 20:19, edited 1 time in total.
Reason: Added code block
Random avatar
gat
Fresh off the boat
Fresh off the boat
 
Posts: 1
Joined: Sat Dec 05 2015 16:10


101 Direct Volumio GUI Raspberry Pi + 3.5 LCD TouchScreen

Postby yakelkun » Thu Jan 21 2016 18:20

Seeing the outpout, the .tar file doesn't exist.

Sorry for the image but I reuse the LCD for another project.

Just triplecheck the file you downloaded.
Random avatar
yakelkun
Serious Listener
Serious Listener
 
Posts: 81
Joined: Wed Dec 17 2014 14:08

Next

Return to Diy Volumio Projects

Who is online

Users browsing this forum: No registered users and 0 guests