Skip to content

Enable KMS deadline timer after a VT switch if it was inhibited

Dor Askayo requested to merge doraskayo/mutter:kms-thread-vt-switch into main

Context

This MR allows the KMS thread to arm its deadline timer again after a VT switch.

See #3259 (closed) for a description of the issue and root cause analysis.

Description

Introduce a meta_kms_impl_device_resume() function that enables the deadline timer of a MetaKmsImplDevice if it was inhibited previously. Then call it for every device after a VT switch. This solution was suggested when discussing the issue with @jadahl.

See commit messages for more information.

CC: @jadahl, @carlosg

Edited by Dor Askayo

Merge request reports