Volumio on touch screen

HI guys!
djoulle, do you followed the adafruit´s tutorial to install the drivers of touch screen?
I have a capacitive version of this touch screen…

Yes I used the “DIY Installer script”, but this one is for the resistive model only :
https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/easy-install

Your model should be this one :
https://learn.adafruit.com/adafruit-2-8-pitft-capacitive-touch/easy-install

The resistive model works fine with a stylus, I would be very curious to know if the capacitive model is really close to a Iphone style touchscreen.

If you need a hand for the setup, don’t hesitate to ask :slight_smile:

Julien

Julien, Thanks for the answer =D
but bad news about the installation… =(
take a look…

[code][ADAFRUIT] Starting image modification
–2014-12-03 20:07:31-- http://adafruit-download.s3.amazonaws.com/libraspberrypi-bin-adafruit.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)… 54.231.8.1
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.8.1|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 184818 (180K) [application/octet-stream]
Saving to: `libraspberrypi-bin-adafruit.deb’

100%[======================================>] 184,818 239K/s in 0.8s

2014-12-03 20:07:33 (239 KB/s) - `libraspberrypi-bin-adafruit.deb’ saved [184818/184818]

–2014-12-03 20:07:33-- http://adafruit-download.s3.amazonaws.com/libraspberrypi-dev-adafruit.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)… 54.231.8.1
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.8.1|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 672150 (656K) [application/octet-stream]
Saving to: `libraspberrypi-dev-adafruit.deb’

100%[======================================>] 672,150 206K/s in 3.2s

2014-12-03 20:07:36 (206 KB/s) - `libraspberrypi-dev-adafruit.deb’ saved [672150/672150]

–2014-12-03 20:07:36-- http://adafruit-download.s3.amazonaws.com/libraspberrypi-doc-adafruit.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)… 54.231.8.1
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.8.1|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 31480442 (30M) [application/octet-stream]
Saving to: `libraspberrypi-doc-adafruit.deb’

100%[======================================>] 31,480,442 1.06M/s in 46s

2014-12-03 20:08:22 (672 KB/s) - `libraspberrypi-doc-adafruit.deb’ saved [31480442/31480442]

–2014-12-03 20:08:22-- http://adafruit-download.s3.amazonaws.com/libraspberrypi0-adafruit.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)… 54.231.17.137
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.17.137|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 444188 (434K) [application/octet-stream]
Saving to: `libraspberrypi0-adafruit.deb’

100%[======================================>] 444,188 105K/s in 4.1s

2014-12-03 20:08:27 (105 KB/s) - `libraspberrypi0-adafruit.deb’ saved [444188/444188]

–2014-12-03 20:08:27-- http://adafruit-download.s3.amazonaws.com/raspberrypi-bootloader-adafruit-20140917-1.deb
Resolving adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)… 54.231.17.137
Connecting to adafruit-download.s3.amazonaws.com (adafruit-download.s3.amazonaws.com)|54.231.17.137|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 24337034 (23M) [application/octet-stream]
Saving to: `raspberrypi-bootloader-adafruit-20140917-1.deb’

100%[======================================>] 24,337,034 259K/s in 37s

2014-12-03 20:09:05 (637 KB/s) - `raspberrypi-bootloader-adafruit-20140917-1.deb’ saved [24337034/24337034]

