Installed Lakka On PC. Problem With Resolution

So I noticed that even under windows this TV I have here seems to be reported as 1280x720 as the max resolution. Problem is that’s actually out of range and it’s really 1280x1024@60.

So basically it kept saying out of range when it booted lakka, but I got it to work in 1024x768. Is there a way to force the resolution to 1280x1024 since this is native and will help slightly more with the resizing and look smoother?

I have no idea why the EDID is reporting the wrong resolution but 1280x1024 works fine in windows. I’d rather lakka work because I want to build a little table top arcade machine out of the PC and 19" LCD TV.

Basically can you force lakka to display a certain resolution or have it report a fake EDID? Even at 1024x768 it still goes out of range during boot then comes back on when it’s finished booting. This doesn’t happen on my other TV’s with HDMI or the other VGA monitor I have (which I can’t use as it’s broken)

Any help greatly appreciated. I’m a noob to Linux and I’ll be just left sitting here banging my head against a wall (well not literally I’m not crazy lol)

You can’t fake an EDID but you can try editing your retroarch.cfg to have video_fullscreen_x = “1280” and video_fullscreen_y = “1024” and it should try to force that resolution when it launches the RetroArch process.

Also you can try to set your resolution in the bootloader configuration with

video=DVI-I-1:1280x1024 (dvi) or video=HDMI-A-1:1280x1024 (hdmi)

Check the video output with

for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done

You will have to get access to Lakka command line interface.

Thanks for the replies. Well I know what’s wrong now but I don’t know how to fix it or if it can even be done. It’s saying 1280x1024 isn’t a compatible mode but under windows it works. I actually have to tell the AMD program to use a manual max resolution instead of EDID though. The TV displays better at 1280x1024 it’s definitely it’s native as it’s the highest that would work and you can see that it looks clearer (no blurriness etc.)

The screen is 4:3 so I don’t know why it’s reporting a 16:9 resolution. Here’s the log that explains how that resolution doesn’t work and that it exits retroarch instead:

[13:40:35] [R] [CMD] systemctl stop retroarch.service ; retroarch -v
[13:40:35] [R] [shell] Open
RetroArch [INFO] :: This is RetroArch version 1.5.0 (Git 2a13af5)
RetroArch [INFO] :: === Build =======================================
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 SSE4.2 AVX 
Built: Apr 24 2017
RetroArch [INFO] :: Version: 1.5.0
RetroArch [INFO] :: Git: 2a13af5
RetroArch [INFO] :: =================================================
RetroArch [INFO] :: Loading default config.
RetroArch [INFO] :: Looking for config in: "/storage/.config/retroarch/retroarch.cfg".
RetroArch [INFO] :: Environ SET_PIXEL_FORMAT: RGB565.
RetroArch [INFO] :: Version of libretro API: 1
RetroArch [INFO] :: Compiled against API: 1
RetroArch [INFO] :: Set audio input rate to: 29970.00 Hz.
RetroArch [ERROR] :: [SoftFilter]: Did not find config: 
RetroArch [ERROR] :: Failed to load filter.
RetroArch [INFO] :: Video @ 1280x1024
RetroArch [INFO] :: [DRM]: Found 5 connectors.
RetroArch [INFO] :: [DRM]: Connector 0 connected: no
RetroArch [INFO] :: [DRM]: Connector 0 has 0 modes.
RetroArch [INFO] :: [DRM]: Connector 1 connected: no
RetroArch [INFO] :: [DRM]: Connector 1 has 0 modes.
RetroArch [INFO] :: [DRM]: Connector 2 connected: no
RetroArch [INFO] :: [DRM]: Connector 2 has 0 modes.
RetroArch [INFO] :: [DRM]: Connector 3 connected: no
RetroArch [INFO] :: [DRM]: Connector 3 has 0 modes.
RetroArch [INFO] :: [DRM]: Connector 4 connected: yes
RetroArch [INFO] :: [DRM]: Connector 4 has 14 modes.
RetroArch [INFO] :: [DRM]: Connector 4 assigned to monitor index: #1.
RetroArch [INFO] :: [DRM]: Mode 0: (1280x720) 1280 x 720, 50 Hz
RetroArch [INFO] :: [DRM]: Mode 1: (1024x768) 1024 x 768, 75 Hz
RetroArch [INFO] :: [DRM]: Mode 2: (1024x768) 1024 x 768, 70 Hz
RetroArch [INFO] :: [DRM]: Mode 3: (1024x768) 1024 x 768, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 4: (832x624) 832 x 624, 75 Hz
RetroArch [INFO] :: [DRM]: Mode 5: (800x600) 800 x 600, 75 Hz
RetroArch [INFO] :: [DRM]: Mode 6: (800x600) 800 x 600, 72 Hz
RetroArch [INFO] :: [DRM]: Mode 7: (800x600) 800 x 600, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 8: (800x600) 800 x 600, 56 Hz
RetroArch [INFO] :: [DRM]: Mode 9: (640x480) 640 x 480, 75 Hz
RetroArch [INFO] :: [DRM]: Mode 10: (640x480) 640 x 480, 73 Hz
RetroArch [INFO] :: [DRM]: Mode 11: (640x480) 640 x 480, 67 Hz
RetroArch [INFO] :: [DRM]: Mode 12: (640x480) 640 x 480, 60 Hz
RetroArch [INFO] :: [DRM]: Mode 13: (720x400) 720 x 400, 70 Hz
RetroArch [INFO] :: Found GL context: kms
RetroArch [INFO] :: Detecting screen resolution 1280x720.
RetroArch [ERROR] :: [KMS/EGL]: Did not find suitable video mode for 1280 x 1024.
RetroArch [ERROR] :: Cannot open video driver ... Exiting ...
RetroArch [ERROR] :: Fatal error received in: "init_video()"
RetroArch [ERROR] :: This core requires a content file.
[13:40:35] [R] [shell] Close

