ecore_drm2: Don't try to disable all devices when session deactivates
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 2 Jun 2017 18:19:58 +0000 (13:19 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 2 Jun 2017 20:50:09 +0000 (15:50 -0500)
commit280c82fdd4af1e9d9446983627a9db992b9ba348
tree3ae2ff31b61fbc49aa032e580a5ca983ab30d3a5
parent9d583b3fdbed686642dbc0d96d1e417485ca0077
ecore_drm2: Don't try to disable all devices when session deactivates

We get this callback after we've lost the drm device to logind, so
deactivating stuff here will just generate a lot of ERR messages
and break our internal book-keeping.

Instead, we just turn on DPMS on session activation instead of trying
to go through the output enable path (that will bail if it's already
enabled)

This could potentially result in a display that's enabled and DPMS
off being switched back on during session activation - if that's a real
problem we can restore the previous dpms state instead...

@fix T5483
src/lib/ecore_drm2/ecore_drm2_device.c