>From 8690c7f7db6e967a4feb681d8a71cb5b2be0d1b8 Mon Sep 17 00:00:00 2001
From: Izik Eidus <iei...@redhat.com>
Date: Wed, 30 Dec 2009 00:06:59 +0200
Subject: [PATCH] qxl driver: tell windows not to use power managment.

With latest changes we have problems to sleep,
for now we disable this.

It appear that this patch does effect windows xp and does not
allow it to sleep, but windows 7 ignore it.

Thanks.

Signed-off-by: Izik Eidus <iei...@redhat.com>
---
 win/miniport/qxl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/win/miniport/qxl.c b/win/miniport/qxl.c
index fe5449c..8a0e4a5 100644
--- a/win/miniport/qxl.c
+++ b/win/miniport/qxl.c
@@ -689,8 +689,8 @@ VP_STATUS GetPowerState(PVOID dev_extension,
         case VideoPowerOff:
         case VideoPowerShutdown:
         case VideoPowerHibernate:
-            DEBUG_PRINT((0, "%s: OK\n", __FUNCTION__));
-            return NO_ERROR;
+            DEBUG_PRINT((0, "%s: ERROR_DEVICE_REINITIALIZATION_NEEDED\n", 
__FUNCTION__));
+            return ERROR_DEVICE_REINITIALIZATION_NEEDED;
         }
         break;
     default:
-- 
1.6.5.2


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Spice-space-devel mailing list
Spice-space-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spice-space-devel

Reply via email to