Comment # 16 on bug 1177060 from
Here's what I posted over at
https://gitlab.freedesktop.org/drm/nouveau/-/issues/12

I'm giving powerdevil5 the credit for this one.

On further testing, if Screen Energy Saving is turned on in the powermanager
module, the errors occur after wake from suspend. This is the section of
suspendsession.cpp from powerdevil-5.20.0 that I'm looking at:

> void SuspendSession::onIdleTimeout(int msec)
> {
>     QVariantMap args{
>         {QStringLiteral("Type"), m_autoType}
>     };
> 
>     // we fade the screen to black 5 seconds prior to suspending to alert the user
>     if (msec == m_idleTime - 5000) {
>         args.insert(QStringLiteral("GraceFade"), true);
>     } else {
>         args.insert(QStringLiteral("SkipFade"), true);
>     }
> 
>     trigger(args);
> }

If the screen is already switched off and then the command is sent to fade the
screen, it causes the errors after wake. There is logic to trigger the fade 5
seconds before suspend. There should also be logic to SkipFade if the screen is
already switched off.

This should probably get posted somewhere else, maybe bugs.kde.org in the
powerdevil section?


You are receiving this mail because: