Videomode file ignored if game override cfg file exists?
-
video_vsync = false
OK, I might have to try that to see. Just to check, can you enable verbose logging when launching the game and then post the resulting log file (
/dev/shm/runcommand.log
) on pastebin.com ?Something that I just discovered, shouldn't the output of tvservice -m CEA match what I see in run command video modes?
Not necessarily, the Pi4 doesn't rely on
tvservice
to change the video mode resolution. In the video mode selection you might see also the DMT modes, as reported by the TV's EDID. -
There's not a lot in that log, I did check that already and nothing jumped out? Other than it executing something with CRTCID (=49) and KMSDRM (=12) in the names.
Is pastebin the only way to do that? Don't have an account, see.
What you might find useful is:
In both cases, i.e. when the cfg file is present (and video switching does not happen) AND when the cfg file is NOT present (video switching DOES occur), my output in the /dev/shm folder IS IDENTICAL.Also of interest, the --appendconfig retroarch.cfg file there has 720 info inside, ie:
video_refresh_rate = 60
video_fullscreen = true
x = 1280
y = 720And while I'm here, what's the point of launching with verbose? All it seems to do is add a redundant --verbose to the runcommand.log? That is, running without it adds literally nothing else. Am I missing something here too? Beginning to feel like an NUFC striker here, missing so much (sorry, a football joke).
Am I correct in saying that outside:
- retroarch.cfg (and system cgfs which #include that)
- core/game overrides (such as what I'm attempting)
- /boot/config.txt
There's nothing else which could be forcing this 1080p behaviour somewhere?
It's starting to feel like a bug (I doubt I'm literally the only person trying this, so...) or my crappy old TV?
Thanks for sticking with me btw.
-
@stevas said in Videomode file ignored if game override cfg file exists?:
Is pastebin the only way to do that? Don't have an account, see.
You don't need one. Please post the verbose log, at least we have a chance to see what configurations are parsed and how RetroArch initializes the video.
-
That's my TIL for today then! Every day a school day...
-
The log doesn't have debugging enabled. When launching the game, use the Runcommand launch menu and run with verbose logging enabled. This should add more information in the log file.
-
I tried with a MD game and cannot reproduce the issue.
- created an 'Alladin (USA).cfg
with just
video_vsync=false`. - chose 800x600 as ROM video mode during the launch, the video mode gets applied
$ grep KMS /dev/shm/runcommand.log Executing: SDL_VIDEO_KMSDRM_CRTCID=49 SDL_VIDEO_KMSDRM_MODEID=5 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-genesis-plus-gx/genesis_plus_gx_libretro.so --config /opt/retropie/configs/megadrive/retroarch.cfg "/home/pi/RetroPie/roms/megadrive/Aladdin (USA).md" --verbose --appendconfig /dev/shm/retroarch.cfg [INFO] [KMS]: New FB: 800x600 (stride: 3200). [INFO] [KMS]: New FB: 800x600 (stride: 3200). [INFO] [KMS]: New FB: 800x600 (stride: 3200).
- if I don't specify the video mode, then the game will run at default display resolution:
$ grep KMS /dev/shm/runcommand.log [INFO] [KMS]: New FB: 1600x1200 (stride: 6400). [INFO] [KMS]: New FB: 1600x1200 (stride: 6400). [INFO] [KMS]: New FB: 1600x1200 (stride: 6400).
Are you sure you don't have any other configurations in place ?
- created an 'Alladin (USA).cfg
-
Hey there. Thanks a load for confirming this at least should work as I believe.
That is partly what I was asking, what else could there be? What other configurations are there?
I've went with the default retroarch.cfg files and all I've added is a game override? I've not messed with core overrides, and all I've changed is maybe integer scaling as a general setting.
Since a full rebuild (as I assumed, as you've confirmed, that I'd clearly done something previously to break it) all I have updated is:
WiFi
Updated packages
Updated shaders/overlays
Setup Bluetooth devices
Larger font
Swapped A and B
That's it.As for:
The log doesn't have debugging enabled. When launching the game, use the Runcommand launch menu and run with verbose logging enabled. This should add more information in the log file.That's what I was saying earlier, I do this? I interrupt the load to get to the runcommand, launch with verbose logging...
And all that appears to happen is the text "--verbose" gets added to the log? I get none of those "stride" lines you do - that pastebin is all I get? An I missing some other setting which enables this correctly? -
@stevas said in Videomode file ignored if game override cfg file exists?:
And all that appears to happen is the text "--verbose" gets added to the log? I get none of those "stride" lines you do - that pastebin is all I get? An I missing some other setting which enables this correctly?
I see, the verbose log should look more detailed - like this.
EDIT: How are you copying the file, for uploading it ?
-
Yeah, I figured. I have no idea why mine isn't like that.
I'm moving it across to the PC via the share //retropie, then opening it there to cut and paste. And if I open it with nano on the pi itself, I can see the exact same output.
Wait, is it possible the unrelated error is stopping verbose output? How do I get rid of that CDROM error?
-
@stevas said in Videomode file ignored if game override cfg file exists?:
Wait, is it possible the unrelated error is stopping verbose output? How do I get rid of that CDROM error?
I don't think so - that error message is benign and comes from RetroArch's real cdrom support. I think that if you update to the latest RetroArch version (from the RetroPie-Setup), the message is gone.
-
Interestingly though, if I remove the thumb drive (which works fine, and I'm using symlinks to it incidentally) I get a different error at the end of the same, truncated log file:
[CDROM] no sg devices found and sg kernel module is not loaded.What's the easiest way for me to get this all updated to where you are? And please don't say rebuild from that image...
-
@stevas said in Videomode file ignored if game override cfg file exists?:
What's the easiest way for me to get this all updated to where you are? And please don't say rebuild from that image...
Just use the normal update from RetroPie-Setup. Maybe install/update RetroArch from source.
-
Updated all core packages from binary, all that did was remove the benign error as you said.
Same annoying behaviour. Same truncated log file.
Updating retroarch from source didn't change things at all. -
@stevas
megadrive_hacks
is a rom folder that comes with a famous third party image. are you telling us porkies? -
Haha, entirely coincidental I assure you!
I've edited es_systems.cfg to include that (apologies, something else I did was copy across that file from the previous build in order to test that particular game, as I wanted to use a game I KNEW was previously causing this issue).
Edit: though that's an interesting point. I'll investigate what happens if I reset that file...
I should add, I did just try Aladdin (which is in the original megadrive folder) and got the same issue. Though that's with my edited es_systems, which may well be a/the problem here (as I can think of nothing else presently). -
Did you modify the default
retroarch.cfg
configuration file or used the RetroArch menu in RetroPie to change the global options ? -
I changed a couple, yeah. From memory, integer scaling off, and some qol stuff like swap A/B.
I literally just reimaged. Plan was to do as little as possible, get Aladdin on there.
Annnnnnd... now I'm getting even weirder stuff happening. Like, either it won't list SSID's, or it will eventually list them (and they appear to double up), and if I select mine it takes an age to connect before just... not.
Maybe I'll run a check on this SD card. -
Update:
I've re-imaged (again again), and it's working here now. That is: it switches resolution, and I get a full verbose log.
Thanks both for the help - it at least convinced me I needed to start again and do literally the bare minimum to get it working.
Lord knows what I did to break it; as I didn't get too far through the setup process I'll go step by step now to figure that bit out (of course, we all know it'll continue to work fine, and I'll never see that behaviour again...) -
I'm back. It's late. But I just want to get this posted... Mainly so I bloody remember it, tbh.
Should I just plain NOT be creating a full retroarch.cfg with the option to in Retropie (i.e. selecting RETROARCH in the emulation station Retropie menu, then saving a full new configuration)?
Now is the point for someone to step up and say "yeah... You just shouldn't be doing that anyways, dude."Because if I go in there, and save my config, I get this issue.
As long as I was using the skeleton retroarch.cfg file (the one that's mainly comments), I was fine. Switched resolution no problems.
Soon as saved over that (in the way described above), boom, doesn't switch. Again, it's only when a game override cfg is present, and the log is truncated as before (at the exact point it tries to append said override, I might add).
At the moment I have an override for Aladdin which is just loading and saving a state. That's it. I also have a shader preset for that core. (Because why not.)I can switch the problem off and on literally by either using the backup skeleton retroarch.cfg I have, or saving a configuration over that through the retroarch menu!
Bed now.
-
@stevas said in Videomode file ignored if game override cfg file exists?:
Now is the point for someone to step up and say "yeah... You just shouldn't be doing that anyways, dude."
Well, yes. We usually recommend to save an override (core/game/content dir) instead of saving the full config back. The RA configuration has grown to such a dimension it's getting difficult to pinpoint how seemingly unrelated options affect the overall program's behavior; it's easier to keep the base configuration small and simple to get a good starting configuration and manage game/core settings through overrides.
The preferred (but not the easiest) method would be to add the configuration option to that file by editing, so only the bare essential configuration options are added. Or use the Configuration Editor to edit the most important options (shaders, resolution, video smoothing, etc.).
That being said, can you post the offending
.cfg
so we can take a look at it ? It's worth a shot to see if we can accommodate the video mode switching with this kind of configurations.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.