Thanks buttersoft, I almost forgot the sync polarity hack. Iirc I used to apply it to both hsync and vsync.
E.g., for arcade_15, change this:
crt_range0 15625-16200, 49.50-65.00, 2.000, 4.700, 8.000, 0.064, 0.192, 1.024, 0, 0, 192, 288, 448, 576
by this:
crt_range0 15625-16200, 49.50-65.00, 2.000, 4.700, 8.000, 0.064, 0.192, 1.024, 1, 1, 192, 288, 448, 576
No idea if this still works.