...someplace, where there isn't any trouble? Do you suppose there is such a place, Toto?

At long last, decent G-Sensor functionality for my WindPad 110W

I have decided to write today's blogpost in English because it might affect an international audience, namely those people who, like me, have purchased an MSI WindPad Tablet in the hope to get it running with Windows 8 smoothly.

(Update (2012/10/10): Version is available under the download link below. Just update from or do a fresh install and all problems with MSI's dual camera app should be gone)

Short abstract: I have written a decent G-Sensor App for the MSI WindPad 110W tablet computer which works nicely under Windows 8 even with the newfangled Windows 8 UI (formerly dubbed "Metro") running. You can grab it here: Download wpdgspot. Full source code for the wpdgspot binary is available here.

Longer essay: The MSI WindPad 110W is a nice piece of hardware. I bought mine sort of like a year ago to have a tablet computer to run the various Windows 8 previews, betas and RCs. Unfortunately, the G-Sensor ("G" as in "Gravity") in this tablet computer, which is supposed to make the screen rotate while the  user rotates the tablet computer, does not adhere to the new Windows 8 hardware standards. Incidentally, this tablet computer ships with Windows 7 and a companion software package from MSI is available that includes an application that works with  the G-Sensor in the tablet. That software package is called "O-Easy" and the particular application that rotates the screen is MSIGSensorHid.exe which is added to the run key in the registry so it is started after each user login. And this software sucks big time.

The problem with MSIGSensorHid.exe is, that it only works on Windows 8 while a desktop application is running in the foreground. If a new Windows 8 UI application is running (aka "Metro App"), it doesn't rotate the screen while the user rotates the tablet computer. Bummer!

Since non-working G-Sensor functionality renders a Windows 8 tablet computer almost useless, I decided to rewrite the G-Sensor app and create one that is much better than the one that MSI ships.

How do you go about rewriting such an app? Fortunately MSI made this quite easy for me. If you run spy++ (a development tool that should be familiar to every windows programmer), you will notice that while MSIGSensorHid.exe is running, a hidden top level window with tons of child controls exists. So you only need two lines of code (FindWindow and ShowWindow, that is) in an application of your own to show this hidden top level window:

(click on the image for a higher resolution image in a separate browser window)


From there you can easily determine the USB Vid/Pid of the sensor, and monitor the HID data exchange between the application and the sensor device. Now some further reading on MSDN about HIDs (Human Input Devices) and you are halfway done with your own application. But wait, what is this if we watch with process explorer what the app is doing?

(click on the image for a higher resolution image in a separate browser window)


Not only doesn't it work properly on Windows 8, after a few minutes it has 509 threads running, half a Gigabyte of committed memory from the pagefile (which is quite a lot on a machine with only 2GB of RAM) and more than 3000 handles. And this app is doing nothing than wait for a user to rotate the screen! This is just insane. Further investigation reveals that this app is creating one thread per second until the thread pool of the app domain is exhausted. Oh my dear, how peculiar!

On the screenshot above you also see the numbers for my replacement app, wpdgspot.exe: 2 threads, 84 handles, 808k of private bytes.

It took me a week's evenings work to write this app, and I spent most of the time thinking about a funny name for this pet project. I came up with wpdgspot (which you may pronounce "Whipped G-Spot" if you like). The "wpd" is derived from "WindPad" and since the "G" as in "G-Sensor" or "Gravity-Sensor" is also in the word "G-Spot" and since the "G-Spot" is considered a sensory receptor (at least this is what wikipedia says about the whole topic), I decided to give it this name.


How to install it:

Download the msi file (no pun intended) for the "Whipped G-Spot" from the download link. Bring your WindPad 110W into horizontal position and now install the msi file. Log out while in horizontal position and log in again. MSIGSensorHid.exe will now be gone and wpdgspot will be running instead. You have to do the installation in horizontal position because MSIGSensorHid.exe will always store the rotation position permanently which wpdgspot.exe does not by design. So we have to make MSIGSensorHid.exe save the horizontal position for the very last time it runs now, so the horizontal position is the one that is saved permanently but from now on changed dynamically by wpdgspot without permanent persistence while you are using the tablet computer.

Update (2012/10/10): I have adopted MSI's way of changing the screen rotation "permanently" with version because it creates less hassle for everyone when installing over an existing O-Easy installation and it is a per-user setting anyway. Their choice wasn't that bad after all in that case.


How to build it on your own:

Download the source code, unpack it recursively. You need Visual Studio 2010 (Express edition should suffice) in order to build it, and a recent windows DDK (I used the Windows 7 DDK). Create a new environment variable "WINDDKDIR" which points to your DDK installation and now launch the solution file with Visual Studio and build the whole shebang. You have the right to inspect the source code, learn from it, find errors in it (and tell me about them), build it for your own purposes, but not to distribute it, sell it or distribute binary derivatives of wpdgspot.



I have only tried to run the "Whipped G-Spot" app on Windows 8 RTM x86. I assume it also runs well on Windows 7 and all x64 versions of Windows 7 and Windows 8. I would welcome any report of success on these OS versions as well as reports of this software on other variants of the WindPad tablet family.

Update (10/10/2012): People on the MSI forum have run wpdgspot.exe successfully with their windpad device on Windows 8 x64 RTM. I have successfully tested on Windows 7 x64, so I think we are good to go on all relevant platforms with my x86 build of wpdgspot.exe.

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)


