texy
Forum Moderator
Forum Moderator
Posts: 5155
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: 2.8" TFT + Touch Shield Board v4

Sat Nov 28, 2015 10:32 am

Hi Fred,
I don't think the 256mb memory is the issue. I have just downloaded the very latest Raspbian Jessie Lite image and burnt to SD card.
I then temporarily fitted it to a Pi B+, connected via ethernet and SSH'd into it via my laptop. I then run sudo raspi-config and selected Boot to Console.
It may not be necessary to do this with the Lite version, but I did it anyway. I then edited /boot/config.txt and added the hy28b overlay option. I then edited /boot/cmdline.txt and added fbcon=map:10 to the end of the line. I then rebooted and checked that the console came up on the display correctly. At that point I need to manually configure my usb wifi adapter in anticipation of transferring to a model Pi A. I then halted the B+, transfered the SD card, hy28b display (it's my v2a version) and wifi adapter to the A and it booted up fine on the display.
Here is the complete History :

1 sudo raspi-config
2 sudo nano /boot/config.txt
3 sudo nano /boot/cmdline.txt
4 sudo reboot
5 sudo nano /etc/network/interfaces
6 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
7 sudo reboot
8 sudo nano /etc/modprobe.d/8192cu.conf
9 sudo halt
10 history

Steps 5-8 are only to configure my wifi adapter.....

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

johnlonely
Posts: 6
Joined: Mon Aug 05, 2013 1:51 pm

Re: 2.8" TFT + Touch Shield Board v4

Sun Nov 29, 2015 11:17 am

This might be unrelated, but I hope will offer you hint. This morning I installed raspberry-asterisk and after that I configured the screen. The image I was working on based on Jessie. It does not work, while my backup image from year 2013 running the screen just fine.

fredaunger
Posts: 20
Joined: Wed May 14, 2014 6:24 pm

Re: 2.8" TFT + Touch Shield Board v4

Mon Nov 30, 2015 1:31 pm

Hi Texy,
Tried using my other raspberry pi with 512meg ram with the same results switching back and forth during boot. Finished up on the 2.8 screen and needs a STARTX to continue and finishes on HDMI. If it was as you stated only effecting single core boards could the developers not test for this and action accordingly?
Regards
Fred Aunger

texy
Forum Moderator
Forum Moderator
Posts: 5155
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: 2.8" TFT + Touch Shield Board v4

Mon Nov 30, 2015 2:01 pm

fredaunger wrote:Hi Texy,
Tried using my other raspberry pi with 512meg ram with the same results switching back and forth during boot. Finished up on the 2.8 screen and needs a STARTX to continue and finishes on HDMI. If it was as you stated only effecting single core boards could the developers not test for this and action accordingly?
Regards
Fred Aunger
Fred,
a couple of points here.
Firstly, you didn't have any control before because it
"stop displaying with the cursor in the top left of the screen"
. Please confirm this has progressed as you can now type "STARTX", or are you typing this blind?
Secondly, you are implying that you have HDMI connected again as it
"finishes on HDMI"
. If you plan on using the display, you shouldn't have the HDMI screen connected at all. There has always been an issue that the pi gets confused if it detects a HDMI screen connected. Having said that I never hook up by Pi's to HDMI so things may of changed recently (with Jessie for example).
Thirdly, I thought you only wanted to get to the command prompt, not X. If you want to boot straight to XWINDOWS using the 2.8" display then a certain amount of setup will be required, and TBH I haven't done it for a while so Jessie instructions may need investigating....
thanks,
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

fredaunger
Posts: 20
Joined: Wed May 14, 2014 6:24 pm

Re: 2.8" TFT + Touch Shield Board v4

Mon Nov 30, 2015 2:25 pm

Hi Texy,
Sorry for any miss information. I have followed your instructions using jessie lite and the switching still happens. The boot finishes on the 2.8 screen with raspi $ prompt

Regards
Fred Aunger

texy
Forum Moderator
Forum Moderator
Posts: 5155
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: 2.8" TFT + Touch Shield Board v4

Mon Nov 30, 2015 3:29 pm

Fred how do you know that the switching is happening?
fredaunger wrote:The boot finishes on the 2.8 screen with raspi $ prompt

Regards
Fred Aunger
Is that not what you want?

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

fredaunger
Posts: 20
Joined: Wed May 14, 2014 6:24 pm

Re: 2.8" TFT + Touch Shield Board v4

Mon Nov 30, 2015 3:58 pm

Hi Texy,

I notice in your information your test was with a B+ which is quad core. My boards are both single core you said this may be a possible problem in your earlier conversations with me?

Fred

texy
Forum Moderator
Forum Moderator
Posts: 5155
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: 2.8" TFT + Touch Shield Board v4

Mon Nov 30, 2015 4:04 pm

I only used the B+ to configure the SD card, I quote :
I then halted the B+, transfered the SD card, hy28b display (it's my v2a version) and wifi adapter to the A
.
The B+ is a single core Pi, it's the B 2 that is quad core.
You still need to answer the questions ;)

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

fredaunger
Posts: 20
Joined: Wed May 14, 2014 6:24 pm

Re: 2.8" TFT + Touch Shield Board v4

Tue Dec 01, 2015 10:11 am

Hi Texy,

Thank you for your continued support on this matter. I did want the screen to finish up with the startx screen. Going back to your original instructions I see that further mods have to be made so I will carry on with that.
Thanks again for all your support.
Best Regards
Fred Aunger

beemins
Posts: 6
Joined: Thu Jan 21, 2016 5:33 pm

Re: 2.8" TFT + Touch Shield Board v4

Fri Jan 22, 2016 5:46 pm

Hi texy,

Thank you for your solution! It works perfectly
However, I need to use my raspbian desktop with resolution that matches my TFT screen
so I added below code into /usr/bin/startx

Code: Select all

defaultserverargs=”-dpi 60”
serverargs=”-dpi 60”
but it only started dpi 60 with HDMI monitor but my TFT still got very large resolution
so I need to type startx with dpi 60 in my TFT screen again to allow me to use
how can I start TFT with permanent dpi 60?

Thank you

texy
Forum Moderator
Forum Moderator
Posts: 5155
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: 2.8" TFT + Touch Shield Board v4

Fri Jan 22, 2016 7:31 pm

Hi
Untested but from previous raspbian images try

Code: Select all

FRAMEBUFFER=/dev/fb1 startx -- -dpi 60
(You may not require the FRAMEBUFFER part)

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

beemins
Posts: 6
Joined: Thu Jan 21, 2016 5:33 pm

Re: 2.8" TFT + Touch Shield Board v4

Sat Jan 23, 2016 7:48 am

It works but after I reboot my pi, the resolution in TFT is still very large though.
Anyway to make it permanent?

**EDIT**
I found the solution from this: http://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)

Edit the file rc.local

Code: Select all

sudo nano /etc/rc.local
Find out the following line and modify to dpi 60:

Code: Select all

su –l pi –c "startx-- -dpi 60"
then close and reboot

Code: Select all

sudo reboot
And it works! By the way thank you very much texy for your instruction :)

cerebro
Posts: 17
Joined: Sun Feb 03, 2013 10:32 pm

Re: 2.8" TFT + Touch Shield Board v4

Mon Feb 29, 2016 9:49 pm

Hi Texy,

I have one of your orginal, V1a screens on an original raspberry Pi Model B, the screen works fine with an old version of Notro's image, but I wanted to update to a newer version of Raspbian, or the modified Max2Play image and wondered if there was a way to do this?
I have tried the V4 instrustions and they do not work for me, I get a grainy screen and not much else, not surprising as its a V1 but wanted to test before posting.
Any help would be appreciated.

Many thanks

texy
Forum Moderator
Forum Moderator
Posts: 5155
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: 2.8" TFT + Touch Shield Board v4

Mon Feb 29, 2016 10:03 pm

Hi
The v1 boards are based in a hy28a display, unlike the later boards which are based on the hy28b. There are overlays for both types so have you tried dtoverlay=hy28b, rotate=90 in the config.txt file.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

cerebro
Posts: 17
Joined: Sun Feb 03, 2013 10:32 pm

Re: 2.8" TFT + Touch Shield Board v4

Mon Feb 29, 2016 10:32 pm

Thanks for the quick response, changed the "b" to an "a" and all working now, many thanks.

qbalsdon
Posts: 1
Joined: Sat May 28, 2016 1:52 pm

Re: 2.8" TFT + Touch Shield Board v4

Sat May 28, 2016 2:15 pm

I am running a Raspberry Pi 3 with the latest version on Raspian Jessie

PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"

I have just bought the following device:
https://www.itead.cc/raspberry-pi-2-8-t ... -v1-0.html

I have the one that doesn't fit on the Raspberry Pi 3 - however I have been told it shouldn't be an issue.

I have followed the following instructions:
1. I ran raspi-config - and I was unable to expand the filesystem:

| Your partition layout is not currently supported by this │
│ tool. You are probably using NOOBS, in which case your │
│ root filesystem is already expanded anyway.

I was also unable to find anything about a device tree under advanced options, but I enabled SPI even if it wasn't required

2. I added the following to the end of /boot/config.txt
dtoverlay=hy28b,rotate=90
3. I ran this: sudo dpkg-reconfigure console-setup and set it up accordingly
4. I modified /boot/cmdline.txt so that it looks as follows:
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fbcon=map:10

