Multidisplay setting on Ubuntu

I asked about setting the refresh rate, several months ago.

By using Screen(‘ConfigureDisplay’, ‘Scanout’,…), I was able to change the refresh rate of the stimulus presenting display, set by XOrgConfCreator.

A few weeks ago, I have noticed that the following error message after running

oldSettings = Screen(‘ConfigureDisplay’, ‘Scanout’, 1, 0, , , 144);

One or more output arguments not assigned during call to “Screen”.

Without the output new setting was reflected (by running Screen('ConfigureDisplay', 'Scanout', 1, 0, [], [], 144);, two times).

However, since a few days ago, the refreshrate of the LCD monitor cannot be changed at all in this way.
In fact, after running GaborDemo, the monitor refreshrate was changed from 144 Hz to 60 Hz, and when I tried to reset it to 144 Hz, it stayed at 60 Hz.
I tried to reset the refresh rate from XOrgConfCreator to no avail.
I tried to remove PTB3 (sudo apt purge matlab-psychtoolbox-3) and reinstalled it again, but I don’t think the situation has changed.

Does anyone know how to solve it?

Ubuntu 20.04.4LTS
MATLAB 2022a
PTB 3.0.18 13 Oct

Now I found

%oldsetting = Screen(‘Resolution’, screenNumber [, newwidth] [, newheight] [, newHz]);
oldsetting = Screen(‘Resolution’, 1, 1920, 1080, 144);

could return the current setting and also set the new frame rate of the stimulus displaying display (screenNumber:1)