Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6796

Bare metal, Assembly language • Cannot change screen depth on RPI 5

$
0
0
Hello,

I have one last problem with my RPI 4 to 5 migration where I can't find a solution.
When I try to change screen depth with the Mailbox Property Interface, I get some strange results:

Code:

0000007C 8000000000048003 00000008 80000008 00000780 00000438SET_PHYSICAL_WIDTH_HEIGHT00048004 00000008 80000008 00000780 00000438SET_VIRTUAL_WIDTH_HEIGHT00048005 00000004 80000004 00000020FRAMEBUFFER_SET_DEPTH return 32 bits / 16M colors00048009 00000008 80000008 00000000 00000000FRAMEBUFFER_SET_VIRTUAL_OFFSET00040001 00000008 80000008 3F800000 003F4800FRAMEBUFFER_ALLOCATE return screen size for 65K colors00040008 00000004 80000004 00000F00FRAMEBUFFER_GET_PITCH return line size for 65K colors00000000
=> screen is 1920x1080x16, default boot screen on RPI 5

I know some tags don't work, for example Get Board Revision where you must use Device Tree.

With framebuffer_depth=32 inside config.txt:

Code:

0000007C 8000000000048003 00000008 80000008 00000780 00000438SET_PHYSICAL_WIDTH_HEIGHT00048004 00000008 80000008 00000780 00000438SET_VIRTUAL_WIDTH_HEIGHT00048005 00000004 80000004 00000020FRAMEBUFFER_SET_DEPTH00048009 00000008 80000008 00000000 00000000FRAMEBUFFER_SET_VIRTUAL_OFFSET00040001 00000008 80000008 3F400000 007E9000FRAMEBUFFER_ALLOCATE00040008 00000004 80000004 00001E00FRAMEBUFFER_GET_PITCH00000000
=> all is OK, screen is 1920x1080x32, not changed

But it's not a good solution...

Regards

Statistics: Posted by aniplay — Sun Jan 14, 2024 8:07 am — Replies 0 — Views 106



Viewing all articles
Browse latest Browse all 6796

Trending Articles