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

Tweak geometry not working #49

Open
retrorepair opened this issue Jul 14, 2024 · 70 comments
Open

Tweak geometry not working #49

retrorepair opened this issue Jul 14, 2024 · 70 comments

Comments

@retrorepair
Copy link

I've got an issue where I can't get into the tweak geometry settings to shift the image to the left. Every time I select it, no matter the video backend, I get a black screen and no way to exit so have to reset the machine.

Is this maybe related to the issue from a while ago with exclusive video mode causing a black screen? Although I'm fully up to date and not got this issue with anything else, just the tweak geometry setting.

@substring
Copy link
Owner

Does this blackscreen problem only happen with the grid ?

@retrorepair
Copy link
Author

retrorepair commented Jul 14, 2024

Just as soon as I hit the tweak geometry option in gasetup. It doesn't happen with anything else.

I've set a custom arcade_15 preset and reduced the HBP to 6.000 and HFP to 4.000 and games look good, but menus of course are all way over to the right.

@substring
Copy link
Owner

can you just exit gasetup, go to the terminal and type grid a,d tell me what is the output ? Simply press ESC to exit

@retrorepair
Copy link
Author

17209542920957076583414826318501
That's all I get, it just hangs

@retrorepair
Copy link
Author

You can see there I tried to hit escape lol

@substring
Copy link
Owner

Have you fully updated ? If yes, please make a support archive and send me the link, thanks

@retrorepair
Copy link
Author

It was up to date a couple of months ago, I'll try to update now though.

