WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Displaying battery state inside Windows guests

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Displaying battery state inside Windows guests
From: "Barak Fargoun" <barak@xxxxxxxxxxxx>
Date: Wed, 26 Mar 2008 07:09:11 -0400
Delivery-date: Wed, 26 Mar 2008 04:07:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciPMdGaEJAMHjQEQP+z4vNzPpDqAw==
Thread-topic: Displaying battery state inside Windows guests

Hi all,

 

I would like to make Windows guest which runs on laptop machine, to display the battery state (as if Windows is running on the physical machine itself).

(BTW, VMWare has added this functionality inside the latest version of VMWare)

 

I have thought about the following ways in order to perform it. If someone is familiar with these stuff, and can help me in doing so or comment about it, I would appreciate it a lot. These are the ways I thought about:

1.       Writing a pv battery mini-class driver in Windows, which will receive the battery state from dom-0, and will report it to Windows

2.       Adding a section in the dsdt of the hvm guest, which will return the battery state using some IO ports, then I will try to catch these IO ports accesses using qemu, and will return the proper values. This method will enable Windows to use it’s own generic control method battery (CmBatt.sys).

 

Can anyone help/comment?

 

Barak

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>