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

Graphics, sound and multimedia • 1.28" LCD 240x240 with gc9a01 driver without X

$
0
0
Hi there,

I have this display I would like to use to show an image or a video with a Raspberry Pi 3B+ running Raspberry Pi OS Lite (bookworm).
Image

Code:

fbset -fb /dev/fb1 --info
gives me:

Code:

mode "240x240"    geometry 240 240 240 240 16    timings 0 0 0 0 0 0 0    nonstd 1    rgba 5/11,6/5,5/0,0/0endmodeFrame buffer device information:    Name        : fb_ili9340    Address     : 0    Size        : 115200    Type        : PACKED PIXELS    Visual      : TRUECOLOR    XPanStep    : 0    YPanStep    : 0    YWrapStep   : 0    LineLength  : 480    Accelerator : No
I don't have a

Code:

/dev/fb0
, maybe because I installed a minimal version of the Raspberry Pi OS, and I don't have an HDMI display connected.
I have a

Code:

/dev/fb1
available, but

Code:

cat /dev/urandom > /dev/fb1
returns

Code:

cat: write error: File too large
.
With smaller files, cat does not complain, but nothing is showing:

Code:

cat atomium.svg > /dev/fb1
.

Anyhow, I would like to have that screen as a way to display an image or a video, and even as a console if that is possible.

I have made a few modifications in

Code:

/boot/firmware/config.txt
:

Code:

dtparam=spi=ondtoverlay=gc9a01hdmi_force_hotplug=1hdmi_cvt=240 240 60 1 0 0 0hdmi_group=2hdmi_mode=87hdmi_drive=2display_rotate=2framebuffer_width=240framebuffer_height=240

Code:

sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framedrop big_buck_bunny_240x240p_30mb.mp4
doesn't say anything bad, but nothing happens on the screen.

Code:

 sudo fbi -d /dev/fb1 -T 1 -noverbose -a atomium.png
doesn't show any error, but nothing can be seen on the screen.

How could I find where I failed? Are there any commands that could help me find one of the failure root causes?

Many thanks for considering my request.

Statistics: Posted by gounthar — Sun Jan 28, 2024 5:47 pm



Viewing all articles
Browse latest Browse all 5087

Trending Articles