How to use composite output on pi4

Hello,
I’m trying to get info-beamer to work on some old tvs. I have updated the config with:

sdtv_mode=0
sdtv_aspect=1
enable_tvout=1

However it never seems to detect the tv and thus restarts with the previous config.

I’m not too sure how to view the logs either as it doesnt say my device is connected before restarting.

Any help would be much appreciated!

Hm. That suggest the info-beamer process isn’t able to start for some reason and the system reboots after around 6 minutes. Does that sound about right?

If so, there should be a /space/log/rollback.log.gz. It contains the log output taken before the device decided to revert to the previous config including various other log output. Maybe that contains useful information on what’s going on?

Thanks for the response!

Unfortunately, I only see events.log in this directory. But yeah red light goes off and the green light blinks for a few minutes before the pi restarts with the former configurations.

While it’s possible to configure this remotely, doing so by modifying the SD content is a bit easier to explain. Can you create the file /config/display on the SD card with the content 3 (just the digit 3)? And of course the lines from above in the /config/userconfig.txt files?

The display one is necessary to force the player process to use the LCD output instead of searching for HDMI and failing at that → reboot.

1 Like

Ok done! I was able to get the pi to connect so I could download the debug logs before it restarted again.

This portion seems helpful:

Aug 16 16:34:51 info-beamer-3768188374 user.notice syncer: found a critical error: CRITICAL ERROR: Cannot setup DRM device(s)
Aug 16 16:34:52 info-beamer-3768188374 user.notice syncer: no need to sync, as websocket is connected and we had a successful sync
Aug 16 16:34:52 info-beamer-3768188374 user.notice syncer: websocket command: []
Aug 16 16:34:52 info-beamer-3768188374 user.notice syncer: running (['/bin/sysinfo', '/tmp/debug.log'],) {'cwd': '/'}
Aug 16 16:34:52 info-beamer-3768188374 user.notice syncer: [ib watch] cannot query. assume down: InfoBeamerQueryException('Cannot connect to 127.0.0.1:4444: [Errno 111] Connection refused',)
Aug 16 16:34:52 info-beamer-3768188374 user.notice syncer: [ib watch] expected up. starting
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: Info Beamer PI 1.0.3.f673d9~hosted-11-fkms (https://info-beamer.com)
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: Copyright (c) 2012-2020, Florian Wesch <fw@info-beamer.com>
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: info-beamer hosted edition. Learn more on https://info-beamer.com.
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [watchdog.c] hardware watchdog installed. 15 seconds timeout
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [watchdog.c] software watchdog installed. 15 seconds timeout
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] chdir /space
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] root node is root
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] running as euid/egid 0/0
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] luajit version: LuaJIT 2.1.0-beta3~f0e865
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] linux version: 5.10.76-v7l+ #1474 SMP Thu Oct 28 13:42:00 BST 2021 armv7l
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] firmware version: Oct 28 2021 14:15:04  Copyright (c) 2012 Broadcom version bcdfe55d56b75b4be52c10d73bdb4a60e2b49f75 (clean) (release) (start_x)
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] bootloader version: 2022/03/10 11:57:12 version 778c182c82ab673c60a476da6f4e73a03854cacd (release) timestamp 1646913432 update-time 0 capabilities 0x0000007f 
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] pi version: 00b03115
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] pi model: Raspberry Pi 4 Model B Rev 1.5 
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] config: arm_freq=1500 audio_pwm_mode=514 avoid_warnings=1 boot_delay=10 config_hdmi_boost=5 core_freq=500 core_freq_min=200 disable_commandline_tags=2 disable_l2cache=1 disable_overscan=1 disable_splash=1 display_
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] environ: INFOBEAMER_ENV_TAG=stable-0013 INFOBEAMER_WATCHDOG=15 INFOBEAMER_ADDR=127.0.0.1 INFOBEAMER_ENV_CHANNEL=stable INFOBEAMER_FORCE_SINGLE=1 INFOBEAMER_OPENFILE_ON_DIR_IS_WARNING=1 INFOBEAMER_ENV_VERSION=22062
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] memory: arm=768M gpu=256M
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [main.c] file descriptor limit: 8192
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [surface.c] DRM device /dev/dri/card0
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [surface.c]  connectors: 1
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [surface.c]  encoders: 1
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [surface.c]  crtcs: 1
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [surface.c] found 1 attached devices
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [surface.c] Connector 0:
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [surface.c] detected Composite display 3 device Unk Composite dis
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [surface.c]  720x480@60.000 Invalid 1
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [surface.c]   skipping -> only display 2 active. This is 3
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [surface.c] No usable display found!
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: [watchdog.c] releasing hardware watchdog
Aug 16 16:34:52 info-beamer-3768188374 user.notice info-beamer: CRITICAL ERROR: Cannot setup DRM device(s)
Aug 16 16:34:52 info-beamer-3768188374 user.notice syncer: [web api] 127.0.0.1 16/Aug/2022 16:34:52 "GET /api/v1/status HTTP/1.1" 200 -

That log line shouldn’t be there if the /config/display file exists and has the content 3 in it. Are you sure you didn’t accidentally create /config/display.txt instead? Or maybe the A/B mechanism was just doing config/OS updates and you had the wrong partition?

Oh whoops yes it was a file format issue! Ok so now it seems to start and detect the correct video ouput ( Unk-Composite dis 720x480 60.00Hz). The snapshot also displays the image as well. However I don’t see an image on either of the two tvs I am attempting to display this on.

Nevermind got it! thank you so much!

Neat. Be sure to post pictures if you have a nice retro setup!

1 Like