swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.76k stars 1.11k forks source link

Refreshrate resets to default after `power off` & `power on` #8297

Open litoj opened 3 months ago

litoj commented 3 months ago

Please fill out the following:

nekopsykose commented 3 months ago

does this reproduce on master? i remember having a similarish bug that i remember maybe got fixed but lost track of it..

litoj commented 3 months ago

Haven't checked yet, will do and report back.

litoj commented 3 months ago

Unfortunately yes, the same thing happens with sway version 1.10-dev-c30c4519 (Aug 15 2024, branch 'master')

etrnal70 commented 3 months ago

for me just reloading sway config also resets the refresh rate. on latest master

sahinf commented 2 months ago

the refreshrate setting doesn't get applied again (it uses the default),

Doesn't your log say it does get applied again? ctrl+f for Hz and they're all 48 except the detected modes section 00:00:01.398 [INFO] [wlr] [backend/drm/drm.c:786] connector eDP-1: Modesetting with 2560x1600 @ 48.000 Hz

Edit: I can't reproduce this at all :(

litoj commented 2 months ago

Yes, that's actually the very core of the issue (I forgot to mention) - when the screen is turned back on, it prints info about the last uset setting that it thinks is also the current. And continues to report this as the current setting despite clearly running on defaults. I observed this with mpv (said system uses 48Hz) and https://fpstest.org/refresh-rate-test/ (reported 120Hz when actually testing the screen refreshrate)