Bug 489012 - [wayland] Adaptive Sync option sometimes disappears when waking from sleep
Summary: [wayland] Adaptive Sync option sometimes disappears when waking from sleep
Status: RESOLVED DUPLICATE of bug 486149
Alias: None
Product: kwin
Classification: Plasma
Component: platform-drm (show other bugs)
Version: 6.1.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-22 22:02 UTC by Eamonn Rea
Modified: 2024-07-10 16:20 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eamonn Rea 2024-06-22 22:02:03 UTC
SUMMARY
Occasionally when walking my laptop from sleep, the "Adaptive Sync" option will disappear from the System Settings' Display Configuration menu.

I have not noticed this happen on Plasma 6.0.5 or below with the brief period I used it on this laptop, or on my PC which has been running Plasma for a long time and which I wake from sleep quite regularly. I have not yet seen the Adaptive Sync options disappear on Plasma 6.1.0 on my PC, but it is happening on my laptop.

I am not sure if this means Adaptive Sync is disabled or not. But I have noticed that when the setting disappears, my battery life significantly tanks (the display is 165hz).

if there is a way that I could check the status of Adaptive Sync from the commandline please let me know, I would be interested to check if it is actually being disabled when the setting disappears!

STEPS TO REPRODUCE
1. Put a device to sleep and wake it up.
2. Occasionally the Adaptive Sync option will disappear and won't come back until a reboot.

OBSERVED RESULT
Adaptive Sync option occasionally disappears when waking device from sleep.

EXPECTED RESULT
Adaptive Sync option should not disappear when waking from sleep.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.9.5 Linux Zen
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
Perhaps this is a driver issue when waking a laptop from sleep that is reporting to KDE that Adaptive Sync is unavailable?
Comment 1 Zamundaaa 2024-06-25 22:31:13 UTC
> Perhaps this is a driver issue when waking a laptop from sleep that is reporting to KDE that Adaptive Sync is unavailable?
That is pretty likely; bug 486149 is similar and also about an internal display.

Please check if the driver reports adaptive sync as supported even though KWin doesn't consider it supported. You can do that with drm_info. If you see
> "vrr_capable" (immutable): range [0, 1] = 1
in its output after triggering the issue, it should be fixed by the same commit as bug 486149
Comment 2 Eamonn Rea 2024-06-25 22:43:53 UTC
Thanks, next time this occurs I will check for this. drm_info seems like exactly what i was looking for to check if this was a visual thing or if KWin is reflecting that the information has disappeared.

I'm guessing that, if this is reproducible again and drm_info shows that VRR is not available, that this is a bug with DRM / some other part of the graphics stack and not KWin?
Comment 3 Eamonn Rea 2024-06-29 17:12:59 UTC
This happened again today, although not when waking from sleep but on bootup after updating to Plasma 6.1.1. I have not rebooted since but I suspect rebooting will get the option to appear again.

I installed `drm_info` from the AUR, and 9 connectors were returned. The first one, connector 0, does list VRR as being supported. The other ones, 1-8, list this as not being supported.

Connector 0:
- "vrr_capable" (immutable): range [0, 1] = 1

Connector 1-8:
- "vrr_capable" (immutable): range [0, 1] = 0
Comment 4 Zamundaaa 2024-07-10 16:20:56 UTC
okay, then it's definitely the same as bug 486149

*** This bug has been marked as a duplicate of bug 486149 ***