[PITFT] Updating apt cache…
Hit http://mirrordirector.raspbian.org wheezy Release.gpg
Hit http://mirrordirector.raspbian.org wheezy Release
Hit http://mirrordirector.raspbian.org wheezy/main Sources
Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Reading package lists… Done
[PITFT] Installing Adafruit kernel…
Selecting previously unselected package libraspberrypi-bin-adafruit.
dpkg: considering removing libraspberrypi-bin in favour of libraspberrypi-bin-adafruit …
dpkg: yes, will remove libraspberrypi-bin in favour of libraspberrypi-bin-adafruit
(Reading database … 34260 files and directories currently installed.)
Unpacking libraspberrypi-bin-adafruit (from …/libraspberrypi-bin-adafruit.deb) …
Selecting previously unselected package libraspberrypi-dev-adafruit.
Unpacking libraspberrypi-dev-adafruit (from …/libraspberrypi-dev-adafruit.deb) …
Selecting previously unselected package libraspberrypi-doc-adafruit.
Unpacking libraspberrypi-doc-adafruit (from …/libraspberrypi-doc-adafruit.deb) …
Selecting previously unselected package libraspberrypi0-adafruit.
dpkg: considering removing libraspberrypi0 in favour of libraspberrypi0-adafruit …
dpkg: yes, will remove libraspberrypi0 in favour of libraspberrypi0-adafruit
Unpacking libraspberrypi0-adafruit (from …/libraspberrypi0-adafruit.deb) …
Selecting previously unselected package raspberrypi-bootloader-adafruit.
dpkg: considering removing raspberrypi-bootloader in favour of raspberrypi-bootloader-adafruit …
dpkg: yes, will remove raspberrypi-bootloader in favour of raspberrypi-bootloader-adafruit
Unpacking raspberrypi-bootloader-adafruit (from …/raspberrypi-bootloader-adafruit-20140917-1.deb) …
Adding ‘diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack’
Adding ‘diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack’
Adding ‘diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack’
Adding ‘diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack’
Adding ‘diversion of /boot/kernel.img to /usr/share/rpikernelhack/kernel.img by rpikernelhack’
Adding ‘diversion of /boot/kernel_cutdown.img to /usr/share/rpikernelhack/kernel_cutdown.img by rpikernelhack’
Adding ‘diversion of /boot/kernel_emergency.img to /usr/share/rpikernelhack/kernel_emergency.img by rpikernelhack’
Adding ‘diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack’
Adding ‘diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack’
Adding ‘diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack’
dpkg: error processing /tmp/raspberrypi-bootloader-adafruit-20140917-1.deb (–install):
trying to overwrite ‘/lib/firmware/mts_gsm.fw’, which is also in package firmware-linux-nonfree 0.36+wheezy.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Memory split is now set in /boot/config.txt.
You may want to use raspi-config to set it
Removing ‘diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack’
Removing ‘diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack’
Removing ‘diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack’
Removing ‘diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack’
Removing ‘diversion of /boot/kernel.img to /usr/share/rpikernelhack/kernel.img by rpikernelhack’
Removing ‘diversion of /boot/kernel_cutdown.img to /usr/share/rpikernelhack/kernel_cutdown.img by rpikernelhack’
Removing ‘diversion of /boot/kernel_emergency.img to /usr/share/rpikernelhack/kernel_emergency.img by rpikernelhack’
Removing ‘diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack’
Removing ‘diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack’
Removing ‘diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack’
dpkg: dependency problems prevent configuration of libraspberrypi0-adafruit:
libraspberrypi0-adafruit depends on raspberrypi-bootloader-adafruit; however:
Package raspberrypi-bootloader-adafruit is not installed.

dpkg: error processing libraspberrypi0-adafruit (–install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libraspberrypi-bin-adafruit:
libraspberrypi-bin-adafruit depends on libraspberrypi0-adafruit (= 1.20130902-1); however:
Package libraspberrypi0-adafruit is not configured yet.

dpkg: error processing libraspberrypi-bin-adafruit (–install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libraspberrypi-dev-adafruit:
libraspberrypi-dev-adafruit depends on libraspberrypi0-adafruit (= 1.20130902-1); however:
Package libraspberrypi0-adafruit is not configured yet.

dpkg: error processing libraspberrypi-dev-adafruit (–install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libraspberrypi-doc-adafruit:
libraspberrypi-doc-adafruit depends on libraspberrypi0-adafruit (= 1.20130902-1); however:
Package libraspberrypi0-adafruit is not configured yet.

dpkg: error processing libraspberrypi-doc-adafruit (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
/tmp/raspberrypi-bootloader-adafruit-20140917-1.deb
libraspberrypi0-adafruit
libraspberrypi-bin-adafruit
libraspberrypi-dev-adafruit
libraspberrypi-doc-adafruit
[/code]

Here is the problem:

libraspberrypi0-adafruit depends on raspberrypi-bootloader-adafruit; however: Package raspberrypi-bootloader-adafruit is not installed.

Everything depends on raspberrypi-bootloader-adafruit

To solve try:

sudo apt-get install raspberrypi-bootloader-adafruit

If you get further errors please paste them here and we go on.
Please mind that you’re changin the kernel, there could be issues with Volumio since it uses a custom built one.

Assuming we get to the point this device will install, wouldn’t updates to the Volumio kernel potentially conflict in the future? I would think device driver code should be a separate module…

mumapu,
I had the same issue with the manual install, but not using the automatic “DIY Installer script”, you should have one for the capacitive model as well.
best
julien

Julien, michelangelo…

I had the same problem using both the script ready and manual installation.

I think could be a problem with the files.

What do you think? Help meeeeeee =D

thanks!

Try with Volumio 1.41, 1.5 wasn’t working with my touchscreen drivers

Hi guys …
I tried numerous combinations … 1:41 version of volumio including … but all to no avail. I tried even install the resitive version of LCD … Always with the same problem. It will be a problem with the downloaded files?

Morning.

I am also trying to achieve the same thing (adafruit lcd capacitive touch screen with volumio).

Have followed this guide, had the initial error regarding dependencies and now I have this error…

[code]sudo apt-get install raspberrypi-bootloader-adafruit
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package raspberrypi-bootloader-adafruit is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘raspberrypi-bootloader-adafruit’ has no installation candidate
[/code]

Any help would really be appreciated. I am trying to run this on volumio 1.41 and raspberry B+

This says it all, the requested package isn’t found in the available source lists. Try to find the source of the package and add it to

/etc/apt/sources.list

Apologies, I was a little too hasty in asking for help. I had since googled and added the package like you suggested. It seems that the original error which mumapu was struggling with is an issue. And installing raspberrypi-bootloader-adafruit separately doesn’t assist either.

dpkg: error processing /tmp/raspberrypi-bootloader-adafruit-20140917-1.deb (--install): trying to overwrite '/lib/firmware/mts_gsm.fw', which is also in package firmware-linux-nonfree 0.36+wheezy.1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

Sadly I think I am out of my depth here! Getting it to work with raspbian was quite straight forward. Shame I can’t add volumio over the top of that working image!

Hi folks,

First of all, thanks to everyone for their input in this thread. It’s exactly what I’ve been looking for.

I think I’m really close to getting this working with the Adafruit 2.8" capacitive touchscreen display.
I followed djoulle’s guide on page 2 http://volumio.org/forum/volumio-touch-screen-t2035-10.html#p9175.
For step 3, I did the following (I had to use --force-overwrite to install the adafruit bootloader)

cd~
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-bin-adafruit.deb
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-dev-adafruit.deb
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-doc-adafruit.deb
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi0-adafruit.deb
wget http://adafruit-download.s3.amazonaws.com/raspberrypi-bootloader-adafruit-20140917-1.deb

dpkg --install --force-overwrite raspberrypi-bootloader-adafruit-20140917-1.deb
sudo dpkg -i -B *.deb
sudo ./pitft.sh -t 28c -r 


sudo nano /etc/rc.local

just before the exit 0 command at the bottom add 4 lines:

sudo modprobe spi-bcm2708
sudo modprobe fbtft_device name=adafruitts rotate=90
export FRAMEBUFFER=/dev/fb1
startx

Hit Control X, Y, Enter

I then rebooted and it starts up, display works, but it can’t find the webpage. I can SSH in, so I know the network connection works, but I can’t access volumio from my PC browser either, using the Pi’s IP address.

Also, the touchscreen doesn’t seem to work. Perhaps it needs calibrating or something?

Any suggestions would be greatly appreciated.

Cheers,
Stu

Please excuse the upside-down image :stuck_out_tongue:
20141214_195945.jpg

Well I feel silly. Turns out I actually have the resistive touchscreen model.
I’ll start fresh and use the resistive panel installation instructions and see if that breaks less stuff :stuck_out_tongue:

Cheers,
Stu

Ok, so I’ve found time to have another crack at this and I can report that it’s working great!
(I’m using the resistive touchscreen version of the PiTFT)
I followed djoulle’s guide on page 2 word for word. For the step where you install the display drivers, this is what I did:

Download the PiTFT installer script:

wget http://adafru.it/pitftsh
mv pitftsh pitft.sh
chmod +x pitft.sh

Now run the installer package:

sudo ./pitft.sh -t 28r -r 

(Note that for the capacitive touchscreen version, the last step would use 28c instead of 28r although I can’t confirm if it works as I don’t have the capacitive touchscreen)
This will fail halfway through the script because raspberrypi_bootloader_adafruit won’t install properly.
However, the script will have already downloaded the necessary files, so we need to force the installation:

dpkg --install --force-overwrite raspberrypi-bootloader-adafruit-20140917-1.deb

Now we can run this again:

sudo ./pitft.sh -t 28r -r 

Everything should now run through properly.

When I installed the PiTFT drivers on a standard Raspbian build a while ago, after boot up, the screen was white. I had to do some extra stuff to get it to work, so I did this here too just in case:

sudo nano /etc/rc.local

just before the exit 0 command at the bottom add 4 lines:

sudo modprobe spi-bcm2708
sudo modprobe fbtft_device name=adafruitts rotate=90
export FRAMEBUFFER=/dev/fb1
startx

Hit Control X, Y, Enter

There was some code in /etc/modules to load some drivers.

sudo nano /etc/modules

It didn’t look right though - two lines were joined together:

snd-bcm2835spi-bcm2708
fbtft_device

So I changed it to this:

snd-bcm2835
spi-bcm2708
fbtft_device

Hit Control X, Y, Enter

Now just follow on from step 4 of djoulle’s guide on page two and hopefully it should work!

Huge thanks to djoulle, you are my hero :slight_smile:

Everything works as expected. It doesn’t seem to have affected audio quality in any way and there’s no stuttering or pausing.
However, the interface is very slow and clunky. Also, the browser scrollbars don’t really work well at all with the tiny touchscreen. I’d like to make a non-web browser interface which would allow scrolling just by swiping up or down on the screen but that’ll have to wait for another time. That might be a bit more fluid. However, programming in linux is a huge pain in the bum, so I don’t know if I’ll bother putting myself through that!
If anyone fancies doing that, you’ll be my new hero :wink:

Cheers,
Stu

\o/
I’ll try this today! Many thanks for discovering the answer for this problem!
I followed this guide to install the drivers and worked very well:

uugear.com/portfolio/using-2 … pberry-pi/

Maybe the last drivers don´t work with the jessie kernel… but this old drivers worked for me with volumio 1.5 :smiley:

After following this guide, I installed python pygame and copied this interface:

github.com/ISO-B/pmb-pitft/tree … /pmb-pitft

and…
IMG_4430.JPG

Glad to have helped stumcconnel :slight_smile:
I’m looking now for a bigger and capacitive touchscreen, because the 2.8’’ resistive adafruit touchscreen is too small and not user-friendly enough…
If anyone has a hint I would be appreciated.
Julien

The announced to be released even before the release of the Raspberry Pi it self, original raspberry pi DSI Touch screen. That has been re-announced about a month or two ago. (it takes really long…)

Maybe you could find some cheap old register screens from a grocery store at some sort of 2nd hand shop, or ebay. 14" 1024768 or 800600. Those look perfect for, but probably wont have HDMI, so connecting could require some work-around…

Hello

I can’t install LXDE on Volumio 1.5. (on Cubietruck)
I have got following error:

[code]Since release 198, udev requires support for the following features in
the running kernel:

  • inotify(2) (CONFIG_INOTIFY_USER)
  • signalfd(2) (CONFIG_SIGNALFD)
  • accept4(2)
  • open_by_handle_at(2) (CONFIG_FHANDLE)
  • timerfd_create(2) (CONFIG_TIMERFD)
  • epoll_create(2) (CONFIG_EPOLL)

Please upgrade your kernel before or while upgrading udev.

AT YOUR OWN RISK, you can force the installation of this version of udev
WHICH DOES NOT WORK WITH YOUR RUNNING KERNEL AND WILL BREAK YOUR SYSTEM
AT THE NEXT REBOOT by creating the /etc/udev/kernel-upgrade file.
There is always a safer way to upgrade, do not try this unless you
understand what you are doing!

dpkg: error processing archive /var/cache/apt/archives/udev_215-8_armhf.deb (–unpack):
subprocess new pre-installation script returned error exit status 1[/code]
I tried to install LXDE according to description on page 2.
Previously I installed LXDE on Volumio 1.41 without any problems.
Have You got any idea, what to do?

To hitch on the last question: How about Cubox-i? Do you think it’s gonna work similarly?
All the discussion here seems to be on RPI and is well above my level of competence in Linux. I am now wondering if I ever would succeed to get a touch screen working on a Cubox-i without such a large user community for to google up issues. Any ideas? Hints? Advise? What display do you favor to avoid complications?
Thanks a lot!