drm_hwcomposer: Use DPMS property to configure display pipeline

Some of KMS drivers like kirin are sensitive to display pipeline
configuration, modern kernel will configure the pipeline correctly
when user sets DPMS property.

To be more precise current compositor logic will not attach primary
plane to the CRTC, while kirin relies on it internally.

Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
diff --git a/hwc2_device/HwcDisplay.cpp b/hwc2_device/HwcDisplay.cpp
index b2cdfa3..9055a9a 100644
--- a/hwc2_device/HwcDisplay.cpp
+++ b/hwc2_device/HwcDisplay.cpp
@@ -633,7 +633,9 @@
        * true, as the next composition frame will implicitly activate
        * the display
        */
-      return HWC2::Error::None;
+      return compositor_.ActivateDisplayUsingDPMS() == 0
+                 ? HWC2::Error::None
+                 : HWC2::Error::BadParameter;
       break;
     case HWC2::PowerMode::Doze:
     case HWC2::PowerMode::DozeSuspend: