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?!
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?!