This is the log when you changed the configuration for video_fullscreen_x and video_fullscreen_y ?

Did you try to set the resolution of video ouput ? Also the highest detected resolution is 1280 x 720.

Ca you make a test with Lakka 2.1 rc4 ?

Yeah this is with both the video_fullscreen_x and video_fullscreen_y edited and also the syslinux.cfg has the line in there for DVI-I-1 (which is the connection I’m using with a VGA adapter).

I’ll try out that release candidate and see what happens thanks.

I also seen that editing the xorg.conf file and adding a video mode might work but it won’t let me edit the file as it seems to be read only.

EDIT: By the way windows does the same thing and reports 1280x720 but that’s out of range for the TV. It’s one ot the older 4:3 T’V’s with a square screen. Under windows 1280x800, 1280x960 and 1280x1024 all work but 1280x1024 is definitely the clearest resolution. The confusing thing is that’s 5:4 whereas I thought all these TV’s were 4:3 which 1280x960 seems to be.

We are not using Xorg but DRM/KMS for the generic platform.

I tried that rc4 there and I’m getting the same result. I know it isn’t lakka that’s the problem here it’s the TV’s EDID reporting the wrong out of range resolution and lakka is just thinking OK that’s the right resolution so.

Windows id the same like the EDID shows 1280x720 but I have to make it not listen to the EDID and specify the resolution myself. Basically if there’s a way to tell lakka there’s a resolution available (or add one to it somehow) I think that would sort out the problem I’m having, but I’m not sure if that’s possible.

You may try to check this documentation about forcing modes and EDID ?

I got the EDID information from windows. Can I make any use of this or is this only information?

Active : Yes

Registry Key : DISPLAY\BEK3233\5&22e61591&0&UID4864

Monitor Name : BEKO-LWULC

Serial Number : 525000000

Manufacture Week : 35 / 2007

ManufacturerID : 43784 (0xAB08)

ProductID : 12851 (0x3233)

Serial Number (Numeric) : 51100001 (0x030BB961)

EDID Version : 1.3

Display Gamma : 2.20

Vertical Frequency : 56 - 76 Hz

Horizontal Frequency : 31 - 61 KHz

Maximum Image Size : 70 X 40 cm (31.7 Inch)

Maximum Resolution : 1280 X 720

Support Standby Mode : No

Support Suspend Mode : No

Support Low-Power Mode : Yes

Support Default GTF : No

Digital : No

Supported Display Modes :

 720 X  400  70 Hz

 640 X  480  60 Hz

 640 X  480  67 Hz

 640 X  480  72 Hz

 640 X  480  75 Hz

 800 X  600  56 Hz

 800 X  600  60 Hz

 800 X  600  72 Hz

 800 X  600  75 Hz

 832 X  624  75 Hz

1024 X  768  60 Hz

1024 X  768  70 Hz

1024 X  768  75 Hz

1280 X  720  60 Hz

There are ways to generate custom EDIDs in linux but I believe Lakka’s read-only filesystem makes it impossible to actually put it where it needs to go. Not sure about that, though.

What I’m actually going to attempt is to reflash the TV’s EDID to the correct one if possible and that should sort the whole problem out. Thanks.

So far I’ve managed to edit a .DAT file with the correct information for the resolution. I’m not too sure if I should have a .bin file instead but I have to try find out if I can program it to the TV or if I can somehow use it in lakka.

This not necessarily aimed to reply to you, but is also a general remark. I had an issue trying to erase a vertical black bar to the right of my monitor (HDMI->DVI), but no setting helped, until I finally moved the config.txt file so that it would not be read. This actually fixed my problem, so you could try the same. In any case, the problem for me was that the config.txt file includes at the end distroconfig.txt, in which a setting is enabled that caused the issue: hdmi_drive=2. It’s a shame I will need to disable this again with every new update, but I’m happy I found the issue. I hope I help somebody with this, as I could not make my own post :confused: