• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Looking for a squared USB-C display with specific dimension to replace the default display of the HackBerry Pi Zero.

Joined
Sep 11, 2020
Messages
216 (0.13/day)
Hello boys.

I've bought and opened the Hackberry-Pi_Zero :

https://github.com/ZitaoTech/Hackberry-Pi_Zero

Let's give a look at the pictures below. This is how how the display (4" 720X720 TFT) is attached to the board (Raspberry Pi Zero) :

WhatsApp Image 2025-03-22 at 18.33.35.jpeg


my idea is to remove that display and to use one USB-C display of the same inches. For example with this model :

https://www.waveshare.com/product/raspberry-pi/displays/3.5inch-hdmi-lcd-e.htm

I'm sure that in this case,FreeBSD will be able to boot and run. Anyway,I'm looking for a little bit better display because the original one that I want to remove is 4 inches. The new one is 3,5 inches and it's too short. There's some wasted "screen" space. I would like to find a display at least with the same inches,but that can replace perfectly the default one.

The dimensions of the default display is :

width = 7.5 cm
height = 8 cm

the new display should fit perfectly inside this frame :

frame.jpg


I'm actively looking for a squared USB-C display that can match those dimensions. I will find it faster with your help. Thanks.
 
Last edited:
Joined
Aug 16, 2024
Messages
102 (0.46/day)
Location
Japan
System Name MainPC
Processor AMD Ryzen 7 5800X3D
Motherboard AsRock B550M Steel Legend
Cooling SCYTHE Big Shuriken 3 SCBSK-3000R
Memory DDR4-3600 32GB
Video Card(s) ZOTAC GeForce GTX 1080 TI Blower ZT-P10810B-10B
Storage KIOXIA EXCERIA PRO 1TB SSD-CK1.0N4P/N and 2 SSDs + 1 HDD
Case SilverStone SST-SG12B
Audio Device(s) TASCAM US-366-SN
Power Supply Silver Stone DECATHLON 850W SST-DA850-G
Mouse Logitech G502 HERO
There is too little information.
The requirements I understand at this point are as follows:

- Display area must be within a 75*80mm frame.

- Video interface is HDMI

- Touch control and power interface is USB Type-C (USB2.0)

Now, the base Hackberry-Pi_Zero seems to use GPIO for display control.
You are trying to replace this with HDMI.
At this point, you can see that there are many issues to be resolved.



First and foremost, it's best not to modify the interface as much as possible in order to take advantage of the base device.

The base product probably uses this display and communicates using the DPI666 method.
EDIT: DPI666 is also known as VGA666, you can refer to the article from 10 years ago.

In other words, the ideal thing to do would be to learn the DPI666 implementation of display control via GPIO and make it run on FreeBSD.



As a second priority, you should consider SPI or MIPI-DSI, which are common display interfaces for small devices.
SPI is slow, but can communicate using three signal lines.
MIPI-DSI can display video at various resolutions and frame rates over a flat cable without having to worry about connection issues.

You should consider whether these can be run on FreeBSD.



I think the method you chose is the third priority.
Changing the display interface to HDMI would probably require minimal changes on the FreeBSD side...
But this change would create other problems.

HDMI was not designed for use in portable devices.
It would consume more battery power, would require more wires, and would require a thicker, larger case.
In other words, it would not take advantage of the product it is based on.

This is probably the case with this display, but I don't think it's a good idea.
 
Last edited:
Joined
Sep 11, 2020
Messages
216 (0.13/day)
Depending on my low specific skills,this is the only doable idea :

This is probably the case with this display

unfortunately the size of that screen does not fit inside the frame,because it is 8.4 x 8.4 cm,while I have 7.5 cm x 8 cm. Anyway,that screen does not seem to be compact like this one :


unfortunately it is 5 inches,too much. But you got the idea. Anyway I'm sure that somewhere there is a display like that that fit inside the frame of the HackBerry Pi. But it's not easy to find it.

This is nice :


unfortunately it does not have the right size.
 
Joined
Aug 16, 2024
Messages
102 (0.46/day)
Location
Japan
System Name MainPC
Processor AMD Ryzen 7 5800X3D
Motherboard AsRock B550M Steel Legend
Cooling SCYTHE Big Shuriken 3 SCBSK-3000R
Memory DDR4-3600 32GB
Video Card(s) ZOTAC GeForce GTX 1080 TI Blower ZT-P10810B-10B
Storage KIOXIA EXCERIA PRO 1TB SSD-CK1.0N4P/N and 2 SSDs + 1 HDD
Case SilverStone SST-SG12B
Audio Device(s) TASCAM US-366-SN
Power Supply Silver Stone DECATHLON 850W SST-DA850-G
Mouse Logitech G502 HERO
Video output to GPIO in DPI666 format is a feature of the Raspberry Pi's built-in GPU, and it should work just by adding two lines to the config.
This is a hardware function and is not likely to be OS-dependent, but I have not tried it so I cannot be certain.

1742819068136.png

The display area is contained within the frame.
 
Joined
Sep 11, 2020
Messages
216 (0.13/day)
Video output to GPIO in DPI666 format is a feature of the Raspberry Pi's built-in GPU, and it should work just by adding two lines to the config.
This is a hardware function and is not likely to be OS-dependent, but I have not tried it so I cannot be certain.

View attachment 391261
The display area is contained within the frame.

Judge by yourself if "your" display can match with the size of the frame :

WhatsApp Image 2025-03-24 at 13.48.45.jpeg


WhatsApp Image 2025-03-24 at 13.48.08.jpeg


WhatsApp Image 2025-03-24 at 13.47.01.jpeg


WhatsApp Image 2025-03-24 at 13.46.32.jpeg


Video output to GPIO in DPI666 format is a feature of the Raspberry Pi's built-in GPU, and it should work just by adding two lines to the config.
This is a hardware function and is not likely to be OS-dependent, but I have not tried it so I cannot be certain.

I could ask how to do that. But if I'm not sure that it will work,I will not buy that display. Because it is expensive and I'm out of money.

The display area is contained within the frame.

Give a look behind that display,you will find that it's not slim.

I doubt. The display area of "your" display seems to be 8.4,not 72.53. I don't understand why you exclude the black frame all around the display.
 
Last edited:
Joined
Aug 16, 2024
Messages
102 (0.46/day)
Location
Japan
System Name MainPC
Processor AMD Ryzen 7 5800X3D
Motherboard AsRock B550M Steel Legend
Cooling SCYTHE Big Shuriken 3 SCBSK-3000R
Memory DDR4-3600 32GB
Video Card(s) ZOTAC GeForce GTX 1080 TI Blower ZT-P10810B-10B
Storage KIOXIA EXCERIA PRO 1TB SSD-CK1.0N4P/N and 2 SSDs + 1 HDD
Case SilverStone SST-SG12B
Audio Device(s) TASCAM US-366-SN
Power Supply Silver Stone DECATHLON 850W SST-DA850-G
Mouse Logitech G502 HERO
I could ask how to do that. But if I'm not sure that it will work,I will not buy that display. Because it is expensive and I'm out of money.

If DPI666 works, you don't need to buy a display. This means you can use the Hackberry-Pi_Zero display you already have.
 
Joined
Sep 11, 2020
Messages
216 (0.13/day)
If DPI666 works, you don't need to buy a display. This means you can use the Hackberry-Pi_Zero display you already have.

DPI666 does not fit inside the frame and it is not slim. And it does not work out of the box like the type/kind of display that I used for the tablet.
Using DPI666 there is an high chance to encounter a lot of troubles....that I can't manage. Usually is not easy as adding "two lines in a config file".
 
Last edited:
Joined
Aug 16, 2024
Messages
102 (0.46/day)
Location
Japan
System Name MainPC
Processor AMD Ryzen 7 5800X3D
Motherboard AsRock B550M Steel Legend
Cooling SCYTHE Big Shuriken 3 SCBSK-3000R
Memory DDR4-3600 32GB
Video Card(s) ZOTAC GeForce GTX 1080 TI Blower ZT-P10810B-10B
Storage KIOXIA EXCERIA PRO 1TB SSD-CK1.0N4P/N and 2 SSDs + 1 HDD
Case SilverStone SST-SG12B
Audio Device(s) TASCAM US-366-SN
Power Supply Silver Stone DECATHLON 850W SST-DA850-G
Mouse Logitech G502 HERO
As far as I can see from the schematics of Hackberry-Pi_Zero, it definitely uses DPI666.

1742829170695.png

If you successfully configure it with DPI666, you don't need to buy anything else.

It means that your existing Hackberry-Pi_Zero will function as a FreeBSD machine as is.

(Only if the RP2040 Raspberry Pi Pico coprocessor is driving the Blackberry keyboard as the standard keyboard device, which is probably the case.)

The base product probably uses this display and communicates using the DPI666 method.
EDIT: DPI666 is also known as VGA666, you can refer to the article from 10 years ago.
https://raw.githubusercontent.com/fenlogic/vga666/master/documents/vga_manual.pdf
In other words, the ideal thing to do would be to learn the DPI666 implementation of display control via GPIO and make it run on FreeBSD.
I introduced this display as an example of "what is DPI666?"

I just wanted to show that the display that comes with the Hackberry-Pi_Zero uses the same DPI666 communication interface.

This is a function provided by the hardware and is OS independent.

If you can write it in Config.txt, it should work exactly the same as outputting video to HDMI.

If there is an issue, it is that if you want to make the touch panel (pointing device) work, you will probably need to create a driver for FreeBSD...

But that is the same condition even if you buy an HDMI display.
 
Joined
Sep 11, 2020
Messages
216 (0.13/day)
But that is the same condition even if you buy an HDMI display.

The display that I've bought for the tablet worked out of the box without writing in any config file. Wonderful. And I think the same will happen if I buy a display that uses the same technology.

The display used by the HackBerry PI does not work out of the box. And I suspect that it will not do it so easy. I imagine that I should make the debug of the reasons,but at this point I must enter inside one high technical territory where I don't have the mininum competence to stay.
 
