Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2007-12-25 10:21:45 am

NoeeePC4MeWellMaybe...
Senior Member
Registered: 2007-09-22
Posts: 232

Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Over the last few days I have been monitoring XP's performance monitor (perfmon.exe) counters on the eeePC, and have noticed that the CPU would never enter a Deep Sleep (C3) low-power state.  Its inability to enter this sleep state would indicate that most of the time the CPU ends up consuming about 0.6 Watts more than necessary during typical usage scenarios.

After further investigation, I have discovered that the webcam's USB Composite Device controller is responsible for the CPU's lack of Deep Sleep. Take a look at the below graphs:

Graph Shows-> Non-existant C3/Deep Sleep state when "USB Composite Device" is enabled
http://i11.tinypic.com/7w5v8tk.png


Graph Shows-> "Active" Battery Saving C3/Deep Sleep state when "USB Composite Device" is disabled
http://i1.tinypic.com/6jf4plg.png


What you need to do in order to 'unlock' the processor's C3/Deep Sleep state:

1) Install Microsoft's KB918005 "Battery Drain Patch" for XP SP2. Deep Sleep will not be possible without this update.

For the I can neither confirm nor deny eeePC XP users wink I have provided a direct link to the update:

http://download.microsoft.com/download/ … 86-ENU.exe

2) Disable the "USB Composite Device" in device manager.

http://i16.tinypic.com/739nafs.png

Whenever you need to use the webcam you'll have to re-enable the "USB Composite Device". If time permits, I (or someone else big_smile) can make a tray utility that will allow you to toggle the device/webcam off and on.

I have not tested to see how significant the battery life gains are, but I have no doubt that we will get a few more minutes out of our eeePC battery smile

Offline

 

#2 2007-12-25 10:55:06 am

Bremen
Senior Member
From: Texas
Registered: 2007-11-17
Posts: 542

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

I would be very interested in if this actually has a positive effect on battery life..... I never use the camera anyway, so no great loss to me.


Gateway LT2104u - 2 gig ram
Windows 7 Starter
iPad
My Music http://www.bremencole.com

Offline

 

#3 2007-12-26 1:47:07 am

geoelectric
Senior Member
Registered: 2007-12-19
Posts: 298

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

The KB article you link to doesn't really cover a situation where you'd have to do the patch -and- disable the device, though.  It has one scenario where the patch works against the existing device, and two scenarios where the patch won't help at all.  Are you sure you need to do both?  If so, there must be two devices contributing to the problem--one that the patch helps, and the webcam.

Offline

 

#4 2007-12-26 4:25:36 am

NoeeePC4MeWellMaybe...
Senior Member
Registered: 2007-09-22
Posts: 232

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Without the patch, the issue affects all USB controllers on the eeePC that have (or had) a device connected to it. In regards to the web cam controller, Microsoft may not be aware that the USB Video Class drivers or a driver tied to that class may also need to be patched, guess we should send them an email.

I had a few hours to spare after the Xmas feast , so I decided to make a simple .NET 2.0 tray app that interfaces with Microsoft's DevCon command-line Device Manager application in order to toggle the webcam's USB controller off/on.

You can download the eeePC Webcam Tray App at http://dastudio.net/eeePC/eeePCCamTray.zip

Extract the 'eeePCCamTray' directory to your drive, double click on 'eeePCCamTray.exe' to launch the application. You should see a miniature version of the application icon in XP's notification tray.

The tray app is straightforward to use:

- Hovering your mouse over the icon in the tray displays a tooltip that lets you know whether or not your eeePC webcam is currently enabled or disabled.

- Right clicking on the icon will present you with either an Enable Webcam, or Disable Webcam option, and also a "Close" option.

You should create a shortcut to the application in "Start-> All Programs-> Startup", doing so will allow the application to be loaded up once Windows has started.

If the application does not load you likely need to download .NET 2.0 framework http://www.microsoft.com/downloads/deta … laylang=en

