Page 2 of 2

Re: 2.8" TFT + Touch Shield Board v4

Posted: Sat Nov 28, 2015 10:32 am
by texy
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Sun Nov 29, 2015 11:17 am
by johnlonely
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.

Re: 2.8" TFT + Touch Shield Board v4

Posted: Mon Nov 30, 2015 1:31 pm
by fredaunger
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Mon Nov 30, 2015 2:01 pm
by texy
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Mon Nov 30, 2015 2:25 pm
by fredaunger
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Mon Nov 30, 2015 3:29 pm
by texy
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Mon Nov 30, 2015 3:58 pm
by fredaunger
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Mon Nov 30, 2015 4:04 pm
by texy
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Tue Dec 01, 2015 10:11 am
by fredaunger
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Fri Jan 22, 2016 5:46 pm
by beemins
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Fri Jan 22, 2016 7:31 pm
by texy
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Sat Jan 23, 2016 7:48 am
by beemins
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 :)

Re: 2.8" TFT + Touch Shield Board v4

Posted: Mon Feb 29, 2016 9:49 pm
by cerebro
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Mon Feb 29, 2016 10:03 pm
by texy
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Mon Feb 29, 2016 10:32 pm
by cerebro
Thanks for the quick response, changed the "b" to an "a" and all working now, many thanks.

Re: 2.8" TFT + Touch Shield Board v4

Posted: Sat May 28, 2016 2:15 pm
by qbalsdon
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?

Re: 2.8" TFT + Touch Shield Board v4

Posted: Sat May 28, 2016 3:55 pm
by DirkS
qbalsdon wrote:What have I done wrong?
Hijacking a topic about texy's screen.

Please create a new topic

Re: 2.8" TFT + Touch Shield Board v4

Posted: Thu Jun 23, 2016 7:52 am
by icksbocks
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 3481 times

Re: 2.8" TFT + Touch Shield Board v4

Posted: Mon Jun 27, 2016 7:47 am
by texy
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Wed Jan 25, 2017 11:43 am
by rajf
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.

Re: 2.8" TFT + Touch Shield Board v4

Posted: Sat Apr 29, 2017 5:02 pm
by LetHopeItsSnowing
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.

Re: 2.8" TFT + Touch Shield Board v4

Posted: Thu May 11, 2017 7:09 am
by texy
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

Re: 2.8" TFT + Touch Shield Board v4

Posted: Thu May 11, 2017 8:25 am
by LetHopeItsSnowing
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.

Re: 2.8" TFT + Touch Shield Board v4

Posted: Tue Jun 26, 2018 6:47 pm
by texy
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