antonioginer / switchres

Modeline generation engine for emulation
44 stars 12 forks source link

Hsize/hoffset/voffset don't work #100

Open MisterXYZ83 opened 4 months ago

MisterXYZ83 commented 4 months ago

Hello @antonioginer thanks for your work! i want to use it on my Ubuntu arcade machine. I'm trying to calibrate the modeline in order to have a correct size on CRT; i'm using the python script and grid tool. Unfortunately, changing hsize and h/v offsets seems to have any effect :'(

I have a Radeon HD 6450; it works fine with the modeline generated for 320x240@60, my CRT is in synch.

I don't know If there is something i'm doing wrong with that tools. Next days i can check if the vga signal is really changing with my oscilloscope on synch signals.

Thanks

substring commented 4 months ago

Hi,

Are you running this on X, Wayland, or KMS ? X should work, not Wayland. For KMS you'd need a patched kernel

MisterXYZ83 commented 4 months ago

@substring thanks for your help!

i'm running a Xubuntu on my pc, it runs with X11 session and i'm pretty sure KMS is disabled; i've checked the radeon module parameter "modeset".... but i'm not sure if it is the definitive way to check that.

substring commented 4 months ago

You can't use KMS when running X. KMS is on a tty only with nothing running elsewhere (no X, no wayland)

MisterXYZ83 commented 4 months ago

ok sorry for my ignorance :) so the script should work if i launch it from a terminal in my X11 session?

substring commented 4 months ago

I think so, always used it on a try though

MisterXYZ83 commented 4 months ago

i will give a try tomorrow probing sync signal with my oscilloscope to see if there are any variations...but i'm pretty sure the image wasn't changing 😞 i will use different modeline (one of a real arcade game) instead of basic 320x240@60 and see if something change. i will keep you updated

MisterXYZ83 commented 4 months ago

Hello, i've tried using switchres with a manual resolution (like 310x210@60) and works fine. Changing the number of lines the grid (210 for my crt) the grid falls vertically in the monitor with any overscan, but the horizontal size never change, no shrink or enlarge.

The python script changes only the geometry paramters (vshift/hshift and hsize) but that have not effect in my case :(