Joined
Aug 16, 2024
Messages
102 (0.46/day)
Location
Japan
System Name MainPC
Processor AMD Ryzen 7 5800X3D
Motherboard AsRock B550M Steel Legend
Cooling SCYTHE Big Shuriken 3 SCBSK-3000R
Memory DDR4-3600 32GB
Video Card(s) ZOTAC GeForce GTX 1080 TI Blower ZT-P10810B-10B
Storage KIOXIA EXCERIA PRO 1TB SSD-CK1.0N4P/N and 2 SSDs + 1 HDD
Case SilverStone SST-SG12B
Audio Device(s) TASCAM US-366-SN
Power Supply Silver Stone DECATHLON 850W SST-DA850-G
Mouse Logitech G502 HERO
You're not getting the point across at all.

I said, "The conditions for touch panel operation are the same for HDMI and DPI666."

I didn't say, "The conditions for the difficulty of projecting images onto a display are the same for HDMI and DPI666."


If my explanation doesn't make sense I'll just stop explaining.



I'm not an expert on either Raspberry Pi or Linux.

I don't understand whether Config.txt is recorded on the Raspberry Pi when it is recognized (similar to the BIOS settings on a PC), or whether the Raspberry Pi OS (Linux) interprets and converts the contents of Config.txt and sends commands to the SoC.

In the former case, once you write the config in the Raspberry Pi environment, the changes should be retained even if you write a different OS to a different SD card and start it, and the image should be output in the DPI666 method.

In the latter case, you will need to figure out how to write it on the FreeBSD side, or understand the raw commands to the SoC and how to execute them.

EDIT:
After some research, I found that config.txt functions like a BIOS on a PC, but is placed on the same partition on the SD card as bootcode.bin and start.elf.
This file is loaded before the OS starts and configures the SoC.

This means that this file will always be present on the SD card and will function with FreeBSD as well.

All you need to do is edit /boot/config.txt on the SD card used to boot FreeBSD so that it has the same content as config.txt for Hackberry-Pi_Zero, at least once.
 
Last edited:
Joined
Sep 11, 2020
Messages
216 (0.13/day)
After some research, I found that config.txt functions like a BIOS on a PC, but is placed on the same partition on the SD card as bootcode.bin and start.elf.
This file is loaded before the OS starts and configures the SoC.

This means that this file will always be present on the SD card and will function with FreeBSD as well.

All you need to do is edit /boot/config.txt on the SD card used to boot FreeBSD so that it has the same content as config.txt for Hackberry-Pi_Zero, at least once.

I know. I have this basic knowledge. But nothing more. I don't know how what to add inside the config.txt file. Probably there are much more modifications to do,such as the recompilation of the device tree,that by default is tailored for Linux,but it's not valid for FreeBSD.

I want to repeat that the easier and direct way is to find a display that has the hardware characteristics that I have mentioned before.
 
Joined
Aug 16, 2024
Messages
102 (0.46/day)
Location
Japan
System Name MainPC
Processor AMD Ryzen 7 5800X3D
Motherboard AsRock B550M Steel Legend
Cooling SCYTHE Big Shuriken 3 SCBSK-3000R
Memory DDR4-3600 32GB
Video Card(s) ZOTAC GeForce GTX 1080 TI Blower ZT-P10810B-10B
Storage KIOXIA EXCERIA PRO 1TB SSD-CK1.0N4P/N and 2 SSDs + 1 HDD
Case SilverStone SST-SG12B
Audio Device(s) TASCAM US-366-SN
Power Supply Silver Stone DECATHLON 850W SST-DA850-G
Mouse Logitech G502 HERO
Give a look behind that display,you will find that it's not slim.

I doubt. The display area of "your" display seems to be 8.4,not 72.53. I don't understand why you exclude the black frame all around the display.
One thing is certain.
If you buy an HDMI monitor, the exact same thing will happen, so this is a meaningless opinion.
An HDMI monitor would require a board to convert to HDMI and a thick connector, so it would never fit into the Hackberry-Pi_Zero case.

In other words, once you choose HDMI, the case will need to be redesigned.

At that point, there's no point in discussing subtle differences in display size.

You just need to make a case that will fit your newly chosen display.

Or rather, you can't move forward without making a case.

Conversely, you can choose the display you like without worrying about size.
 
Joined
Sep 11, 2020
Messages
216 (0.13/day)
In other words, once you choose HDMI, the case will need to be redesigned.

You could do it,in 2/3 days based on your deep knowledge of CAD :D ; the case of the HackBerry Pi is a way less complicated than the tablet one.

You are not obliged. Maybe in the future I will find someone who wants or I could do it by myself ; I'm only considering this route easier than to get bogged me down in setting up something too complicated for me.

Maybe I can buy a case that's already been created for an existing phone. There are some routes to try to follow.

---> An HDMI monitor would require a board to convert to HDMI and a thick connector, so it would never fit into the Hackberry-Pi_Zero case.

Where is the board that you have mentioned,in this display :


I don't see it externally...maybe it is internally ?

At this point,I think that a nice compromise is to grab a display like this :


or this one :


what do you think ? for sure it does not fit inside the case,so I should create a new one.
 
Last edited:
Top