Wrong screen resolution after closing steam game

i played a steam game (djmax respect v) then locked the screen. then suddenly resolution got borked up:

$ kscreen-doctor -o
Output: 1 HDMI-A-2
        enabled
        connected
        priority 1
        HDMI
        Modes:  1:2560x1440@60!  2:3840x2160@30  3:3840x2160@25  4:3840x2160@24  5:2560x1440@75*  6:1920x1080@75  7:1920x1080@60  8:1920x1080@60  9:1920x1080@50  10:1920x1080@30  11:1680x1050@60  12:1600x900@60  13:1280x1024@75  14:1280x1024@60  15:1280x800@60  16:1152x864@60  17:1280x720@60  18:1280x720@60  19:1280x720@50  20:1024x768@75  21:1024x768@60  22:800x600@75  23:800x600@60  24:720x576@50  25:720x480@60  26:640x480@75  27:640x480@60  28:640x480@60 
        Geometry: 0,0 2560x1440
        Scale: 1
        Rotation: 1
        Overscan: 0
        Vrr: incapable
        RgbRange: unknown
        HDR: disabled
        Wide Color Gamut: disabled
        ICC profile: none
        Color profile source: sRGB
        Brightness control: supported, set to 30%
Output: 2 DP-2
        disabled
        connected
        priority 0
        DisplayPort
        Modes:  29:640x480@60*! 
        Geometry: 2560,0 640x480
        Scale: 1
        Rotation: 1
        Overscan: 0
        Vrr: Automatic
        RgbRange: unknown
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: none
        Color profile source: sRGB
        Brightness control: supported, set to 100%

despite screen geometry being 2560x1440, suddenly all the modes are disabled except 640x480.

scarf@fedora /v/h/scarf> kscreen-doctor output.DP-2.mode.2560x1440@60
Output mode 2560x1440@60 not found.

and i really want to fix this without restarting and want to prevent stuff like this happening in the first place…

System Info

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.6-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600G with Radeon Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2
Manufacturer: HP
Product Name: Victus by HP 15L Gaming Desktop TG02-0xxx
NVIDIA-SMI 565.77                 Driver Version: 565.77         CUDA Version: 12.7

EDIT: fixed after unpluging and pluging DP cable again, but it’s not a great experience.

scarf@fedora /v/h/scarf [127]> kscreen-doctor -o
Output: 1 HDMI-A-2
        enabled
        connected
        priority 2
        HDMI
        Modes:  1:2560x1440@60!  2:3840x2160@30  3:3840x2160@25  4:3840x2160@24  5:2560x1440@75*  6:1920x1080@75  7:1920x1080@60  8:1920x1080@60  9:1920x1080@50  10:1920x1080@30  11:1680x1050@60  12:1600x900@60  13:1280x1024@75  14:1280x1024@60  15:1280x800@60  16:1152x864@60  17:1280x720@60  18:1280x720@60  19:1280x720@50  20:1024x768@75  21:1024x768@60  22:800x600@75  23:800x600@60  24:720x576@50  25:720x480@60  26:640x480@75  27:640x480@60  28:640x480@60 
        Geometry: 0,0 2560x1440
        Scale: 1
        Rotation: 1
        Overscan: 0
        Vrr: incapable
        RgbRange: unknown
        HDR: disabled
        Wide Color Gamut: disabled
        ICC profile: none
        Color profile source: sRGB
        Brightness control: supported, set to 30%
Output: 2 DP-2
        enabled
        connected
        priority 1
        DisplayPort
        Modes:  29:2560x1440@144!  30:2560x1440@165*  31:2560x1440@120  32:2560x1440@60  33:1920x1080@165  34:1920x1080@144  35:1920x1080@120  36:1920x1080@60  37:1920x1080@60  38:1920x1080@50  39:1680x1050@60  40:1600x900@60  41:1280x1024@75  42:1280x1024@60  43:1440x900@60  44:1280x800@60  45:1152x864@75  46:1280x720@60  47:1280x720@60  48:1024x768@75  49:1024x768@70  50:1024x768@60  51:800x600@75  52:800x600@72  53:800x600@60  54:800x600@56  55:640x480@75  56:640x480@73  57:640x480@60 
        Geometry: 2560,0 2560x1440
        Scale: 1
        Rotation: 1
        Overscan: 0
        Vrr: Automatic
        RgbRange: unknown
        HDR: disabled
        Wide Color Gamut: disabled
        ICC profile: none
        Color profile source: sRGB
        Brightness control: supported, set to 30%