Jump to content

How can I get my laptop to shutdown on lid close?


pdoubleya
 Share

6 posts in this topic

Recommended Posts

I have it sleeping on close, but when it sleeps the fan stays on and the power light stays on. Right now I'm tired of tinkering (although help with that would also be appreciated), and would like to make it shutdown on lid close. This is from my dsdt:

Device (LID0)
		{
				Name (_HID, EisaId ("PNP0C0D"))
				Name (_PRW, Package (0x02)
				{
						0x1B,
						0x03
				})

				Method (_LID, 0, NotSerialized)					
				{
						XOr (LPOL, One, Local0)							  
						If (Local0)
						{								  
								Notify (SLPB, 0x80)			// <------------------   change this?								  
						}
						Else
						{
								Store (One, LPOL)
						}

						Return (LPOL)
				}
		}

 

I guess I have to change the Notify line, but what to? Any help would be appreciated. I'm running 10.6.8 on a Toshiba Satellite A200 if that helps.

Link to comment
Share on other sites

nothing wrong there.

u need to add

Device (PNLF) to the _SB.. find it in dsdt editor patches

 

the sleep not working is likely something else.. post dsdt in .zip

 

Thanks for the tip, I'll give it a try. DSDT attached.

 

------------------------------

 

Update 1: This is a more recent DSDT.

 

-------------------------------

 

Update 2: I added what you suggested and it still does the same thing. I close the lid and I hear the hard drive shutdown and the laptop is 'sleeping' but the fan is still on and the power light is still on. When I open the lid and press power nothing happens, I have to hold down the power button to really shut down the laptop then reboot.

dsdt.zip

Link to comment
Share on other sites

This one?

 

Device (EHCI)
{
   Name (_ADR, 0x001A0007) /*<-----------------------look for the correct address, ADR, in each DSDT */
   OperationRegion (UFCS, PCI_Config, 0x54, 0x04)
   Field (UFCS, DWordAcc, NoLock, Preserve)
   {
	    ,   15,
    PMES,   1
   }

   Device (HUB2)
   {
    Name (_ADR, Zero)
    Device (PRT1)
    {
	    Name (_ADR, One)
    }

    Device (PRT2)
    {
	    Name (_ADR, 0x02)
    }

    Device (PRT3)
    {
	    Name (_ADR, 0x03)
    }

    Device (PRT4)
    {
	    Name (_ADR, 0x04)
    }
   }

   Name (_PRW, Package (0x02)
   {
    0x0D,
    0x03
   })
   Method (_S3D, 0, NotSerialized)
   {
    Return (0x03)
   }

   Method (_S4D, 0, NotSerialized)
   {
    Return (0x03)
   }

   Method (_DSM, 4, NotSerialized)
   {
    Store (Package (0x07)
	    {
		    "AAPL,current-available",
		    0x05DC,
		    "AAPL,current-extra",
		    0x03E8,
		    "AAPL,current-in-sleep",
		    0x0BB8,
		    Buffer (One)
		    {
			    0x00
		    }
	    }, Local0)
    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
    Return (Local0)
   }
}

Link to comment
Share on other sites

 Share

×
×
  • Create New...