Comment 14 for bug 1539811

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Mir crashed with std::exception::what: Couldn't clear output eDP-1 (drmModeSetCrtc = -13)

Error 13 is "Permission denied". That could mean unity-system-compositor is being shut down from a VT other than the one it is running on. So we might expect to see that error.

I'm tempted to say if this only happens on shutdown then we just need to make it a non-fatal error. However there's only one location where I can see the offending function getting called:

mgm::Display::clear_connected_unused_outputs()

and even then it's only called when:

        if (conf_output.connected &&
            (!conf_output.used || (conf_output.power_mode != mir_power_mode_on)))

So how is your eDP-1 (laptop screen) considered connected and unused? Is something turning the screen off prior to shutdown?!