Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
User avatar
rhassinger
 
Posts: 27
Joined: Wed Oct 25, 2017 10:45 pm

Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by rhassinger »

I bought the Pitft 2.8 Capacitive Touchscreen Display PRODUCT ID: 2423 and it seems to work fine on a known good RPi 3. However, on the Jesse image https://s3.amazonaws.com/adafruit-raspb ... ft-28c.zip, available on web page https://learn.adafruit.com/adafruit-2-8 ... sy-install of the install instructions, it seems to have a problem with MPC/MPD. I was trying to build the internet radio project at https://learn.adafruit.com/raspberry-pi ... w?view=all, but during MPC/MPD install and test I found that the MPC NEXT and MPC PREV commands entered in the terminal cause MPD to hang up. I can MPC Load a playlist of ten known good stations and enter MPC PLAY and it works. If I enter MPC STOP and then MPC PLAY n, where n is 1 - 10 of the playlist, it plays the stream fine. However, if I try to switch streams using the MPC NEXT or MPC PREV commands, the player stops immediately. The MPC output on the terminal says it is playing and switching streams, but it is not. After entering a few more MPC commands, which can be any command such as MPC STATUS, MPC hangs and I get a timeout on any MPC input. I then have to reboot to get it running again. Any ideas? I loaded MPC/MPD on another known good RPi 3 with the latest raspi image from the raspberry pi web site and it worked fine.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by adafruit_support_mike »

Try installing a fresh copy of Jessie, adding the MPC/MPD code you want, then installing PiTFT support onto the OS using the instructions from the Easy-Install tutorial page.

Don't use the preconfigured OS image, scroll a little farther down for the set of shell commands that will download and install the components.

User avatar
rhassinger
 
Posts: 27
Joined: Wed Oct 25, 2017 10:45 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by rhassinger »

Thanks Mike. I'll give it a try and post results. Also, just to be clear, when you say a fresh copy of Jesse I assume it is the current RASPIAN from https://www.raspberrypi.org/downloads/ the Raspberry Pi web site downloads page. Let me know if I've misunderstood. Have a good one.

User avatar
rhassinger
 
Posts: 27
Joined: Wed Oct 25, 2017 10:45 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by rhassinger »

I just checked the Raspberry Pi Downloads page and the latest image is RASPBIAN STRETCH WITH DESKTOP 2017-09-07-raspian-stretch. I do have the previous version 2017-02-16-raspbian-jessie. I'll start with 2017-02-16-raspbian-jessie, please let me know if I can use the latest 'stretch' version. Thank you again.

User avatar
rhassinger
 
Posts: 27
Joined: Wed Oct 25, 2017 10:45 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by rhassinger »

For adafruit_support_mike: Hi Mike. This is a little ugly. I loaded a Raspbian image 2017-02-16-raspbian-jessie onto an SDFormatter formatted 16 GB Sandisk uSD card, did a sudo update and sudo upgrade and then did a sudo apt-get install MPD MPC with no errors. However, MPC MPD showed exactly the same problems described before: MPC Load (a good playlist) and MPC Play worked fine, but MPD failed immediately after an MPC Next or MPC Prev command. Took a reboot to get it back.

I reformatted the uSD card and loaded it with the latest Raspbian image 2017-09-07-raspbian-stretch. After update, upgrade and install MPD MPC, everything worked! Looked like I was good to go.

However, the Easy Install instructions at https://learn.adafruit.com/adafruit-2-8 ... sy-install failed on the curl and install commands. Maybe a problem with the stretch compatibility? Here's the terminal output:

pi@raspberrypi:~ $ curl -SLs https://apt.adafruit.com/add-pin | sudo bash
.`
-dMMs
+MMMMMo
.dMMMMMMN-
+NMMMMMMMMd`
`hMMMMMMMMMMMo
-mMMMMMMMMMMMMN.
dMMMMMMMMMMMMMMo
:hmmmmmmmmmmmmdhs/. `MMMMMMMMMMMMMMMh
sMMMMMMMMMMMMMMMMMMd+NMMMMMMMMMMMMMM+
/NMMMMMMMMMMMMMMMMMMMMMMMMs+NMMMMMm/+syyyso/-`
`hMMMMMMMMMMMMMMMMMMMMMMo hMMMMMMMMMMMMMMMMMNhs+:.
/NMMMMMMMMMMMNmmNMMMMN. `mMMMMMMMMMMMMMMMMMMMMMMMNh-
.hMMMMMMMMMMh` `-sNMMs-hMMMMMMMMMMMMMMMMMMMMMMMMMM+
/mMMMMMMMMMNy+-./MMMMMMy:....oMMMMMMMMMMMMMMMNo.
:ymMMMMMMMMMMMMMMMMMNy//oymMMMMMMMMMMMMMNy:
.yMMMMMMMms:oMMNhNMMMMMMMMMMMMMMMMNh/`
.yMMMMMMMN/ .dMMy `sMMMMMMMMMMMNmy/`
/NMMMMMMMM:`-sMMMMM: sMMMMMMs-..`
-NMMMMMMMMMNNMMMMMMMMs./MMMMMMMh`
mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMs
sMMMMMMMMMMMMMMMMhMMMMMMMMMMMMMMMN
:MMMMMMMMMMMMMMMN+ hMMMMMMMMMMMMMMN.
`dMMMMMMMMMMMMNh/` `hMMMMMMMMMMMMMN.
/MMMMMMMMmhs+- /dMMMMMMMMMMMN.
.hmdys/- -sNMMMMMMMMN.
`:hNMMMMMN.
`+dMMMN`
./+-

adding apt.adafruit.com to /etc/apt/sources.list

OK
pinning apt.adafruit.com origin
edit /etc/apt/preferences.d/adafruit to change
Get:1 http://apt.adafruit.com/raspbian wheezy InRelease [2,093 B]
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Hit:3 http://mirrordirector.raspbian.org/raspbian stretch InRelease
Ign:1 http://apt.adafruit.com/raspbian wheezy InRelease
Get:4 http://apt.adafruit.com/raspbian wheezy/main armhf Packages [6,091 B]
Fetched 8,184 B in 1s (5,565 B/s)
Reading package lists... Done
W: GPG error: http://apt.adafruit.com/raspbian wheezy InRelease: The following signatures were invalid: 58A1FE78D61C7C13E28B92A7C24E6D5378661FA5
W: The repository 'http://apt.adafruit.com/raspbian wheezy InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

<< I added these 3 blank lines for readibility >>>

pi@raspberrypi:~ $ sudo apt-get install -y raspberrypi-bootloader adafruit-pitft-helper raspberrypi-kernel
Reading package lists... Done
Building dependency tree
Reading state information... Done
raspberrypi-kernel is already the newest version (1.20171029-1).
raspberrypi-kernel set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1.20160324-1)
E: Unable to correct problems, you have held broken packages.
pi@raspberrypi:~ $

I have one or two older jessie images from the raspberry pi downloads to try.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by adafruit_support_mike »

It looks like you were using a base install of Wheezy, which is officially deprecated. The modifications we had to make to get the PiTFT to work with Jessie use things that don't exist on Wheezy.

You can find older releases of Raspbian here:

http://downloads.raspberrypi.org/raspbian/images/

and according to this thread you may be able to use a PiTFT with Stretch just by calling for the appropriate device tree overlay:

viewtopic.php?f=50&t=125778

User avatar
rhassinger
 
Posts: 27
Joined: Wed Oct 25, 2017 10:45 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by rhassinger »

My last post showed the terminal output after going to the Raspberry Pi Downloads page and downloading the latest image of the full RASPBIAN STRETCH WITH DESKTOP 2017-09-07-raspian-stretch so I'm not sure what you mean about Wheezy, unless the Stretch package was based on Wheezy. I updated/upgraded and then installed MPC/MPD and everything seemed to work. It was the first two steps of the Easy Install that produced the terminal output showing problems. Seems to be a lot of talk this issue now, so I'll look around and try some other stuff. I tried a Jessie image from May 2016 but the update/upgrade failed, probably just too old. The problem I've had specifically so far is finding a Jessie image that allows MPC/MPD commands MPC NEXT and MPC PREV to work, and that is before the Pitft Easy Install is attempted. By the way, thanks for all your efforts. My own saying from my years as a software developer: "Technology..........the hand shake that won't let go!"

User avatar
rhassinger
 
Posts: 27
Joined: Wed Oct 25, 2017 10:45 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by rhassinger »

Ok, this is about the last post on this, and I'll probably just have to wait until the 2.8 Pitft display with capacitive touch works with Raspi Stretch.

I downloaded the latest Raspi Jesse from http://downloads.raspberrypi.org/raspbi ... jessie.zip, unzipped and copied the image to a 16GB DSFormatter formatted uSD card, ran update and upgrade and finally installed MPC and MPD. It is still broke. The MPC commands to load and play a good playlist, stop play and play a specific entry on the playlist work fine. However, as soon as I enter an MPC NEXT or MPC PREV the MPD player stops and any further MPC commands hang and cause a timeout. I have to reboot to get it back. As a side note, when I reboot and enter an MPC PLAY command I can see that MPD received and executed the MPC NEXT or PREV command as it plays that next or previous stream.

It seems strange that MPC and MPD have seemingly had this problem for all of the Jesse packages, but it sure looks that way. When I perform the exact same steps with the latest Raspi Stretch, MPC and MPD work perfectly including the NEXT and PREV commands.

If anyone can see where I'm making a mistake I would greatly appreciate some advice.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by adafruit_support_mike »

That may be a version compatibility issue.

Jessie and Stretch use different versions of the Linux kernel, and things under the hood can change radically from one version to the next. It's possible the code you want to use is only made to work on Stretch.

The good news is that Ladyada has devoted this week to working with the PiTFT team to get as much PiTFT code working on Stretch as possible. The basic display code seems to be okay, but there are a bunch of other details like touchscreen calibration that have gone sideways because of the new changes.

Check back over the next couple of weeks and see if we've released a version of the PiTFT support code that will work for the one you have.

User avatar
rhassinger
 
Posts: 27
Joined: Wed Oct 25, 2017 10:45 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by rhassinger »

Hi. Where do I look to see if Raspbian Stretch is working with the 2.8 Pitft display, or that a new image is ready? Again, thanks for you work on this. Ron.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by adafruit_support_mike »

We've just (as in, a couple of days ago) updated the PiTFT installer to work with Stretch.

The instructions from the PiTFT tutorial should work.

User avatar
rhassinger
 
Posts: 27
Joined: Wed Oct 25, 2017 10:45 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by rhassinger »

Thanks Mike, and to the rest of your team. Very cool.

User avatar
skico
 
Posts: 5
Joined: Fri Nov 03, 2017 12:06 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by skico »

I have successfully installed the 2.8 Cap piTFT on the newest release of Stretch - after the install I am having difficulty installing MPD/MPC. Is it possible you have to install them prior to the TFT?

User avatar
rhassinger
 
Posts: 27
Joined: Wed Oct 25, 2017 10:45 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by rhassinger »

Hi. I didn't get that far on yet another run at getting this running. I was trying to build the 'Raspberry Pi radio player with touchscreen' project at https://learn.adafruit.com/raspberry-pi ... w?view=all but using the newer capacitive touchscreen. I haven't gotten the touchscreen running yet. I just installed MPD/MPC on a fresh copy of Stretch on an RPi 3 with no problems. I installed MPD first as MPC is the client for MPD. The instructions I was following at https://learn.adafruit.com/raspberry-pi ... w?view=all says "Basically, get the PiTFT setup working first!" The MPC/MPD install is after that. The internet radio project used the resistive touch screen. By the way, did you do the Sudo apt-get update and upgrade on the Stretch install before attempting to install the PiTFT? I'll post with my progress. Good to hear you got the PiTFT running.

User avatar
rhassinger
 
Posts: 27
Joined: Wed Oct 25, 2017 10:45 pm

Re: Pitft 2.8 Capacitive Jesse Image MPC/MPD broke

Post by rhassinger »

Nope, still no love. The instructions at 'https://learn.adafruit.com/adafruit-2-8 ... sy-install' seem to flow easily to the last step where they encounter an error because;

Would you like the console to appear on the PiTFT display? [y/n] y
[PITFT] Updating console to PiTFT...
Updating /boot/cmdline.txt
sed: can't read /etc/kbd/config: No such file or directory
[PITFT] Exiting due to error: Unable to configure console

I immediately ran the 'sudo adafruit-pitft-helper -t 28c' command again answering 'n' and it looked good:

Would you like the console to appear on the PiTFT display? [y/n] n
[PITFT] Making sure console doesn't use PiTFT
sed: can't read /etc/kbd/config: No such file or directory
Screen blanking time reset to 10 minutes
[PITFT] Updating /etc/modules...
Adding ft6x06_ts
Would you like GPIO #23 to act as a on/off button? [y/n] n
[PITFT] Updating /boot/config.txt...
[PITFT] Success!

However, on the 'sudo reboot' the PiTFT screen stayed white and both red and green status LED's stayed lit. Power down and back up resulted in red power LED lit and no activity.

All commands I entered were:
Fresh copy of Stretch burned.
sudo apt-get update
sudo apt-get upgrade
reboot

curl -SLs https://apt.adafruit.com/add-pin | sudo bash
sudo apt-get install raspberrypi-bootloader
sudo apt-get install adafruit-pitft-helper
sudo apt-get install raspberrypi-kernel
sudo afafruit-pitft-helper -t 28c
Would you like the console to appear on the PiTFT display? [y/n] y
sed: can't read /etc/kbd/config: No such file or directory
[PITFT] Exiting due to error: Unable to configure console

sudo adafruit-pitft-helper -t 28c
Would you like the console to appear on the PiTFT display? [y/n] n
[PITFT] Making sure console doesn't use PiTFT
sed: can't read /etc/kbd/config: No such file or directory
Screen blanking time reset to 10 minutes
[PITFT] Updating /etc/modules...
Adding ft6x06_ts
Would you like GPIO #23 to act as a on/off button? [y/n] n
[PITFT] Updating /boot/config.txt...
[PITFT] Success!

I'll try running this again but copy in a etc/kbd/config file from another pi before running the 'sudo adafruit-pitft-helper -t 28c' command.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”