If it still doesn't work (hopefully we all have the same webcam hardware)... well too bad tongue

Last edited by NoeeePC4MeWellMaybe... (2008-01-05 8:53:10 am)

Offline

 

#5 2007-12-26 5:27:30 am

.:Cyb3rGlitch:.
Senior Member
From: Sydney, Australia
Registered: 2007-07-15
Posts: 783
Website

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Cheers dude, I'll check this out. big_smile


701 4G 7B | 0910 BIOS | 1GHz OCCT Stable | 1GB 667MHz RAM | nLited XP Pro

Visit my tutorial website! Cyb3rGlitch Tutorials

Offline

 

#6 2007-12-26 5:35:43 am

naitsirk
New member
Registered: 2007-12-17
Posts: 5

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

awesome smile i'll try this if i have some time later today

Offline

 

#7 2007-12-26 5:49:23 am

.:Cyb3rGlitch:.
Senior Member
From: Sydney, Australia
Registered: 2007-07-15
Posts: 783
Website

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

It seems to work great. One question, why does it take 11MB of RAM?


701 4G 7B | 0910 BIOS | 1GHz OCCT Stable | 1GB 667MHz RAM | nLited XP Pro

Visit my tutorial website! Cyb3rGlitch Tutorials

Offline

 

#8 2007-12-26 6:42:14 am

NoeeePC4MeWellMaybe...
Senior Member
Registered: 2007-09-22
Posts: 232

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Taskmanager's algorithm for computing memory consumption does not work correctly with .Net apps. I'll let Tim Anderson explain why this is the case since his article does a pretty good job at doing so smile 

http://www.itwriting.com/dotnetmem.php

Since using the tray app to disable the web cam, I definitely see an improvement in my fanless idle temperature. The temperature decreases when the webcam controller is disabled, while it slowly increases when enabled. I’m pretty positive that our battery life will be slightly improved (maybe +10/15 minutes).

Offline

 

#9 2007-12-26 7:02:45 am

vitualis
Senior Member
From: Sydney, Australia
Registered: 2007-12-13
Posts: 175
Website

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Great work!

Anybody up for doing some benchmarks and posting the results?

Regards.


Michael Tam

Offline

 

#10 2007-12-26 7:27:12 am

NoeeePC4MeWellMaybe...
Senior Member
Registered: 2007-09-22
Posts: 232

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Just another update:

WiFi on battery power uptime is 1hr 31 minutes as reported by the Atheros Utility, and XP's battery memter has just switched to 60% remaining. My screen brightness has been at 50%, and I have my WiFi adaptor's Transmit Power Level set at 1 mW as mentioned in http://forum.eeeuser.com/viewtopic.php?id=6408. I haven't played any mulitimedia during this usage period.

Offline

 

#11 2007-12-26 7:46:21 am

Steep
Senior Member
From: Scotland
Registered: 2007-12-13
Posts: 367

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

If the webcam is causing you a problem and you don't use it at all just disable it in the bios, no USB Composite Device to worry about as the camera doesn't exist as far as windows is concerned.

Offline

 

#12 2007-12-26 8:41:04 am

NoeeePC4MeWellMaybe...
Senior Member
Registered: 2007-09-22
Posts: 232

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Steep, if you do not appy the XP SP2 patch, in order for the CPU to reach C3 "Deep Sleep", you'll have to disable the card reader, and the webcam, and also not plug a device into your USB ports.

Another update:

Battery meter switched to 20% remaining capacity after 2hrs 51 minutes w/WiFi On. There was a 5 minute period of heavy/constant WiFi usage when I copied a 900MB file from the network to a SDHC card. Unless the battery meter is acting up, I should get over 3 hrs w/WiFi On.

I can definitely say that my fanless eeePC feels MUCH cooler than it has ever been after being powered on for 5 hrs straight.

Final Update:

