Benny, Excellent work!
The EGPIO is reset when the CPU asserts reset_out but is unchanged otherwise. The CPU definitely does that on resume, but I don't remember if it does during sleep or not. I think you're right -- if the battery is fully charge you should get reasonable measurements from the DC input. The battery acts like a giant capacitor -- so you won't get fast responses to changes in power consumption, but it should be fine for steady-state measurements. I would get a plug and a jack to build a measurement point rather than cutting the original power cable. Your choice. Jamey > -----Original Message----- > From: Benny Sj�strand [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 2001 3:53 AM > To: Hicks, Jamey > Cc: [EMAIL PROTECTED] > Subject: Re: iPAQ power consumption! > > > > Yesterday i did some few modifications to the kernel trying > to optimize > powerconsumption: > - Turning off sound stuff via EGPIO. > - Turning off IR port when it's not used. > - Setting the KADP EADP in sleep mode, NOTE: in the SA1110 > manual it says > that this bit's can be set optionally enabled in sleep mode, but they > should be set self refresh bit is on. But if i enable > the KADP and EADP while it's running it hangs, i did not find out > why yet (my iPAQ is probably broken ...) > - Turn off OPT_NVRAM_ON and OPT_ON vi EGPIO > NOTE: none off those things above are currently done in kernel > when the iPAQ is set into sleep mode. > > Then a question, are the EGPIO pins automatically set to > "low" when the > iPAQ is to sleep mode, or do we need to take of this ? > > Usually when i leave my office i set my iPAQ into sleep mode, > when come > the next day on morning i turn it on and the battery level > (returned from > /dev/misc/apm_bios) has gone down from 100% to ~ 25%. > > Today morning with the modification the battery level > indication was ~ 78% > -;) and i hope that this sign that i am on the right way. > > > I have a trick for that, honed over the last couple of years of > > reflashing ipaqs: > > > > Just use your fingernail to pry loose the edge of the back > cover of the > > ipaq. No scratches. It's difficult with early ipaqs but easy with > > recent ones. > > To do a real test i need to do some meusure the power > consumption, so i > will open it. An other idea came up into my mind, if the > battery is full > charged would it make send to meusure the power consumption via the DC > jacket ?, that's much easier to cut the DC cable and insert the > multimeter. I and supose that if it's conected via a AC > adapter it should > take all it's power from there. > > /Benny > > _______________________________________________ http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm Please visit the above address for information on this list.
