Open james-bay opened 3 years ago
can you try with hdmi_force_mode=1
?
also make sure you've connected the monitor to HDMI port 0 since the hdmi
options by default apply to port 0 only. (for example, use hdmi_force_hotplug:1=1
to apply an option to HDMI port 1 instead)
I tried hdmi_force_mode=1
but the resolution is not detected.
I connected the screen to port 0 and made these configurations in config.txt
:
# Chalk Screen
hdmi_force_hotplug=0
hdmi_force_mode=1
hdmi_ignore_edid=0xa5000080
config_hdmi_boost=4
hdmi_group=2
hdmi_mode=28
gpu_mem=64
That didn't work either
The edid has the following data:
~ $ cat /sys/devices/platform/gpu/drm/card1/card1-HDMI-A-1/edid | edid-decode
EDID version: 1.3
Manufacturer: SAM Model 5b0 Serial Number 0
Made in week 13 of 2009
Digital display
Maximum image size: 16 cm x 9 cm
Gamma: 2.20
RGB color display
First detailed timing is preferred timing
Display x,y Chromaticity:
Red: 0.6396, 0.3300
Green: 0.2998, 0.5996
Blue: 0.1503, 0.0595
White: 0.3125, 0.3291
Established timings supported:
720x400@70Hz 9:5 HorFreq: 31469 Hz Clock: 28.320 MHz
640x480@60Hz 4:3 HorFreq: 31469 Hz Clock: 25.175 MHz
640x480@67Hz 4:3 HorFreq: 35000 Hz Clock: 30.240 MHz
640x480@72Hz 4:3 HorFreq: 37900 Hz Clock: 31.500 MHz
640x480@75Hz 4:3 HorFreq: 37500 Hz Clock: 31.500 MHz
800x600@56Hz 4:3 HorFreq: 35200 Hz Clock: 36.000 MHz
800x600@60Hz 4:3 HorFreq: 37900 Hz Clock: 40.000 MHz
800x600@72Hz 4:3 HorFreq: 48100 Hz Clock: 50.000 MHz
800x600@75Hz 4:3 HorFreq: 46900 Hz Clock: 49.500 MHz
832x624@75Hz 4:3 HorFreq: 49726 Hz Clock: 57.284 MHz
1024x768@60Hz 4:3 HorFreq: 48400 Hz Clock: 65.000 MHz
1024x768@70Hz 4:3 HorFreq: 56500 Hz Clock: 75.000 MHz
1024x768@75Hz 4:3 HorFreq: 60000 Hz Clock: 78.750 MHz
1280x1024@75Hz 5:4 HorFreq: 80000 Hz Clock: 135.000 MHz
1152x870@75Hz 192:145 HorFreq: 67500 Hz Clock: 108.000 MHz
Standard timings supported:
1152x864@75Hz 4:3 HorFreq: 67500 Hz Clock: 108.000 MHz
1280x800@60Hz 16:10
1280x960@60Hz 4:3 HorFreq: 60000 Hz Clock: 108.000 MHz
1280x1024@60Hz 5:4 HorFreq: 64000 Hz Clock: 108.000 MHz
1440x900@60Hz 16:10 HorFreq: 55500 Hz Clock: 88.750 MHz
1440x900@75Hz 16:10 HorFreq: 82300 Hz Clock: 156.000 MHz
1600x1200@60Hz 4:3 HorFreq: 75000 Hz Clock: 162.000 MHz
1680x1050@60Hz 16:10 HorFreq: 64700 Hz Clock: 119.000 MHz
Detailed mode: Clock 148.500 MHz, 160 mm x 90 mm
1920 2008 2052 2200 hborder 0
1080 1084 1089 1125 vborder 0
+hsync +vsync
VertFreq: 60 Hz, HorFreq: 67500 Hz
Detailed mode: Clock 74.250 MHz, 160 mm x 90 mm
1280 1720 1760 1980 hborder 0
720 725 730 750 vborder 0
+hsync +vsync
VertFreq: 50 Hz, HorFreq: 37500 Hz
Monitor ranges (GTF): 24-75Hz V, 26-81kHz H, max dotclock 230MHz
Monitor name: SyncMaster
Has 1 extension blocks
Checksum: 0xd1 (valid)
CTA extension block
Extension version: 3
31 bytes of CTA data
Video data block
VIC 19 1280x720@50Hz 16:9 (native) HorFreq: 37500 Hz Clock: 74.250 MHz
VIC 4 1280x720@60Hz 16:9 HorFreq: 45000 Hz Clock: 74.250 MHz
VIC 5 1920x1080i@60Hz 16:9 HorFreq: 33750 Hz Clock: 74.250 MHz
VIC 20 1920x1080i@50Hz 16:9 HorFreq: 28125 Hz Clock: 74.250 MHz
VIC 3 720x480@60Hz 16:9 HorFreq: 31469 Hz Clock: 27.000 MHz
VIC 18 720x576@50Hz 16:9 HorFreq: 31250 Hz Clock: 27.000 MHz
VIC 16 1920x1080@60Hz 16:9 HorFreq: 67500 Hz Clock: 148.500 MHz
VIC 31 1920x1080@50Hz 16:9 HorFreq: 56250 Hz Clock: 148.500 MHz
VIC 32 1920x1080@24Hz 16:9 HorFreq: 27000 Hz Clock: 74.250 MHz
VIC 33 1920x1080@25Hz 16:9 HorFreq: 28125 Hz Clock: 74.250 MHz
VIC 34 1920x1080@30Hz 16:9 HorFreq: 33750 Hz Clock: 74.250 MHz
Audio data block
Linear PCM, max channels 2
Supported sample rates (kHz): 48 44.1 32
Supported sample sizes (bits): 24 20 16
Speaker allocation data block
Speaker map:
FL/FR - Front Left/Right
Extended tag: Video capability data block
YCbCr quantization: No Data (0)
RGB quantization: No Data (0)
PT scan behaviour: No Data (0)
IT scan behaviour: Support both over- and underscan (3)
CE scan behaviour: Support both over- and underscan (3)
Vendor-specific data block, OUI 000c03 (HDMI)
Source physical address 1.0.0.0
Supports_AI
DC_36bit
DC_30bit
DC_Y444
Maximum TMDS clock: 225MHz
Underscans PC formats by default
Basic audio support
Supports YCbCr 4:4:4
Supports YCbCr 4:2:2
1 native detailed modes
Detailed mode: Clock 74.250 MHz, 160 mm x 90 mm
1920 2448 2492 2640 hborder 0
540 542 547 562 vborder 0
+hsync +vsync interlaced
VertFreq: 50 Hz, HorFreq: 28125 Hz
Detailed mode: Clock 74.250 MHz, 160 mm x 90 mm
1920 2008 2052 2200 hborder 0
540 542 547 562 vborder 0
+hsync +vsync interlaced
VertFreq: 60 Hz, HorFreq: 33750 Hz
Detailed mode: Clock 74.250 MHz, 160 mm x 90 mm
1280 1390 1430 1650 hborder 0
720 725 730 750 vborder 0
+hsync +vsync
VertFreq: 60 Hz, HorFreq: 45000 Hz
Detailed mode: Clock 27.000 MHz, 160 mm x 90 mm
720 732 796 864 hborder 0
576 581 586 625 vborder 0
-hsync -vsync
VertFreq: 50 Hz, HorFreq: 31250 Hz
Detailed mode: Clock 27.000 MHz, 160 mm x 90 mm
720 736 798 858 hborder 0
480 489 495 525 vborder 0
-hsync -vsync
VertFreq: 59 Hz, HorFreq: 31468 Hz
Checksum: 0x57 (valid)
Mh that's weird. flutter-pi just uses the video mode recommended by the kernel (there should always be exactly one video mode recommended by the kernel), and if that's not the case (even though that should never happen) it'll use the one with the highest resolution, highest refresh-rate, non-interlaced, which seems to be whats going on in your case. What happens when you run without the hdmi_ignore_edid
option? (I guess you tried that already, but still)
Theoretically you could hardcode the resolution in the flutter-pi.c
file, but in the long term it's probably better I provide cmdline options for forcing a specific video mode.
Hello! I tried to run flutter_gallery as written in the README, but encountered a problem. The flutter-pi cannot detect the screen resolution:
The config.txt for the screen has these settings:
The physical resolution of the screen is 1280x800 and so
hdmi_mode=28
is the correct value. Can you tell me, please, how else can I try to set the resolution?