Bug 445328

Summary: Refresh rate setting resets after reboot
Product: [Plasma] KScreen Reporter: Akseli Lahtinen <akselmo>
Component: commonAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate, plasma-bugs-null, xaver.hugl
Priority: NOR    
Version First Reported In: 5.22.5   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Akseli Lahtinen 2021-11-11 12:34:44 UTC
SUMMARY

Changing refresh rate from 60hz to 144hz resets after rebooting back to 60hz. 


STEPS TO REPRODUCE
1. Reboot
2. Go to system settings, open Display And Monitor -> Display Configuration
3. Change refresh rate from default (60hz) to something else (144hz)
4. Reboot
5. Go to system settings, open Display And Monitor -> Display Configuration
6. Refresh rate has reset to 60hz, both visibly and in settings configuration

OBSERVED RESULT
Refresh rate switches back to the default 60hz, both visibly and in settings configuration

EXPECTED RESULT
Refresh rate would stay in the saved setting (144hz), both visibly and in settings configuration

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.10
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-21-generic (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon ™ RX 480 Graphics

ADDITIONAL INFORMATION

If there are way to find logs for this, tell me and i'll do that. 
SDDM is always 60hz, maybe that could be the reason?
Comment 1 Akseli Lahtinen 2021-11-27 10:23:24 UTC
I partially "solved" the issue by setting my SDDM do the following in `/usr/share/sddm/scripts/Xsetup`

```
xrandr --output DVI-D-0 --mode 1920x1080 --pos 0x0 --rate 144 --primary
xrandr --output DisplayPort-0 --mode 1920x1080 --rate 143.85
```
Comment 2 Nate Graham 2022-11-12 14:34:49 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. If this is still reproducible with Plasma 5.26, can you:
1. undo that change
2. reboot
3. Set up the refresh rate as you expect
4. paste the output of `kscreen-doctor -o`
5. reboot
6. paste the output of `kscreen-doctor -o` again

Thanks a lot!
Comment 3 Akseli Lahtinen 2022-11-12 15:03:30 UTC
I do not have same setup as before and I haven't encountered this bug for long time. Current setup works as expected, the refresh rate does not reset between reboots.

Operating System: Fedora Linux 36
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.6
Kernel Version: 6.0.7-200.fc36.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: NAVI23
Comment 4 Nate Graham 2022-11-12 15:04:20 UTC
Awesome. I suspect it was a driver bug all along, FWIW.