I perform my work on a rented cloud server via remote desktop. Among other things, this gives me the luxury of switching between different GPUs according to my current needs. Very useful, but there is one drawback: each time after swapping GPUs, the system becomes non-functional and shows a black screen in place of remote desktop until the new GPU is initialized manually.
Previously, on X11, I did this by simply running sudo nvidia-xconfig and then rebooting. Unfortunately, with the transition to Wayland, this command is obviously no longer relevant. The only workaround I know is to go back to X11 to use nvidia-xconfig as before, and then return to Wayland to continue my work.
So my question is: is there a more proper way to initialize new GPU on Wayland now?