Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: clear cmos  (Read 2317 times)

0 Members and 1 Guest are viewing this topic.

vicking

  • Guest
clear cmos
« on: July 11, 2005, 02:12:55 AM »
how can i clear the cmos for my laptop Dell latitude D505

Cary_GRant

  • Guest
Re: clear cmos
« Reply #1 on: July 11, 2005, 08:00:12 AM »
pop out the CMOS battery (on your lappy it's actually motherboard specific and does not use the main laptop battery as most laptops do), anyways you actually have to crack open the back and locate the CMOS battery, then pop it out for about 10 minutes or so, also be sure your main battery is not installed when you remove the CMOS battery.
« Last Edit: July 11, 2005, 08:17:01 AM by Cary_GRant »

Cary_GRant

  • Guest
Re: clear cmos
« Reply #2 on: July 11, 2005, 08:03:15 AM »
.....But if you're the adventurous type, here goes :)

Add the following code in MFC application or make Win32 Dynamic link library and then add the code. It works fine on Win9x only,
it was not tested on xp/nt and hope it wont work on NT based tech.


int __stdcall Clear_Cmos( )
{
_outp(0x70,0x2E);   //password will get cleared
_outp(0x71,0xFF);

/* if you want to clear whole CMOS
use following code
for(int i=0;i<256;i++)  // whole cmos will get cleared
{
  _outp(0x70,i);
  _outp(0x71,i);

}
*/
return 0;
}

that will totally wipe out your CMOS.