The battery completely drained, causing eeePC to shut itself off @ 3 hrs 15 minutes. As mentioned earlier, that's with Wifi on, and the screen brightness set at 50% smile. I may have been able to get a minute or two more if I did not transfer that large file over WiFi to the SD card  (which was only inserted for the duration of the file transfer).

Last edited by NoeeePC4MeWellMaybe... (2007-12-26 9:21:14 am)

Offline

 

#13 2007-12-26 12:15:26 pm

kkthomas
Member
From: Hong Kong
Registered: 2007-12-23
Posts: 14

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Very Good Job !! I will try it !

Offline

 

#14 2007-12-26 1:24:58 pm

ohyes
Senior Member
Registered: 2007-11-02
Posts: 306
Website

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Dear NoEEEPCwellmaybe,

Could you speak more to the reduction in fan use?  One of my few complaints about the Eee is the fan coming on and its noise.

If this patch and procedure can reduce fan use, I think it's very important and should go in the wiki with that as a caption (not to discount the other merits).

Thanks for your offering!


John

old: 4g Pearl - 1GB DDR2 - WinXP Pro
new: 1g 1000H

Offline

 

#15 2007-12-26 2:58:51 pm

astern
Member
From: San Francisco, CA
Registered: 2007-12-26
Posts: 21

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Been lurking this forum for some time and finally registered... Thanks again for all of the wonderful tips


The C3 state enabler hotpatch is the single best trick to enable longer run-times and less fan usage. It's surprising that Asus didn't include it in the driver CD package.

This post should be sticky'ed for all WinXP users to see.


Andrew Stern
4g Surf - 2GB DDR2 - WinXP Pro

Offline

 

#16 2007-12-26 4:01:25 pm

jdmacken
Member
Registered: 2007-12-15
Posts: 16

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Thanks NoeeePC4MeWellMaybe... for the work you have done for everyone.  I love this forum.  I also agree this is sticky material. 

Jeff

8g pearl white with xp2 and loving it

Offline

 

#17 2007-12-26 6:46:12 pm

Bremen
Senior Member
From: Texas
Registered: 2007-11-17
Posts: 542

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Did it, and it works great....... THANKS!


Gateway LT2104u - 2 gig ram
Windows 7 Starter
iPad
My Music http://www.bremencole.com

Offline

 

#18 2007-12-26 7:00:35 pm

Neodudeman
Senior Member
Registered: 2007-12-17
Posts: 190

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Very interesting. Good work.

Do we know if this problem effects the original OS, Xandros?

Last edited by Neodudeman (2007-12-26 7:01:10 pm)


I love my Asus,
It is with me everywhere,
And does everything.

Offline

 

#19 2007-12-26 7:44:33 pm

ziddan
Senior Member
Registered: 2007-11-18
Posts: 115

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

Installed it, dont know if i will notice any change though as i havnt had my eee for a week yet so i dont know what the battery time is really like.

Offline

 

#20 2007-12-26 9:31:16 pm

NoeeePC4MeWellMaybe...
Senior Member
Registered: 2007-09-22
Posts: 232

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

ohyes wrote:

Could you speak more to the reduction in fan use?  One of my few complaints about the Eee is the fan coming on and its noise.

I actually disabled my eee PC fan by disconnecting the fan connecter under the keyboard tray, as outlined by Daijoubu in 'The Test' topic. I was using the default Xandros OS at that point in time.

I'm unsure if it will reduce how often the CPU fan comes on after it has initially started since the BIOS turns the fan on once the CPU temp reaches 55 degrees, and does not turn it off until it drops to ~46 degrees, which for most of our eeePC's will be an impossible fan halting temperature reach.  BUT, the XP patch+tray app should increase the time it takes the fan to come on after a "cold boot".

When I posted the battery life results earlier today, my eeePC was idling around 55 degrees C after 5+hrs of light-average WiFi use. In the past, having the fanless eeePC on for 4-5 hrs straight, never moving it a cooler surface, would result in an idle temp of about 62 degrees C and the case would feel very very warm.

