Bug 464110 - Screen resolution resets to 640x480 when waking up monitor
Summary: Screen resolution resets to 640x480 when waking up monitor
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.26.4
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-10 18:32 UTC by erik
Modified: 2023-07-21 07:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description erik 2023-01-10 18:32:38 UTC
SUMMARY
I am using Wayland session and have set "Screen energy saving" to 10 minutes, so that my monitor powers off after some time of inactivity. Often when waking it up again (touching mouse / keyboard), the resolution is reset to 640x480. The computer does not go into any sleep / hibernation mode. This does not happen every time, but several times per day. I have not found a way to consistently reproduce it every time.

STEPS TO REPRODUCE
1. Set energy saving timeout value
2. Allow timer to turn off monitor
3.  Wake up monitor by for example moving the mouse

OBSERVED RESULT
The lock screen (and desktop after unlocking) is displayed in 640x480 resolution / 60Hz.

EXPECTED RESULT
The resolution / refresh rate should stay at the previously set values.

SOFTWARE/OS VERSIONS
Linux: Manjaro 6.1.1-1
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
Monitor is Samsung Odyssey G8 OLED
Comment 1 David Edmundson 2023-01-11 12:38:32 UTC
We can't reproduce locally with our monitors. 

Can you run "kscreen-console monitor" and reproduce the issue. Attaching the relevant log.
Comment 2 erik 2023-01-12 20:17:09 UTC
Log as follows. Note that I had two "wakeups" while monitoring, the first one worked normally with correct resolution, the second showed 640x480, I'm not sure which message belongs to what session as there are no timestamps. I can try to get a log of a single occurrence as well.

> kscreen-console monitor
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "(c) 2012 KScreen Team" msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "KScreen Console" msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "KScreen Console" msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Maintainer" msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Alejandro Fiestas Olivares" msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "KScreen Console is a CLI tool to query KScreen status\n\nCommands:\n  bug             Show information needed for a bug report\n  config          Show KScreen config files\n  outputs         Show output information\n  monitor         Monitor for changes\n  json            Show current KScreen config" msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Command to execute" msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Arguments for the specified command" msgid_plural: "" msgctxt: ""
START: Requesting Config
Received config. Took 5 milliseconds
Remember to enable KSRandR or KSRandR11 in kdebugdialog
Screen:
        maxSize: QSize(64000, 64000)
        minSize: QSize(0, 0)
        currentSize: QSize(3440, 1440)

-----------------------------------------------------

Id:  1
Name:  "Samsung Electric Company Odyssey G8/H1AK500000"
Type:  "DisplayPort"
Connected:  true
Enabled:  true
Primary:  true
Rotation:  KScreen::Output::None
Pos:  QPoint(0,0)
MMSize:  QSize(810, 350)
FollowPreferredMode:  false
Size:  QSize(3440, 1440)
Scale:  1
Clones:  None
Mode:  "2"
Preferred Mode:  "0"
Preferred modes:  ("0", "1")
Modes: 
         "0"    "3440x1440@120"   QSize(3440, 1440)   119.961
         "1"    "3440x1440@60"   QSize(3440, 1440)   59.959
         "10"    "2560x1440@120"   QSize(2560, 1440)   119.998
         "11"    "2560x1440@60"   QSize(2560, 1440)   59.951
         "12"    "1920x1200@120"   QSize(1920, 1200)   119.961
         "13"    "1920x1080@175"   QSize(1920, 1080)   174.918
         "14"    "1920x1080@120"   QSize(1920, 1080)   120
         "15"    "1920x1080@120"   QSize(1920, 1080)   120
         "16"    "1920x1080@120"   QSize(1920, 1080)   119.88
         "17"    "1920x1080@60"   QSize(1920, 1080)   60
         "18"    "1920x1080@60"   QSize(1920, 1080)   59.94
         "19"    "1600x1200@120"   QSize(1600, 1200)   119.961
         "2"    "3440x1440@175"   QSize(3440, 1440)   174.962
         "20"    "1680x1050@60"   QSize(1680, 1050)   59.954
         "21"    "1600x900@60"   QSize(1600, 900)   60
         "22"    "1280x1024@60"   QSize(1280, 1024)   60.02
         "23"    "1440x900@60"   QSize(1440, 900)   59.887
         "24"    "1280x800@60"   QSize(1280, 800)   59.81
         "25"    "1280x720@60"   QSize(1280, 720)   60
         "26"    "1280x720@60"   QSize(1280, 720)   60
         "27"    "1280x720@60"   QSize(1280, 720)   59.94
         "28"    "1024x768@60"   QSize(1024, 768)   60.004
         "29"    "800x600@60"   QSize(800, 600)   60.317
         "3"    "3440x1440@120"   QSize(3440, 1440)   120.027
         "30"    "720x480@60"   QSize(720, 480)   60
         "31"    "720x480@60"   QSize(720, 480)   59.94
         "32"    "640x480@60"   QSize(640, 480)   60
         "33"    "640x480@60"   QSize(640, 480)   59.94
         "4"    "3440x1440@96"   QSize(3440, 1440)   96.022
         "5"    "3440x1440@72"   QSize(3440, 1440)   72.004
         "6"    "3440x1440@60"   QSize(3440, 1440)   60.001
         "7"    "3440x1440@50"   QSize(3440, 1440)   50.002
         "8"    "3440x1440@48"   QSize(3440, 1440)   48.003
         "9"    "2560x1440@175"   QSize(2560, 1440)   174.967
EDID Info: 
        Device ID:  "xrandr-Samsung Electric Company-Odyssey G8-H1AK500000"
        Name:  "Odyssey G8"
        Vendor:  "Samsung Electric Company"
        Serial:  "H1AK500000"
        EISA ID:  ""
        Hash:  "1ec6608b3284fa3c3e4d68a8ed5da8d5"
        Width:  81
        Height:  35
        Gamma:  2.2
        Red:  QQuaternion(scalar:1, vector:(0.689453, 0.300781, 0))
        Green:  QQuaternion(scalar:1, vector:(0.241211, 0.714844, 0))
        Blue:  QQuaternion(scalar:1, vector:(0.145508, 0.0595703, 0))
        White:  QQuaternion(scalar:1, vector:(0.313477, 0.329102, 0))
No primary output.
qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
New primary output:  2 "Samsung Electric Company Odyssey G8/H1AK500000"
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Comment 3 erik 2023-01-17 11:36:56 UTC
Happened today again while running a fresh trace. Nothing showed up in the log when the resolution change took place - the "kcm_fonts.so" message was from opening the system settings to reset the resolution:

...
EDID Info: 
        Device ID:  "xrandr-Samsung Electric Company-Odyssey G8-H1AK500000"
        Name:  "Odyssey G8"
        Vendor:  "Samsung Electric Company"
        Serial:  "H1AK500000"
        EISA ID:  ""
        Hash:  "f0945b2f0cbabf866749eb7e22594ac0"
        Width:  81
        Height:  35
        Gamma:  2.2
        Red:  QQuaternion(scalar:1, vector:(0.689453, 0.300781, 0))
        Green:  QQuaternion(scalar:1, vector:(0.241211, 0.714844, 0))
        Blue:  QQuaternion(scalar:1, vector:(0.145508, 0.0595703, 0))
        White:  QQuaternion(scalar:1, vector:(0.313477, 0.329102, 0))
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Initializing  "/usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Comment 4 erik 2023-07-21 07:51:05 UTC
Since the update to 5.27.6 (or could have been a Mesa update?) this has stopped happening. Closing.