And then I rebooted my pi. And the screen remains white. What have I done wrong?

DirkS
Posts: 9899
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: 2.8" TFT + Touch Shield Board v4

Sat May 28, 2016 3:55 pm

qbalsdon wrote:What have I done wrong?
Hijacking a topic about texy's screen.

Please create a new topic

icksbocks
Posts: 1
Joined: Wed Jun 22, 2016 7:28 pm

Re: 2.8" TFT + Touch Shield Board v4

Thu Jun 23, 2016 7:52 am

I give up. All that is displayed for me following your instructions and running the latest jessie release on my pi zero is lines.
CAM00065.jpg
CAM00065.jpg (43.73 KiB) Viewed 3448 times

texy
Forum Moderator
Forum Moderator
Posts: 5155
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: 2.8" TFT + Touch Shield Board v4

Mon Jun 27, 2016 7:47 am

icksbocks wrote:I give up. All that is displayed for me following your instructions and running the latest jessie release on my pi zero is lines.
CAM00065.jpg
I suspect a wiring problem. Note that this was not purchased from myself, and is therefore off-topic...........

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

rajf
Posts: 1
Joined: Wed Jan 25, 2017 11:35 am

Re: 2.8" TFT + Touch Shield Board v4

Wed Jan 25, 2017 11:43 am

I recently dug out my model-b and v1a TXT28 Shield from Texy. I used the NOOBS full install and then followed the instructions at viewtopic.php?f=45&t=105797. I couldn't get the TFT to boot direct to desktop until edited:

/boot/config.txt

Code: Select all

# NOOBS Auto-generated Settings:
hdmi_force_hotplug=0
dtoverlay=hy28a,rotate=90
/usr/share/X11/xorg.conf.d/99-fbturbo.conf

Code: Select all

Section "Device"
        Identifier      "Allwinner A10/A13 FBDEV"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb1"

        Option          "SwapbuffersWait" "true"
EndSection
Change the Option "fbdev" "/dev/fb0" line to Option "fbdev" "/dev/fb1" if you want the TFT or fb1 to fb0 for HDMI output.

Hope that helps someone.

User avatar
LetHopeItsSnowing
Posts: 357
Joined: Sat May 26, 2012 6:40 am
Location: UK
Contact: Website

Re: 2.8" TFT + Touch Shield Board v4

Sat Apr 29, 2017 5:02 pm

I'm trying to get an original tft screen (written on it is "Pi TFT28 Shield via (c) Texy 2013) working with a Pi3 and the latest raspbian and I have had mixed success.

I'm using Raspbian 2017-02-16.

I used dtoverlay=hy28a,rotate=90 as its an older screen.

When I tried to calibrate the touch screen, I couldn't get it to react to touch, even after trying all the /dev/input/event instances.

Undetered I thought I would continue:

The pi boots and the console appears on the screen, however I am unable to launch X with startx, I receive the following error:

Code: Select all

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
Current Operating System: Linux tftpi 4.4.48-v7+ #964 SMP Mon Feb 13 16:57:51 GMT 2017 armv7l
Kernel command line: 8250.nr_uarts=0 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa02082 bcm2709.serial=0x4c2682f smsc95xx.macaddr=B8:27:EB:C2:68:2F bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fbcon=map:10
Build Date: 11 November 2016  11:59:59AM
xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
Current version of pixman: 0.33.3
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Sat Apr 29 16:58:50 2017
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) xf86OpenConsole: Cannot open virtual console 1 (Permission denied)
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/home/pi/.local/share/xorg/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Any thoughts? Thanks.
"am I getting slower, or is stuff more complicated; either way I now have to write it down - stuffaboutcode.com"

texy
Forum Moderator
Forum Moderator
Posts: 5155
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: 2.8" TFT + Touch Shield Board v4

Thu May 11, 2017 7:09 am

I've not done anything with these displays for at least a year, but does this help :
https://www.jeffgeerling.com/blog/2016/ ... controller

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
LetHopeItsSnowing
Posts: 357
Joined: Sat May 26, 2012 6:40 am
Location: UK
Contact: Website

Re: 2.8" TFT + Touch Shield Board v4

Thu May 11, 2017 8:25 am

texy wrote:I've not done anything with these displays for at least a year, but does this help :
https://www.jeffgeerling.com/blog/2016/ ... controller

Texy
I will give it a go.
"am I getting slower, or is stuff more complicated; either way I now have to write it down - stuffaboutcode.com"

texy
Forum Moderator
Forum Moderator
Posts: 5155
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: 2.8" TFT + Touch Shield Board v4

Tue Jun 26, 2018 6:47 pm

Just to confirm that I carried out the steps in post#1 and the 'fix' for pygame is still required for Stretch....but at least it does work ;)
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Return to “HATs and other add-ons”