Lakka lacks crt support?

Currently, yes, AFAIK.

Hello !

Restarting this thread, for a CRT issue. I updated Lakka to 3.0 on Rpi 4, and i can’t seem to boot on the user interface with my adapters and my HDMI timings. I use VGA666 vga adapter and pi2scart, I entered my custom timings in the config.txt and then the distroconfig.txt, but it didn’t work. The startup blocks at the Flower splash screen.

I have no issue when i use the default settings with my pi4 plugged in HDMI to my Tv monitor

Here are my settings : disable_audio_dither=1 dtparam=audio=on dtoverlay=vga666 enable_dpi_lcd=1 display_default_lcd=1 dpi_group=2 dpi_mode=87

hdmi_timings=1920 1 152 247 280 240 1 1 7 14 0 0 0 60 0 40860000 1

Anyone can help ? Thanks a lot !

I’m seeing the same behavior with a Retrotink Ultimate/RPi3B+ on Lakka 3 - it gets stuck at the flower splash screen. I tried both an update from a 2.1.1 Lakka (that was working with the Retrotink) and a full clean install of Lakka v3 (plus config changes needed for Retrotink), but neither worked for the Retrotink output (in my case S-Video) with Lakka v3.

I’d try the command line interface:

Lakka documentation - Accessing Lakka command line interface

Then start Retroarch from the command line:

retroarch --verbose

This should at least give you an error message. I don’t know if it helps, but you could try different values for video_monitor_index in the retroarch.cfg config file.

Are these adapters using the GPIO pins of the RPI to output video? This could require drivers that Lakka does not have.

This is what I get if I run “retroarch --verbose”

Lakka (official): 3.1 (RPi2.arm)
Lakka:~ # retroarch --verbose
[INFO] RetroArch 1.9.4 (Git c226bd87f4)
[INFO] === Build =======================================
[INFO] Capabilities:  NEON VFPv3 VFPv4
[INFO] Built: Jun  3 2021
[INFO] Version: 1.9.4
[INFO] Git: c226bd87f4
[INFO] =================================================
[INFO] [Input]: Found input driver: "udev".
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 48000.00 Hz.
[INFO] [Video]: Video @ fullscreen
[INFO] [Video]: Starting threaded video driver ...
[ERROR] [KMS]: Couldn't find a suitable DRM device.
[INFO] [GL]: Found GL context: null
[INFO] [GL]: Detecting screen resolution 320x240.
[INFO] [GL]: Vendor: (null), Renderer: (null).
[INFO] [GL]: Version: (null).
Segmentation fault

Note: the Retrotink Ultimate works in Lakka v2, so could this be a video driver compatibility issue that is new in v3 perhaps?

This means that it wasn’t able to find a display device to output to. The same would happen if you were trying to output to an HDMI monitor that you forgot to plug in.

As far as I understand, the video drivers indeed have changed between Lakka 2.3.2 and Lakka 3.0, before it used the Videocore drivers and no KMS, now it uses the generic Mesa driver and KMS. I do not know if the driver that’s responsible for video output over GPIO is compatible with KMS. It would be helpful to consult the vendor of your adapter to know what driver setup is needed. If it only works with the Videocore driver, you’d have to get a custom build of Lakka that is configured to use this driver.

This issue should be fixed on latest stable. Please verify.

1 Like

No it’s not working. (Rpi 3B+, Pi2SCART) Lakka 3.2. It worked on 2.3.2.

config.txt (modified as per http://pi2jamma.info)

disable_audio_dither=1

dtparam=audio=on

dtoverlay=vga666

enable_dpi_lcd=1

display_default_lcd=1

dpi_group=2

dpi_mode=87

hdmi_timings=320 1 16 30 34 240 1 2 3 22 0 0 0 60 0 6400000 1

1 Like

It is also still not working for me in Lakka 3.2 (gets stuck on the flower splashscreen). Rpi 3B+, Retrotink Ultimate. It worked in 2.3.2.

config.txt:

dtparam=audio=on
dtoverlay=dpi24
enable_dpi_lcd=1
display_default_lcd=1
dpi_output_format=519
dpi_group=2
dpi_mode=87
hdmi_timings=2048 1 180 202 300 240 1 3 5 14 0 0 0 60 0 42954545 1

I saw that distroconfig.txt also specifies dtoverlay, so I tried commenting out the “include distroconfig.txt” in config.txt but it did not make a difference.

I tried as well with Rpi 3B, Retrotink Ultimate and Lakka 3.2 and no image either. I really hope this gets sorted.

2 Likes

I also am hoping for a fix or solution for this. I’m in the process of setting up a RPi arcade cabinet for RPi4. Saw the video where Bahn Yuki got retrotink working on Lakka, and wanted to give it a try. Well, he used 2.3.1 image (which I can’t find to try). I get stuck at a very narrow flower on my CRT using his settings.

I’m wondering if there is a retroarch setting that can be tinkered with in order to prevent its segmentation fault. I tried setting the interface to rgui but that didn’t make any difference. I’m looking in the filesystem for the retroarch.cfg, but the only one I found was the placeholder in /etc, and I can’t figure out how to remount /etc as rw to edit it.

I’ve got a backup Rpi3b+ with retropie which works with the retrotink, so I’m not totally sunk, but it would be nice to have the added power from Pi4. Most of my experience is with RetroPie, so I’m a little lost with how to operate Lakka. Still want to make it work.

EDIT: So I played with some config settings in retroarch. I changed the viewport to 720x480 instead of the default 1200x900. I turned threaded video and vsync off. And this time when I ran retroarch I didn’t segfault. I didn’t get a full launch either, but I didn’t segfault, so thats some progress. Here’s the verbose output log.

INFO] RetroArch 1.9.5 (Git 6738fa57aa) [INFO] === Build ======================================= [INFO] Capabilities: ASIMD [INFO] Built: Jun 18 2021 [INFO] Version: 1.9.5 [INFO] Git: 6738fa57aa [INFO] ================================================= [INFO] [Input]: Found input driver: “udev”. [INFO] [Environ]: SET_PIXEL_FORMAT: RGB565. [INFO] Version of libretro API: 1 [INFO] Compiled against API: 1 [INFO] [Audio]: Set audio input rate to: 48000.00 Hz. [INFO] [Video]: Video @ fullscreen [ERROR] [KMS]: Couldn’t find a suitable DRM device. [INFO] [GL]: Found GL context: null [INFO] [GL]: Detecting screen resolution 320x240. [INFO] [GL]: Vendor: (null), Renderer: (null). [INFO] [GL]: Version: (null). [ERROR] [Video]: Cannot open video driver … Exiting … [ERROR] Fatal error received in: “init_video()” [INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds. [INFO] [Core]: Unloading core… [INFO] [Core]: Unloading core symbols… [INFO] [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.

I think I might play with the video driver next and see if I get any headway.

EDIT2: Vulkan had some unusual output on the console, but nothing to write home about. Null video driver obviously works but results in, well, no video.

Guys, I did it. Sortof. I changed dtoverlay to fake kms and retroarch launched into the gui with GL driver.

Downside is that it is SUPER squished horizonally with my hdmi timings, which are

hdmi_timings=3840 1 109 343 343 224 1 19 3 16 0 0 0 60 0 72925291 1

So squished that its illegible/unusable. I saw this same behavior inside of retroarch on retropie on Rpi3 and retrotink. I think I will play with some settings more, but if anyone has any suggestions on timing settings to get less squished, that would be helpful. I tried changing 3840 to 1920, but that resulted in no picture (blue input screen which vibrated) on my TV. So I’m sure its just a matter of tweaking. Hope this helps someone else.

1 Like

So I did some more tinkering. I adopted @ELZ timings and that made the Lakka flower appear to be the correct aspect ratio, but rgui still appeared super squished (like, appeared as a vertical band in the center of the TV, about 3 inches wide). I though that the whole retroarch output was displayed in this vertical band, but I was wrong. I fiddled with the cfg, and gave it an invalid option, and when I started retroarch, even though the rgui menu was in the center, the notification popped up in the bottom left corner of the screen (though it was also squished similarly). I then switched back to xmb, and its almost useable, except that you can’t actually see what you have selected, because the aspect ratio of the text and menu is all messed up. This makes me think that the issue is a retroarch CFG issue, and not a video output issue, but I have no idea what to change to help the situation. I’ve tried messing with the custom viewport size and that didn’t seem to change anything. One thing I notices which is odd, is that the background swoosh on the xmb is not distorted at all, only the text is distorted.

I’m also getting a pretty severe 45 degree scanline artifact (45 degree angle scrolling upwards) with these timings. Again, I have no idea what I"m doing with timings, but every time I try to mess with them I break it. Again, any advise would be helpful, as I am just stabbing in the dark here. I think I’m on to something but need just a little bit of assistance to get me across the finish line.

Just a quick note regarding the hdmi timings that I use: I use a horizontal resolution of 2048 because from what I have read (and experienced) 2048 is the only resolution that works with the Retrotink Ultimate’s s-video output (all other resolutions end up black-and-white and noisy or distorted). Component/VGA output can handle other resolutions, but I don’t have component input on my CRT, so s-video is the best I can use. Still, the s-video output looks great with Lakka 2.3.2, so hopefully this will eventually work with v3.

Is there somewhere to get a working image of 2.3.2? The only place I saw one was for the noobs installer, and I’d rather just direct flash.

Tried new 3.3 lakka version with my Retrotink Ultimate with my rpi3 and had no luck. The version I flashed was the arm one. Has anyone been succesfull into outputting image to TV with this new updated version?

Please check this issue.

I think @Crono141 was on the right track with using fake kms. I tried that and got Lakka 3.3 working with the Retrotink Ultimate (RPi3b+). Here are the config.txt settings I used:

#include distroconfig.txt
dtoverlay=vc4-fkms-v3d
dtoverlay=dpi24
enable_dpi_lcd=1
display_default_lcd=1
dpi_output_format=519
dpi_group=2
dpi_mode=87
hdmi_timings=2048 1 180 202 300 240 1 3 5 14 0 0 0 60 0 42954545 1
disable_splash=1
disable_overscan=1
dtparam=audio=on
hdmi_drive=2

From my tests so far the video output seems to be fully working. The only problem I have noticed is that the “snes9x - Current” core is stuttering (it worked fine in Lakka 2.3.2). But snes9x2010 core seems fine in 3.3. This issue may be unrelated to the Retrotink config - I need to do some more testing.

I think the squished image issue that @Crono141 was having with RGUI might just be a matter of getting the custom viewport width and aspect ratio set correctly in retroarch.cfg.

2 Likes

I can confirm that lakka 3.3 is indeed working with my Rpi3 w/ Retrotink Ultimate. Unfortunately, all the cores seems to have diminished performance - I can´t use runahead features on snes9x2010 like I used to on 2.3.2. The menus are a lot cleaner and more polished, though. I can onlu wish that lakka works one day on rpi4 with component output on 240p.

Not using Retrotink; just a standard composite cable. This config doesn’t work on 3.3 for me. I’m only getting a black screen.