I did also notice MAME does the same thing if I have KMS enabled. Works fine using Xorg (even if it's a little epilepsy enducing).

Grid does the same thing with xorg or kms though

@substring
Copy link
Owner

You should restore your initial crt_range

@retrorepair
Copy link
Author

retrorepair commented Jul 14, 2024

Ok, did a full OS update and now nothing runs under KMS. Grid, mame or RA.

Trouble is, after updating I now only get MAME working under xorg, everything else crashes on boot so looks like the update has borked something :(

It's weird because on the first reboot after the update, geometry tweak worked, having rebooted now, i can load attractplus, run MAME roms and anything else just crashes returns me to attractplus (usually without changing resolution back).

Here's the log EDIT, LINK FIXED:

Https://file.io/DQmkOW2VrEkq

Wish I didn't mess with anything now :(

@retrorepair
Copy link
Author

You should restore your initial crt_range

I tried :(

@substring
Copy link
Owner

generic_15 preset ?

@retrorepair
Copy link
Author

Yep

@substring
Copy link
Owner

Could also try to rollback SDL2 to see if it's that one messing

@retrorepair
Copy link
Author

I'm sure you've told me before how to do that but I don't use linux much, how would I do that?

@retrorepair
Copy link
Author

Ok, downgraded sdl2 using pacman -U and still the same.

It did ask when updating if I wanted to replace python something with a python like extras/python something, I said yes, maybe I shouldn't have

@substring
Copy link
Owner

does the grid binary work with SDL2 rolled back ?

@retrorepair
Copy link
Author

I've not tried it feom the shell yet, it didn't work within GA setup though. Will try in a bit.

I feel like after the update all was fine until I changed to KMS. Changing back to Xorg didn't help though

@retrorepair
Copy link
Author

retrorepair commented Jul 14, 2024

Tried the grid executable, still hangs

@substring
Copy link
Owner

ok go sudo pacman -S strace then strace grid and give me the output

@retrorepair
Copy link
Author

log.txt

Ok, this is the output

@substring
Copy link
Owner

Please try rm -rf /home/arcade/.cache/mesa_shader_cache then grid again

@retrorepair
Copy link
Author

Just tried that, no change :(

@retrorepair
Copy link
Author

Just wondered if you've tried a full os update lately @substring? If it's just me I can possibly work out what's broken

@substring
Copy link
Owner

of course I did and tried the geometry tool, and I had no problem.

But I don't see the SDL2 package installed on your system, how come ?

@retrorepair
Copy link
Author

No idea, it definitely is. I even made sure to downgrade as suggested and there were no errors

@substring
Copy link
Owner

Does GM work ? Retroarch ?

@retrorepair
Copy link
Author

GM works under Xorg, not KMS. RA doesn't work at all

@retrorepair
Copy link
Author

Before the update, GM worked under Xorg not KMS and RA worked under either

@substring
Copy link
Owner

Try rolling back mesa and eventually llvm-libs

@retrorepair
Copy link
Author

I'll give those a go, I think I need to take a look at what else is installed though as if you don't have issues then I don't know why I am. I've got Wine installed but not much else

@retrorepair
Copy link
Author

Just to test, I removed my backup shared folder and ran the new install with all the defaults, it's no different. I'm convinced one of the new updates isn't compatible with something in my hardware.

Just to recap, RA isn't working at all, neither is grid, mame only works under xorg.

@retrorepair
Copy link
Author

One last note, I reverted back to the installer from last year just to double check and yeah, KMS works fine with GM. I can't test RA since it won't update due to keyring being out of date but even if I fix that and update, I'll be back to where I started.

It's got to be an update that's broken something but the logs aren't really telling me anything and given the volume of stuff that's been updated this year, I wouldn't know where to begin. I also don't understand why it only seems to be me with this issue?

PC specs are:

Gigabyte GA-Z97P-D3 mobo
I7 4790k CPU
Radeon HD 6570 (with Atom15 BIOS)
8gb DDR3
PCIe NVME
SATA HDD

I don't think there's anything unusual there 🤷‍♂️

@retrorepair
Copy link
Author

Threw in a HD 7870 I had spare, reinstalled everything again, same results

@substring
Copy link
Owner

Does the same hapen witn the 2023.10 iso as livecd ? Same with 2024.07 as livcd ? By livecd I mean : test without installing.

Next : please enable de ug mode in the troubleshooting menu, start emulators that fail, then make a new archive.

The problem is that there are some specific errors I can't catch through logging since they are spit by the kernel. It's very important that you don't produce the logs from a cold boot, but after all the crashes.

That doesn't help me with whatswrong with the frig sadly, I'm clueless. When I face such cases, I have to compile apps in debug mode and go in the debugger to understand what went wrong. But can't do that here ...

@retrorepair
Copy link
Author

Ok, if the livecd is KMS (looks like it) then yes it works. 2024 and 2023 so assume it's an issue after installation, as soon as I try to launch robbie roto on the first boot it just hangs.

I also don't get any sound but changing default card to the correct one fixes that. Weird as it's never been an issue before. Livecd knows which one to use as well.

So really not sure why that could be 🤷‍♂️

@retrorepair
Copy link
Author

I can't generate a log by the way in regards to GA, since if I replicate the error, only rebooting gets out of it.

The lastest log above was with debug on and was captured after RA had failed a few times. Running RA from termi al by the way, the only error it gives is "buffer overrun detected" which isn't much help either

@retrorepair
Copy link
Author

Can I ask what hardware your test rig is using? Just in case I have something similar I can use to try and eliminate components?

@substring
Copy link
Owner

Weird, the buffer overflow should appear in the kernel log

So, just to be sure : livecds work, but using the hd install (not network install), it hangs ? I have to rule out all possible scenarios since I can't reproduce this on my end

@retrorepair
Copy link
Author

That is weird. I'll try to do another log.

So yes, livecds work (obviously can only test GM), hd install hangs as soon as I load a game before doing anything else. Full os update makes no difference.

@retrorepair
Copy link
Author

Ok, here's another debug level log after a few failed RA launches:

https://file.io/SPeRHxKj09Ss

@substring
Copy link
Owner

Once installed, can you still ssh to your GA box when it hangs ? If yes, then kill GM with killall -9 groovymame.

What happens when you manually start GM with -v ? Can you monitor the kernel output with sudo dmesg -HTk through ssh just before starting GM ?

@retrorepair
Copy link
Author

Ok yes, killall works, here's a specific debug GM log:

Https://file.io/eingXgUWUJPI

@retrorepair
Copy link
Author

Running sudo dmesg -HTk doesn't seem to do much whether GM is running or not

@retrorepair
Copy link
Author

Just tried to run GM with '-v' in terminal under lxde to see what the errors were and it worked fine. RA still doesn't work there though. Baffling

@substring
Copy link
Owner

X is not the problem here. Does the grid work too on X ?

The; nly clue I have is SDL2, but a roolback would have worked, and the 2024.07 livecd wouldn't have worked

Try launching GM on KMS through ssh after having exited AM

@retrorepair
Copy link
Author

So desktop runs on X? That would make sense then. I'll test grid.

I wonder if I rolled back SDL2 far enough. All the archives I had are gone now Ive reinstalled though, I'm guessing you can't roll back to a specific release without a git clone?

@retrorepair
Copy link
Author

retrorepair commented Jul 21, 2024

Ok, grid does work under x.

If I drop out of AM and run GM via SSH after setting KMS and rebooting, it fails.

I apologise for the size, but here's GM's verbose output:

[arcade@GroovyArcade ~]$ groovymame -v gdarius
Attempting load of mame.ini
Parsing mame.ini
Attempting load of mame.ini
Attempting load of horizont.ini
Attempting load of raster.ini
Attempting load of source/zn.ini
Attempting load of coh1000t.ini
Attempting load of gdarius2.ini
Attempting load of gdarius.ini
Starting plugin hiscore...
Starting plugin layout...
Starting plugin data...
Attempting load of mame.ini
Parsing mame.ini
Attempting load of mame.ini
Attempting load of horizont.ini
Attempting load of raster.ini
Attempting load of source/zn.ini
Attempting load of coh1000t.ini
Attempting load of gdarius2.ini
Attempting load of gdarius.ini
Available videodrivers: x11 wayland KMSDRM offscreen dummy evdev
Current Videodriver: offscreen
        Display #0
                Desktop Mode:         1024x768-24@0
                Current Display Mode: 1024x768-24@0
                Renderdrivers:
                            opengl (0x0)
                         opengles2 (0x0)
                          software (0x0)
Available audio drivers:
        pulseaudio
        alsa
        jack
        pipewire
        dsp
        disk
        dummy
Build version:      0.267 (mame0267-63-g5916f06e615-dirty)
Build architecure:
Build defines 1:    SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1
Build defines 1:    LSB_FIRST=1 PTR64=1
SDL/OpenGL defines: SDL_COMPILEDVERSION=5005 USE_OPENGL=1
Compiler defines A: __GNUC__=14 __GNUC_MINOR__=1 __GNUC_PATCHLEVEL__=1 __VERSION__="14.1.1 20240522"
Compiler defines B: __amd64__=1 __x86_64__=1 __unix__=1
Compiler defines C: __USE_FORTIFY_LEVEL=0
Enter init_monitors
Adding monitor screen0 (1024 x 768)
Leave init_monitors
Using SDL multi-window OpenGL driver (SDL 2.0+)
Enter sdlwindow_init

Hints:
        SDL_FRAMEBUFFER_ACCELERATION             (NULL)
        SDL_RENDER_DRIVER                        (NULL)
        SDL_RENDER_OPENGL_SHADERS                (NULL)
        SDL_RENDER_SCALE_QUALITY                 (NULL)
        SDL_RENDER_VSYNC                         (NULL)
        SDL_VIDEO_X11_XVIDMODE                   (NULL)
        SDL_VIDEO_X11_XINERAMA                   (NULL)
        SDL_VIDEO_X11_XRANDR                     (NULL)
        SDL_GRAB_KEYBOARD                        (NULL)
        SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS         (NULL)
        SDL_IOS_IDLE_TIMER_DISABLED              (NULL)
        SDL_IOS_ORIENTATIONS                     (NULL)
        SDL_XINPUT_ENABLED                       (NULL)
        SDL_GAMECONTROLLERCONFIG                 (NULL)
        SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS     (NULL)
        SDL_ALLOW_TOPMOST                        (NULL)
        SDL_TIMER_RESOLUTION                     (NULL)
        SDL_RENDER_DIRECT3D_THREADSAFE           (NULL)
        SDL_VIDEO_ALLOW_SCREENSAVER              (NULL)
        SDL_ACCELEROMETER_AS_JOYSTICK            (NULL)
        SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK   (NULL)
        SDL_VIDEO_WIN_D3DCOMPILER                (NULL)
        SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT      (NULL)
        SDL_VIDEO_MAC_FULLSCREEN_SPACES          (NULL)
        SDL_MOUSE_RELATIVE_MODE_WARP             (NULL)
        SDL_RENDER_DIRECT3D11_DEBUG              (NULL)
        SDL_VIDEO_HIGHDPI_DISABLED               (NULL)
        SDL_WINRT_PRIVACY_POLICY_URL             (NULL)
        SDL_WINRT_PRIVACY_POLICY_LABEL           (NULL)
        SDL_WINRT_HANDLE_BACK_BUTTON             (NULL)
Leave sdlwindow_init
Enter sdl_info::create
Switchres: Monitor range 15625.00-15750.00,49.50-65.00,2.000,4.700,8.000,0.064,0.192,1.024,0,0,192,288,448,576
parsing /etc/switchres.ini
Switchres: Monitor range 15625.00-15750.00,49.50-65.00,2.000,4.700,8.000,0.064,0.192,1.024,0,0,192,288,448,576
Switchres/SDL2: (sdl2_display): SDL2 video is initialized
Switchres/SDL2: (sdl2_display): SDL2 is only available for KMSDRM for now.
Switchres(v2.2.1) add display[0]
Switchres: display[0] options: monitor[generic_15] generation[on]
Switchres: Monitor range 15625.00-15750.00,49.50-65.00,2.000,4.700,8.000,0.064,0.192,1.024,0,0,192,288,448,576
XRANDR: <1> (xrandr_timing) creation (screen0)
XRANDR: <1> (xrandr_timing) checking X availability (early stub)
XRANDR: <1> (xrandr_timing) X server not found
DRM/KMS: <1> (drmkms_timing) creation (screen0)
DRM/KMS: <1> (init) loading DRM/KMS library
DRM/KMS: <1> (init) version 2.50.0 type radeon
DRM/KMS: <1> (init) card 0 connector 0 id 54 name DisplayPort-1 status 2 - modes 0
DRM/KMS: <1> (init) card 0 connector 1 id 56 name DisplayPort-2 status 2 - modes 0
DRM/KMS: <1> (init) card 0 connector 2 id 58 name DVI-I-1 status 1 - modes 1
DRM/KMS: <1> (init) card 0 connector 2 id 58 name DVI-I-1 selected as primary output
DRM/KMS: <1> (init) desktop mode name 640x480i crtc 42 fb 60 valid 1
DRM/KMS: <1> (init) Already DRM master
DRM/KMS: <1> (test_kernel_user_modes) Kernel supports user modes (1 vs 2)
DRM/KMS: <1> (get_timing) desktop mode name 640x480i refresh 60 found
Switchres: [  1]  640x 480 @ 60i* : DRMKMS timing "640x480_60i 15.689000KHz 59.996176Hz" 13.038000 640 666 727 831 480 483 489 523 interlace  -hsync -vsync
Switchres: [  2] 1234x 234 @ 60p : DRMKMS timing "1234x234_60 15.659000KHz 59.996169Hz" 25.212000 1234 1290 1408 1610 234 238 241 261   -hsync -vsync
Switchres: get_mode(0) 640 480 60.000000 1.333333
Switchres: Calculating best video mode for 640x480@60.000000 orientation: normal

Switchres: [ 640]x[ 480]_[60=59.996176Hz]
   rng(0):  640 x 480_59.996176i 15.689000 [integ] scale(1.000, 1.000, 1.000) diff(0.000, 0.000, -0.004)

Switchres: [1234]x[ 234]_[60=59.996169Hz]
   rng(0): 1234 x 234_59.996169p 15.659000 [fract] scale(1.928, 0.487, 1.000) diff(48.136, 0.000, -0.004)

Switchres: (   0)x(   0)_(0=0.000000Hz)
   rng(0):  640 x 480_60.000000i 15.690000 [integ] scale(1.000, 1.000, 1.000) diff(0.000, 0.000, 0.000)

Switchres: normal (640x480@60.000000)->(640x480@60.000000)
   rng(0):  640 x 480_60.000000i 15.690000 [integ] scale(1.000, 1.000, 1.000) diff(0.000, 0.000, 0.000)
Switchres: Modeline "640x480_60i 15.690000KHz 60.000000Hz" 13.038390 640 666 727 831 480 483 489 523 interlace  -hsync -vsync
DRM/KMS: <1> (add_mode) [DEBUG] Adding a mode to the kernel: 640x480 SR-1_640x480@60.00i
DRM/KMS: <1> (add_mode) Mode added
Switchres: added DRMKMS timing "640x480_60i 15.690000KHz 60.000000Hz" 13.038390 640 666 727 831 480 483 489 523 interlace  -hsync -vsync
DRM/KMS: <1> (kms_has_mode) Found the mode in the connector
DRM/KMS: <1> (set_timing) <debug> existing frame buffer id 60 size 640x480 bpp 32
DRM/KMS: <1> (set_timing) <debug> creating new frame buffer with size 640x480DRM/KMS: <1> (set_timing) <debug> frame buffer id 61 size 640x480 bpp 32
SwitchRes: Setting option -nokeepaspect
SwitchRes: Setting option -nounevenstretch
SwitchRes: Setting option -nounevenstretchx
SwitchRes: Setting option -waitvsync
SwitchRes: Setting option -syncrefresh
SwitchRes: Setting option -filter
drm_open: /dev/dri/card0 successfully opened
OpenGL: Mesa
OpenGL: AMD TURKS (DRM 2.50.0 / 6.9.9-arch1-1-15khz, LLVM 18.1.8)
OpenGL: 4.5 (Compatibility Profile) Mesa 24.1.4-arch1.2
OpenGL: texture rectangle supported
OpenGL: non-power-of-2 textures supported (new method)
OpenGL: vertex buffer supported
OpenGL: pixel buffers supported
OpenGL: framebuffer object supported
OpenGL: GLSL supported, but disabled
OpenGL: max texture size 16384 x 16384
Leave renderer_ogl::create
Audio: Start initialization
Audio: Driver is alsa
Audio: frequency: 48000, channels: 2, samples: 1024
sdl_create_buffers: creating stream buffer of 25600 bytes
Audio: End initialization
Keyboard: Start initialization
Input: Adding keyboard #1: System keyboard (device id: System keyboard)
Keyboard: Registered System keyboard
Keyboard: End initialization
Mouse: Start initialization
Input: Adding mouse #1: System mouse (device id: System mouse)
Mouse: Registered System mouse
Mouse: End initialization
Lightgun: Start initialization
Input: Adding lightgun #1: System pointer gun 1 (device id: System pointer gun 1)
Lightgun: Registered System pointer gun 1
Lightgun: End initialization
Game Controller: Start initialization
Game Controller: End initialization
Searching font uismall.bdf in -/usr/lib/mame/fonts;/home/arcade/.mame/fonts;/usr/share/fonts/TTF/ path/s
font uismall.bdf is not TrueType or BDF, using MAME default
OpenGL: VBO supported
OpenGL: PBO supported
OpenGL: FBO supported
OpenGL: using vid filter: 1
unzip: opened archive file /home/arcade/shared/roms/mame/gdarius.zip
unzip: found /home/arcade/shared/roms/mame/gdarius.zip ECD at 980
unzip: /home/arcade/shared/roms/mame/gdarius.zip has no ZIP64 ECD locator
unzip: read /home/arcade/shared/roms/mame/gdarius.zip central directory
unzip: closing archive file /home/arcade/shared/roms/mame/gdarius.zip and sending to cache
unzip: found /home/arcade/shared/roms/mame/gdarius.zip in cache
unzip: opened archive file /home/arcade/shared/roms/mame/gdarius.zip
unzip: closing archive file /home/arcade/shared/roms/mame/gdarius.zip and sending to cache
unzip: found /home/arcade/shared/roms/mame/gdarius.zip in cache
unzip: closing archive file /home/arcade/shared/roms/mame/gdarius.zip and sending to cache
unzip: opened archive file /home/arcade/shared/roms/mame/gdarius2.zip
unzip: found /home/arcade/shared/roms/mame/gdarius2.zip ECD at 980
unzip: /home/arcade/shared/roms/mame/gdarius2.zip has no ZIP64 ECD locator
unzip: read /home/arcade/shared/roms/mame/gdarius2.zip central directory
unzip: closing archive file /home/arcade/shared/roms/mame/gdarius2.zip and sending to cache
unzip: opened archive file /home/arcade/shared/roms/mame/coh1000t.zip
unzip: found /home/arcade/shared/roms/mame/coh1000t.zip ECD at 980
unzip: /home/arcade/shared/roms/mame/coh1000t.zip has no ZIP64 ECD locator
unzip: read /home/arcade/shared/roms/mame/coh1000t.zip central directory
unzip: closing archive file /home/arcade/shared/roms/mame/coh1000t.zip and sending to cache
unzip: found /home/arcade/shared/roms/mame/gdarius.zip in cache
unzip: opened archive file /home/arcade/shared/roms/mame/gdarius.zip
unzip: closing archive file /home/arcade/shared/roms/mame/gdarius.zip and sending to cache
unzip: found /home/arcade/shared/roms/mame/gdarius.zip in cache
unzip: opened archive file /home/arcade/shared/roms/mame/gdarius.zip
unzip: closing archive file /home/arcade/shared/roms/mame/gdarius.zip and sending to cache
unzip: found /home/arcade/shared/roms/mame/gdarius.zip in cache
unzip: opened archive file /home/arcade/shared/roms/mame/gdarius.zip
unzip: closing archive file /home/arcade/shared/roms/mame/gdarius.zip and sending to cache
unzip: found /home/arcade/shared/roms/mame/gdarius.zip in cache
unzip: opened archive file /home/arcade/shared/roms/mame/gdarius.zip
unzip: closing archive file /home/arcade/shared/roms/mame/gdarius.zip and sending to cache
unzip: found /home/arcade/shared/roms/mame/gdarius.zip in cache
unzip: opened archive file /home/arcade/shared/roms/mame/gdarius.zip
unzip: closing archive file /home/arcade/shared/roms/mame/gdarius.zip and sending to cache
unzip: found /home/arcade/shared/roms/mame/gdarius.zip in cache
unzip: opened archive file /home/arcade/shared/roms/mame/gdarius.zip
unzip: closing archive file /home/arcade/shared/roms/mame/gdarius.zip and sending to cache
unzip: found /home/arcade/shared/roms/mame/gdarius.zip in cache
unzip: opened archive file /home/arcade/shared/roms/mame/gdarius.zip
unzip: closing archive file /home/arcade/shared/roms/mame/gdarius.zip and sending to cache
unzip: found /home/arcade/shared/roms/mame/gdarius.zip in cache
unzip: opened archive file /home/arcade/shared/roms/mame/gdarius.zip
unzip: closing archive file /home/arcade/shared/roms/mame/gdarius.zip and sending to cache
78081g503.ic655 NOT FOUND (NO GOOD DUMP KNOWN) (tried in gdarius gdarius2 coh1000t)
WARNING: the machine might not run correctly.
Optional memory region ':screen' not found
Optional memory region ':at28c16' not found
Optional memory region ':fm1208s' not found
Starting G-Darius (Ver 2.02O) ':'
  (missing dependencies; rescheduling)
Starting Sony CXD8530CQ ':maincpu'
Starting Sony PSX IRQ ':maincpu:irq'
Starting Sony PSX DMA ':maincpu:dma'
Starting Sony PSX MDEC ':maincpu:mdec'
Starting Sony PSX RCNT ':maincpu:rcnt'
Starting Sony PSX SIO-0 ':maincpu:sio0'
Starting Sony PSX SIO-1 ':maincpu:sio1'
Starting RAM ':maincpu:ram'
Starting CAT702 ':cat702_1'
Starting Sony ZN MCU ':znmcu'
Starting CXD8561Q GPU ':gpu'
Starting Video Screen ':screen'
Starting Speaker ':lspeaker'
  (missing dependencies; rescheduling)
Starting Speaker ':rspeaker'
  (missing dependencies; rescheduling)
Starting PlayStation SPU ':spu'
Starting AT28C16 2Kx8 EEPROM ':at28c16'
Starting CAT702 ':cat702_2'
Starting NVRAM ':fm1208s'
Starting MB3773 Power Supply Monitor ':mb3773'
Starting Taito Zoom Sound System ':taito_zoom'
  (missing dependencies; rescheduling)
Starting Panasonic MN1020012A ':taito_zoom:mn10200'
Starting Texas Instruments TMS57002 "DASP" ':taito_zoom:tms57002'
  (missing dependencies; rescheduling)
Starting ZOOM ZSG-2 ':taito_zoom:zsg2'
Starting G-Darius (Ver 2.02O) ':'
  (missing dependencies; rescheduling)
Starting Speaker ':lspeaker'
  (missing dependencies; rescheduling)
Starting Speaker ':rspeaker'
  (missing dependencies; rescheduling)
Starting Taito Zoom Sound System ':taito_zoom'
  (missing dependencies; rescheduling)
Starting Texas Instruments TMS57002 "DASP" ':taito_zoom:tms57002'
Starting G-Darius (Ver 2.02O) ':'
  (missing dependencies; rescheduling)
Starting Speaker ':lspeaker'
  (missing dependencies; rescheduling)
Starting Speaker ':rspeaker'
  (missing dependencies; rescheduling)
Starting Taito Zoom Sound System ':taito_zoom'
Starting G-Darius (Ver 2.02O) ':'
  (missing dependencies; rescheduling)
Starting Speaker ':lspeaker'
Starting Speaker ':rspeaker'
Starting G-Darius (Ver 2.02O) ':'
Attempting to parse: default.cfg
Attempting to parse: gdarius.cfg

@substring
Copy link
Owner

No you can't rebuild SDL2 yourself since it has to be patched for modeswitching. Their 2.30.5 introduced a massive regression on KMS (nothing would work), I had to patch it to solve it and submitted that upstream. But while keeping the new feature they added, I added a fallback to another KMS initialisation function which is not the same as before. So it could be the culprit. That would surprise me since the function I use has been added like 9 years ago, or even more, it should be a problem at all

@retrorepair
Copy link
Author

This bit strikes me as a bit weird:

Available videodrivers: x11 wayland KMSDRM offscreen dummy evdev
Current Videodriver: offscreen
Display #0
Desktop Mode: 1024x768-24@0
Current Display Mode: 1024x768-24@0
Renderdrivers:
opengl (0x0)
opengles2 (0x0)
software (0x0)

@substring
Copy link
Owner

If you read my previous comment, I think we've nailed it down to SDL2. So I'll drop a previous version + a new version with complete fallback over various initialization routines

@substring
Copy link
Owner

@retrorepair
Copy link
Author

Ok, downloaded that with wget and installed with pacman with no errors, same result though. I'd not updated since maybe January? Maybe SDL2 needs to be rolled back further

@retrorepair
Copy link
Author

Just saw that was from 2022 so maybe SDL2 isn't the issue

@substring
Copy link
Owner

There is also https://github.com/substring/packages/releases/download/archive/sdl2-2.0.22-3-x86_64.pkg.tar.zst but I don't even remember if it works with KMS.

It's SDL2, Mesa or the kernel. Unless there is a lib interfering in the middle

@retrorepair
Copy link
Author

I'll try it. I think we already tried mesa and the LTS kernal, I'm guessing dropping back to a previous kernal essentially requires a full OS downgrade though? I'm probably wrong :)

No idea what libs could be interfering, knowing linux it could be anything

@retrorepair
Copy link
Author

Yeah don't think that version supports KMS as it immediately dropped back to x.

@substring
Copy link
Owner

grid.zip
Can y give me the output of that version of grid that has SDL log enabled ?

@retrorepair
Copy link
Author

Is there a switch for log? It does run but gives me no log

@substring
Copy link
Owner

no switch, remember to launch with ./grid. Here are the few last lines when starting it on KMS:

[Log 5 2] /dev/dri/card0 connector, encoder and CRTC counts are: 8 8 8
[Log 5 2] Failed to open KMSDRM device /dev/dri/card0, errno: 22
[Log 5 2] /dev/dri/card0 connector, encoder and CRTC counts are: 8 8 8
[Log 5 2] Failed to open KMSDRM device /dev/dri/card0, errno: 22
[Log 5 2] KMSDRM_VideoInit()
[Log 5 2] Opening device /dev/dri/card0
[Log 5 2] Opened DRM FD (5)
[Log 1 2] Failed loading udev_device_get_action: /usr/lib/libSDL2-2.0.so.0: undefined symbol: _udev_device_get_action
[Log 1 2] Unknown pixel format
[Log 6 3] OpenGL shaders: ENABLED
[Log 6 3] Created renderer: opengl
[Log 5 2] New DRM FB (108): 1280x800, from BO 0x621bb1652370
[Log 5 2] New DRM FB (109): 1280x800, from BO 0x621bb16e35f0

@substring
Copy link
Owner

Please also give me the output of groups as your arcade user

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