Bug 457026 - refresh rate set to internal monitors after user being locked
Summary: refresh rate set to internal monitors after user being locked
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.25.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-22 17:10 UTC by Matej Starc
Modified: 2024-05-24 14:33 UTC (History)
2 users (show)

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


Attachments
log before the bug happens (71.02 KB, text/x-log)
2022-07-23 15:18 UTC, Matej Starc
Details
log when the bug happens (after logging back in) (70.34 KB, text/x-log)
2022-07-23 15:19 UTC, Matej Starc
Details
log after enabling and disabling the internal monitor (70.34 KB, text/x-log)
2022-07-23 15:19 UTC, Matej Starc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matej Starc 2022-07-22 17:10:16 UTC
SUMMARY
When I log in back after the user was locked because of inactivity, the refresh rate is locked to the internal monitor's max refresh rate (I use a laptop that has a monitor with 90hz and an external monitor with 144hz).

STEPS TO REPRODUCE
1. Disable the internal monitor and have an external monitor with higher refresh rate plugged in
2. Keep the laptop idle so it automatically locks the user
3. Log in back into the locked account
 

OBSERVED RESULT
- Refresh rate is locked at 90hz (laptops refresh rate) and cannot be fixed by changing the refresh rate in Display Settings
- Display settings still show the correct settings (144hz even when it is set to 90hz)

A QUICK FIX
- Enable the internal monitor and then disable it. For some reason, the moment you enable the internal monitor, it fixes all the problems.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.12-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD RENOIR
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: Zenbook UN5401QAB_UN5401QA
System Version: 1.0
Comment 1 Zamundaaa 2022-07-23 12:01:21 UTC
Please attach the output of drm_info when it's working normally, and when the refresh rate is wrong.
Comment 2 Matej Starc 2022-07-23 12:30:19 UTC
(In reply to Zamundaaa from comment #1)
> Please attach the output of drm_info when it's working normally, and when
> the refresh rate is wrong.

I don't have an executable named drm_info.
Is this GitHub repo what I need to install ? https://github.com/ascent12/drm_info
Comment 3 Zamundaaa 2022-07-23 12:38:00 UTC
Yes
Comment 4 Matej Starc 2022-07-23 15:18:26 UTC
Created attachment 150849 [details]
log before the bug happens
Comment 5 Matej Starc 2022-07-23 15:19:29 UTC
Created attachment 150850 [details]
log when the bug happens (after logging back in)
Comment 6 Matej Starc 2022-07-23 15:19:57 UTC
Created attachment 150851 [details]
log after enabling and disabling the internal monitor
Comment 7 Zamundaaa 2022-07-23 23:18:45 UTC
Looks like what system settings reports is actually correct: your monitor is running at 144Hz.

How are you noticing that the refresh rate is wrong?
Comment 8 Matej Starc 2022-07-24 08:11:34 UTC
(In reply to Zamundaaa from comment #7)
> Looks like what system settings reports is actually correct: your monitor is
> running at 144Hz.
> 
> How are you noticing that the refresh rate is wrong?

Well, there is a big difference between what is set after the glitch and 144hz. I was just guessing it was using a lower refresh rate because it looked like it. Responsive time when clicking on the app launcher was normal. Resizing was normal. Everything was normal, except it was laggy and to me, it looked like the refresh rate has been lowered which is solved by enabling and disabling (you have to apply both changes) the internal monitor.
Comment 9 Zamundaaa 2022-07-29 14:59:14 UTC
Can you record a video of the screen while it's slow? Ideally with system monitor open
Comment 10 Matej Starc 2022-07-30 20:06:22 UTC
(In reply to Zamundaaa from comment #9)
> Can you record a video of the screen while it's slow? Ideally with system
> monitor open

I will only be able to do so in 4 days because currently, I don't have an external monitor on my hands.
Comment 11 Matej Starc 2022-08-06 14:22:49 UTC
(In reply to Zamundaaa from comment #9)
> Can you record a video of the screen while it's slow? Ideally with system
> monitor open

https://cloud.aljaxus.eu/index.php/s/npSmqyXfGw7Lo5W
Comment 12 Zamundaaa 2024-05-24 14:33:41 UTC
We've made big improvements to render time tracking and frame scheduling in Plasma 6, so this bug is most likely fixed. In case you're still experiencing it, just reopen this