Comment from: racecar56 [Visitor]
racecar56Thank you so much for this program, it works great! Again, thank you!
11/04/12 @ 12:36
Comment from: MIlchegesicht [Visitor]
MIlchegesichtVielen Dank für das Programm, es macht den Einsatz des Windpads sinnvoller :)
11/04/12 @ 13:32
Comment from: Mohammed Dessoky [Visitor]
Mohammed DessokyI have installed the new amd catalyst driver , then I installed yours ,
I wish I could thank you in person , please help MSI by giving them what you made , you'll be helping thousands
11/25/12 @ 09:12
Comment from: Xozter° [Visitor] Email
Xozter°Hello Big request from fans MSI WindPad 110w: make a working G-sensor for gaming.
12/02/12 @ 20:35
Comment from: Charlie [Visitor]
CharlieI have installed wpdgspot on my Windpad 110W, running final release version Windows 8 upgrade. Everything works smoothly. Wonderful work, thank you. One additional question? Do your cameras work? I mean @ full 1.3 resolution? Can only get mine to work @ 0.1 resolution. Horrible. Can any thing be written to use the full resolution from the cameras?
12/23/12 @ 00:40
Comment from: sku [Member] Email
skuCharlie, no cameras don't work in the expected way. They only work if I have something attached to the USB, namely my NIC. And they worked when upgrading from Win 7 versus a fresh install of Win 8. You might want to give the new firmware a try, it makes wpdgspot unnecessary as it makes the g-sensor a Win8-compliant sensor. Had a couple of BSODs however with it, so I am still testing the new firmware.
12/23/12 @ 10:04
Comment from: Brandon B [Visitor]
Brandon BWhat a life saver I read comics on my windpad and it makes them better if you can have them in portarte. My rotate use to work but haev a update to ..net 4 or a update to the oeasy i dont remember which the auto rotate stopped working. I downloaded this and boom works again. I am running this on windows 8 pro final realese 64 bit
02/13/13 @ 17:10
Comment from: jj [Visitor]
jjthank u soooooooooooooooooo much!!!!!!!!!
it works ever ssooo smoothly!!!
u must give it to MSI..its a moral obligation 😁
04/20/13 @ 14:44
Comment from: Fernando Cassia [Visitor] Email
Fernando CassiaHooray!

A MSI WindPad owner who also happens to be a knowledgeable programmer1.

Congratulations and thanks!

Q: will your app install and work on win7 too, oe does it use any win8 specific APIs?

I dislike bloated, inefficient code and as you found MSI s code sucks royally, so I'd like to replace the MSI sensors app w your own, even while I prefer to keep Win7...

Just looking at o-easy.exe using 80MB of RAM makes my blood boil....
05/13/13 @ 20:37
Comment from: Fernando Cassia [Visitor] Email
Fernando CassiaI would like to ask you if you know any way to disablle the "soft buttons"" on the right side of the scren.

while grabbing the tablet from the right side, some of my hand inevitably lands on top of the o-easy button area when I dont want to...

it would be great if aome 3rd party util would allow turning that area sensitivity on/off... for instance if I tap 4 times in a row over any of the soft-buttons, disable it, and if I tap 4 times again, enable it.

What do you think?

Kudos from down under...

05/13/13 @ 20:52
Comment from: Fernando Cassia [Visitor]
Fernando Cassiayou did right what MSI did wrong.... in other words, you did MSI s job, for free.

In the words of Mike Magee.... "send them an invoice!!" :-))

05/14/13 @ 03:41
Comment from: sku [Member] Email
sku@Fernando: As I wrote, wpdgspot runs on Win7 as well. But you should really consider installing the new firmware for Windows 8 on your Windpad and then run Win8. Then you don't need wpdgspot anymore, the new firmware will make the g-sensors Win8-compatible sensors, so they use builtin drivers. I do not run wpdgspot anymore on my windpad, there is no need for it anymore with the new firmware.

As to your question about the soft buttons: Take a look at the source code for my project "So lazy". I guess you can hook quite a number of the soft buttons with the exception of the SAS (the Ctrl-Alt-Del Key combo soft button).
05/22/13 @ 23:29
Comment from: Fernando Cassia [Visitor]
Fernando CassiaThanks for taking the time to reply!. I appreciate it.

Now to look for that elusive "so lazy" project. :)

05/27/13 @ 12:13
Comment from: Cryset [Visitor]
CrysetPerfectly! Thank you very much for the program!
Now my WindPad works fine on Win10.
10/11/17 @ 11:36

This post has 6 feedbacks awaiting moderation...

Leave a comment

Your email address will not be revealed on this site.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)