Neodudeman wrote:

Do we know if this problem effects the original OS, Xandros?

When I had Xandros installed I did notice that /proc/acpi/processor/CPU0/power would occasionally report that the CPU was in a C3 state, but I wouldn't know if its C3 mode switching is as aggressive as XP's.

One thing to keep in mind, is that even with the XP patch & tray app, whenever you are actively using a USB device C3 Deep Sleep state can never be obtained. So If you make a habit out of constantly playing movies from your SD card, your battery life will likely remain unchanged.

Offline

 

#21 2007-12-26 11:40:48 pm

ohyes
Senior Member
Registered: 2007-11-02
Posts: 306
Website

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

What a helpful thread.  I did the whole thing:

--disabled the fan (using The Test thread instructions--note that the initial instructions were wrong re which connector to remove and were later corrected in the same thread--remove the THIRD connector not the second)--

--installed the Deep Sleep hotfix

--installed the webcam tray icon

The only hitch was in disabling the USB composite driver.  I had two of them, one for my Logitech VX Nano mouse.  I disabled that one first.  Got it right the second time.

Thanks again for this.  I'm delighted to lose the fan and be able to keep the temperature down, while increasing battery life.  I'd gotten spoiled by my very quiet Macbook, and was dismayed with the Eee fan noise.  Now, noisy fan free living again!


John

old: 4g Pearl - 1GB DDR2 - WinXP Pro
new: 1g 1000H

Offline

 

#22 2007-12-27 12:01:58 am

fazz33
Senior Member
Registered: 2007-11-11
Posts: 204

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

I just want to ask, What software do you guys use to record battery run time? Or is it just a sit and time with a clock type of thing?


EEE PC 901 Black

Offline

 

#23 2007-12-27 12:15:40 am

NoeeePC4MeWellMaybe...
Senior Member
Registered: 2007-09-22
Posts: 232

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

ohyes, you can use the webcam tray app to disable the correct USB Composite Device, since it only enables or disables a device with a hardware ID matching that of the eeePC camera.

fazz33, since my battery tests are with WiFi enabled, I disable, then re-enable the WiFi adaptor after switching to battery power. That way I can use the windows or atheros WiFi adaptor duration/uptime counter as an accurate battery life timer.

Offline

 

#24 2007-12-27 12:31:39 am

ohyes
Senior Member
Registered: 2007-11-02
Posts: 306
Website

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

NoeeePC4MeWellMaybe... wrote:

ohyes, you can use the webcam tray app to disable the correct USB Composite Device, since it only enables or disables a device with a hardware ID matching that of the eeePC camera.

Ah.  I hadn't read closely enough, and see now that the tray app replaces the manual disabling of the USB device.  By the way, it appears--at least on my system--to require an admin account for the tray app to be able to enable the webcam.  I am not a Windows expert, but read some time ago that one is safer to use a limited account for day to day use.  But I found that I couldn't run the tray app from my limited account.

Last edited by ohyes (2007-12-27 12:42:59 am)


John

old: 4g Pearl - 1GB DDR2 - WinXP Pro
new: 1g 1000H

Offline

 

#25 2007-12-27 12:53:58 am

NoeeePC4MeWellMaybe...
Senior Member
Registered: 2007-09-22
Posts: 232

Re: Want a little more battery life? CPU, it's time for a 'Deep Sleep' ...

I totally forgot about non-admin users.

If you still want to use the tray app in a non-admin account, you can do do the following:

- Right click on the eeepccamtray shortcut (or create one if you haven't done so already) and click on Properites.

- In the 'Shortcut' tab, click on Advanced

- In the Advanced Properties windows check 'Run with different credentials', then click Okay, and close the shortcut properties window.


Double clicking on the eepccamtray shortcut will now display the 'Run As' window, which will allow you to run the application as the Administrator.

Last edited by NoeeePC4MeWellMaybe... (2007-12-27 8:42:24 am)

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson