Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contacting you #1

Open
britxpatusa opened this issue Apr 26, 2022 · 15 comments
Open

contacting you #1

britxpatusa opened this issue Apr 26, 2022 · 15 comments

Comments

@britxpatusa
Copy link

hello - im trying to get the VGA adapter working but having no luck on a P400 or Pi4.
can you help?

@llegoff
Copy link
Owner

llegoff commented Apr 27, 2022

Hello,
what OS are you trying to run the interface on?
Raspberry pi OS, Recalbox OS, RGBpi OS, ... ?
What screen are you using? what resolution?

Cordially
Laurent

@britxpatusa
Copy link
Author

britxpatusa commented Apr 27, 2022 via email

@britxpatusa
Copy link
Author

quick update on this:
sound is working through the adapter
HDMI is working
VGA still no signal

@llegoff
Copy link
Owner

llegoff commented Apr 27, 2022

Overlay vc4-kms-dpi-generic work with vc4-kms-v3d (not with vc4-fkms-v3d)

modify


[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

by

[pi4]
 # Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-kms-v3d
max_framebuffers=2

erase 2 line

gpio=0-1=a2
gpio=2-8,12-17,20-24=a2

this is already configured by the overlay vc4-kms-dpi-generic

I'm not sure that the vc4-kms-dpi-generic overlay is up to date on CoinOPS

the vc4-vga666 overlay (https://github.com/Cpasjuste/rpi-dpidac) can also be used with the mode6 option
This overlay seems present on CoinOPS

dtoverlay=vc4-kms-v3d
dtoverlay=vc4-vga666,mode6

Overlay vc4-vga666 work with vc4-kms-v3d (not with vc4-fkms-v3d)

I don't know CoinOPS, I download it to test

@britxpatusa
Copy link
Author

awesome ill give that a go thanks!

@llegoff
Copy link
Owner

llegoff commented Apr 27, 2022

I tested CoinOPS, but my gamepad does not work.
below are the 2 configs that work

configuration working with the vc4-kms-v3d overlay

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# Disable rainbow image at boot
disable_splash=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=16

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=2100
#v3d_freq=850
#over_voltage=7

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
#arm_boost=1

[all]
enable_uart=1

# Enable audio on GPIO for Pi400
dtoverlay=audremap,pins_18_19
dtparam=audio=on

dtoverlay=vc4-kms-dpi-generic,rgb666-padhi
dtparam=hactive=320,hfp=4,hsync=30,hbp=46
dtparam=vactive=240,vfp=4,vsync=5,vbp=14
dtparam=clock-frequency=6400000
#   Resolution@freq  hactive hfp hsync  hbp vactive vfp vsync vbp  clock-frequency
#VGA   640x480  @60   640     16   96    48   480    10   2    33    25175000
#SVGA  800x600  @60   800     40  128    88   600     1   4    23    40000000
#XGA  1024x768  @60  1024     24  136   160   768     3   6    29    65000000
#VESA 1368x768  @60  1368     72  144   216   768     1   3    23    85860000
#VESA 1280x800  @60  1280     64  136   200   800     1   3    24    83460000
#VESA 1280x1024 @60  1280     48  112   248  1024     1   3    38   108000000
#VESA 1400x1050 @60  1400     88  152   240  1050     1   3    33   122660000
#VESA 1600x1200 @60  1600     64  192   304  1200     1   3    46   162000000
#--- TV -----
#244p (NTSC res)@60   320      4   30    46   240     4   5    14     6400000
#288p (PAL res) @50   384     16   32    40   288     3   2    19     7363200
#480p           @60   640     24   96    48   480    11   2    32    25452000
#720p           @60  1280    110   40   220   720     5   5    20    74250000
#1080p          @60  1920     88   44   148  1080     4   5    36   148500000

I note that with the vc4-dpi-generic overlay does not manage interlaced resolution

configuration working with the vc4-fkms-v3d overlay

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# Disable rainbow image at boot
disable_splash=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=16

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=2100
#v3d_freq=850
#over_voltage=7

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
#arm_boost=1

[all]
enable_uart=1

# Enable audio on GPIO for Pi400
dtoverlay=audremap,pins_18_19
dtparam=audio=on

# DPI
# disable i2c, pin use by h-sync & v-sync
dtparam=i2c_arm=off
gpio=2-9,12-17,20-24=a2
dpi_output_format=0x6
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
#244p@60
hdmi_timings=320 1 4 30 46 240 1 4 5 14 0 0 0 60 0 6400000 1
#288p@50
#hdmi_timings=384 1 16 32 40 288 1 3 2 19 0 0 0 50 0 7363200 1
#576i@50
#hdmi_timings=768 1 24 72 88 576 1 6 5 38 0 0 0 50 1 14875000 1
#480i@60
#hdmi_timings=640 1 24 64 104 480 1 3 6 34 0 0 0 60 1 13054080 1
#480p@60
#hdmi_timings=640 1 24 96 48 480 1 11 2 32 0 0 0 60 0 25452000 1

vc4-vga666 overlay is not installed on CoinOPS

TV resolutions are better handled on RecalboxOS and RGB-Pi-OS

@britxpatusa
Copy link
Author

ok i will try now! thanks for looking at this!

@britxpatusa
Copy link
Author

ok we have a picture now but its correct - need to find resolution?
also lost sound from the VGA adapter?

@llegoff
Copy link
Owner

llegoff commented Apr 27, 2022

I don't have the sound either on CoinOPS, but I have it on RaspberrypiOS with the same config

I saw in a CoinOPS documentation that the sound is by default on hdmi

there is probably a menu to activate the sound on the jack, but I do not have a controller compatible with CoinOPS, I do not have access to the menu

@britxpatusa
Copy link
Author

thanks i had the sound working through the adapter..the coinops build is HDMI only v3 will allow other...
Are there any other options in terms of hdmi timings i can try?
I have tried all of these by uncommenting each one(#)
Im using a VGA to RGB adpater to the CRT tv (NTSC) USA tv

@llegoff
Copy link
Owner

llegoff commented Apr 27, 2022

on the Recalbox wiki page there is a list of hdmi_timmings to test :
https://wiki.recalbox.com/en/tutorials/video/crt/crt-screen-dpi-vga666-piscart-rgbpi

pi400RGB works well with Recalbox:
https://wiki.recalbox.com/en/tutorials/video/crt/recalbox-on-crt-with-scart-dac

@britxpatusa
Copy link
Author

britxpatusa commented Apr 27, 2022 via email

@llegoff
Copy link
Owner

llegoff commented Apr 28, 2022

There are 3 types of vga to RGB cables:

  • VGA -> 5 RCA or BNC ( R + G + B + Hsync + Vsync) this type of cable works
  • VGA -> 4 RCA or BNC ( R + G + B + Csync) this type of cable has a good chance of working
  • VGA -> 3 RCA or BNC ( R + G/Csync +B) this type of cable will only work if it contains components to combine the G+Hsync+Vsync signals on the same connector

@britxpatusa
Copy link
Author

britxpatusa commented Apr 28, 2022 via email

@llegoff
Copy link
Owner

llegoff commented Apr 28, 2022

CT-27SL15 seems to have a YPbPr input, and cable is VGA to YPbPr, its good
this cable contains components to convert RGB (VGA) to YPbPr
Y=0,299R+0,587G+0,114B+Csync
Pb=-0,168
R-0,331G+0,5B
pr=0,5R-0,418G-0,081*B

in europe we did not have YPbPr socket on CRT TVs, but a SCART socket with RGB input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants