From 24a6d37a7cb83b6a891816b23a5514dacb14dd4c Mon Sep 17 00:00:00 2001 From: Troy Crosley Date: Thu, 3 Sep 2020 10:53:58 -0400 Subject: [PATCH] Clear rather than remove control/feature-XXX keys. These keys should stick around when disabled since they're present at boot. This also fixes an issue where the keys are unable to be written on wake from S3 or S4. Signed-off-by: Troy Crosley Reviewed-by: Paul Durrant --- src/xenagent/service.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xenagent/service.cpp b/src/xenagent/service.cpp index 4d62e09..26c63a2 100644 --- a/src/xenagent/service.cpp +++ b/src/xenagent/service.cpp @@ -331,10 +331,10 @@ void CXenIfaceCreator::StopShutdownWatch() if (!m_ctxt_shutdown) return; - m_device->StoreRemove("control/feature-poweroff"); - m_device->StoreRemove("control/feature-reboot"); - m_device->StoreRemove("control/feature-s3"); - m_device->StoreRemove("control/feature-s4"); + m_device->StoreWrite("control/feature-poweroff", ""); + m_device->StoreWrite("control/feature-reboot", ""); + m_device->StoreWrite("control/feature-s3", ""); + m_device->StoreWrite("control/feature-s4", ""); m_device->StoreRemoveWatch(m_ctxt_shutdown); m_ctxt_shutdown = NULL; -- 2.39.5