1 (edited by olifre 03-09-2025 01:04:40)

Topic: Display refresh rate is not updated when switched on Linux / Wayland

Hi together,

I observe the following problem (may be a configuration problem on my end?):
- Using SVP 4 Linux
- ArchLinux with KDE/Plasma (Wayland) Session, mpv with gpu-next
- SVP is configured to adapt the framerate to the display refresh rate, SVP manager started automatically on login


All works fine, i.e. target FPS is matched to actual display refresh rate.
However, when I switch the display refresh rate within the session (e.g. via `kscreen-doctor` or via `systemsettings` of KDE/Plasma), SVP still uses the old refresh rate as target FPS, even if mpv is restarted afterwards.
The new display refresh rate seems only to be picked up if I quit and restart SVP manager.

Is this expected? Is there any way to make SVP re-check the display refresh rate without restarting SVP manager?

In the end, what I'd like to use is an MPV plugin to switch screen refresh rate automatically (i.e. use 50 Hz for 25 fps content and 48 Hz for 24 fps (23,97 fps) content), but of course that only works if SVP also picks up the changed refresh rate.

Any ideas appreciated, many thanks in advance!

Re: Display refresh rate is not updated when switched on Linux / Wayland

When you change the refresh rate via KDE/Plasma settings, the change will update the editor, but it will not automatically signal all running applications to recheck the setting. The default behavior of SVP will probably be to leave it at the original value until it is manually restarted. I think you should create a mechanism that both triggers the display change and notifies SVP.

Re: Display refresh rate is not updated when switched on Linux / Wayland

Thanks, yes, it seems SVP does sadly not re-check at runtime on Linux (it seems to do that on Windows), so I would need a way to notify it.

Is there some dbus interface or any API of SVP I could notify to make it re-check the refresh rate? Or is the only way to kill SVP manager and restart it?