Bug report for fedora 37 (with wayland, RTX 2060 Rev. 1): x11 works but wayland only provides 1024x768 resolution

This is a bug report for Fedora 37 against nvidia driver 530.30.02 (for CUDA 12.1).

I have run nvidia-bug-report.sh on plasma X11:
nvidia-bug-report.log.gz (366.3 KB)

x11 works but wayland only provides 1024x768 resolution.

$ nvidia-smi 
Mon Apr 10 16:32:47 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.30.02              Driver Version: 530.30.02    CUDA Version: 12.1     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                  Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf            Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 2060         Off| 00000000:01:00.0 Off |                  N/A |
| 30%   33C    P8               11W / 160W|    923MiB /  6144MiB |      1%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A     10542      G   /usr/libexec/Xorg                           328MiB |
|    0   N/A  N/A     11074      G   /usr/bin/ksmserver                            2MiB |
|    0   N/A  N/A     11076      G   /usr/bin/kded5                                2MiB |
|    0   N/A  N/A     11077      G   /usr/bin/kwin_x11                            94MiB |
|    0   N/A  N/A     11113      G   /usr/bin/plasmashell                         19MiB |
|    0   N/A  N/A     11138      G   ...5/polkit-kde-authentication-agent-1        2MiB |
|    0   N/A  N/A     11140      G   /usr/libexec/xdg-desktop-portal-kde           2MiB |
|    0   N/A  N/A     11271      G   /usr/bin/nextcloud                           11MiB |
|    0   N/A  N/A     11329      G   /usr/bin/kaccess                              2MiB |
|    0   N/A  N/A     11337      G   /usr/libexec/DiscoverNotifier                 2MiB |
|    0   N/A  N/A     11339      G   /usr/bin/kalendarac                           2MiB |
|    0   N/A  N/A     11532      G   /usr/bin/akonadi_control                      2MiB |
|    0   N/A  N/A     11622      G   /usr/bin/kwalletd5                            2MiB |
|    0   N/A  N/A     11673      G   /usr/bin/akonadi_akonotes_resource            2MiB |
|    0   N/A  N/A     11674      G   /usr/bin/akonadi_archivemail_agent            2MiB |
|    0   N/A  N/A     11675      G   /usr/bin/akonadi_birthdays_resource           2MiB |
|    0   N/A  N/A     11676      G   /usr/bin/akonadi_contacts_resource            2MiB |
|    0   N/A  N/A     11677      G   .../bin/akonadi_followupreminder_agent        2MiB |
|    0   N/A  N/A     11678      G   /usr/bin/akonadi_ical_resource                2MiB |
|    0   N/A  N/A     11679      G   /usr/bin/akonadi_indexing_agent               2MiB |
|    0   N/A  N/A     11680      G   /usr/bin/akonadi_maildir_resource             2MiB |
|    0   N/A  N/A     11681      G   /usr/bin/akonadi_maildispatcher_agent         2MiB |
|    0   N/A  N/A     11682      G   /usr/bin/akonadi_mailfilter_agent             2MiB |
|    0   N/A  N/A     11683      G   /usr/bin/akonadi_mailmerge_agent              2MiB |
|    0   N/A  N/A     11688      G   /usr/bin/akonadi_migration_agent              2MiB |
|    0   N/A  N/A     11689      G   /usr/bin/akonadi_newmailnotifier_agent        2MiB |
|    0   N/A  N/A     11690      G   /usr/bin/akonadi_sendlater_agent              2MiB |
|    0   N/A  N/A     11691      G   /usr/bin/akonadi_unifiedmailbox_agent         2MiB |
|    0   N/A  N/A     11924      G   ...rker,SpareRendererForSitePerProcess       16MiB |
|    0   N/A  N/A     12075      G   /usr/bin/konsole                              2MiB |
|    0   N/A  N/A     12298      G   /usr/lib64/firefox/firefox                  240MiB |
|    0   N/A  N/A     12440      G   /usr/lib64/thunderbird/thunderbird          134MiB |
|    0   N/A  N/A     12803      G   ...bin/plasma-browser-integration-host        2MiB |
|    0   N/A  N/A     18589      G   dolphin                                       2MiB |
|    0   N/A  N/A     18907      G   /usr/libexec/kf5/kioslave5                    1MiB |
+---------------------------------------------------------------------------------------+

Seems to be because the kernel only knows the 1024x786 resolution:

$ cat /sys/class/drm/card0-Unknown-1/modes
1024x768

I’ve just upgraded to fedora 38. The problem is still there.