kossak Posted January 2, 2012 Share Posted January 2, 2012 Olá a todos (de Portugal)! Estou a tentar por o shutdown a funcionar (e mais tarde o sleep, que também não funciona) no meu hackintosh HP Elitebook 8540p. O Shutdown no meu Lion demora uns 15 segundos ou mais e mostra esta mensagem na consola: "PowerOff still waiting on AppleUSBEHCI" Cá vai o meu DSDT (devices EHC1 e EHC2): Device (EHC1) { Name (_ADR, 0x001D0000) OperationRegion (EHCX, PCI_Config, 0x54, 0x10) Field (EHCX, AnyAcc, NoLock, Preserve) { , 15, PMES, 1, Offset (0x0E), PIMP, 1, PMSK, 8 } Method (_REG, 2, NotSerialized) { If (LAnd (LEqual (Arg0, 0x02), LEqual (Arg1, 0x01))) { Store (0x01, PMSK) Store (0x01, PIMP) } } Device (RHUB) { Name (_ADR, 0x00) Device (PRT0) { Name (_ADR, 0x01) } Device (PRT1) { Name (_ADR, 0x02) } } Method (_PRW, 0, NotSerialized) { Return (UPRW (0x0D, 0x03)) } Name (_S3D, 0x02) Name (_S4D, 0x03) Scope (RHUB.PRT0) { Method (_UPC, 0, Serialized) { Return (EUPC) } Method (_PLD, 0, Serialized) { Return (EPLD) } Device (HPT0) { Name (_ADR, 0x01) } Device (HPT1) { Name (_ADR, 0x02) } Device (HPT2) { Name (_ADR, 0x03) } Device (HPT3) { Name (_ADR, 0x04) } Device (HPT4) { Name (_ADR, 0x05) Method (_EJD, 0, NotSerialized) { Return ("\\_SB.PCI0.RP02.ECF0") } } Device (HPT5) { Name (_ADR, 0x06) } Device (HPT6) { Name (_ADR, 0x07) } Device (HPT7) { Name (_ADR, 0x08) } } Method (_DSM, 4, NotSerialized) { Store (Package (0x0F) { "device-id", Buffer (0x04) { 0x34, 0x3B, 0x00, 0x00 }, "built-in", Buffer (0x01) { 0x00 }, "AAPL,clock-id", Buffer (0x01) { 0x01 }, "device_type", Buffer (0x05) { "EHCI" }, "AAPL,current-available", 0x04B0, "AAPL,current-extra", 0x02BC, "AAPL,current-in-sleep", 0x03E8, Buffer (0x01) { 0x00 } }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } } Device (EHC2) { Name (_ADR, 0x001A0000) OperationRegion (EHCX, PCI_Config, 0x54, 0x10) Field (EHCX, AnyAcc, NoLock, Preserve) { , 15, PMES, 1, Offset (0x0E), PIMP, 1, PMSK, 8 } Method (_REG, 2, NotSerialized) { If (LAnd (LEqual (Arg0, 0x02), LEqual (Arg1, 0x01))) { Store (0x01, PMSK) Store (0x01, PIMP) } } Device (RHUB) { Name (_ADR, 0x00) Device (PRT0) { Name (_ADR, 0x01) } Device (PRT1) { Name (_ADR, 0x02) } } Method (_PRW, 0, NotSerialized) { Return (UPRW (0x0D, 0x03)) } Name (_S3D, 0x02) Name (_S4D, 0x03) Scope (RHUB.PRT0) { Method (_UPC, 0, Serialized) { Return (EUPC) } Method (_PLD, 0, Serialized) { Return (EPLD) } Device (HPT0) { Name (_ADR, 0x01) Method (_UPC, 0, Serialized) { Return (EUPC) } Method (_PLD, 0, Serialized) { Return (EPLD) } } Device (HPT1) { Name (_ADR, 0x02) Method (_UPC, 0, Serialized) { Return (EUPC) } Method (_PLD, 0, Serialized) { Return (EPLD) } } Device (HPT2) { Name (_ADR, 0x03) Method (_UPC, 0, Serialized) { Return (EUPC) } Method (_PLD, 0, Serialized) { Return (EPLD) } } Device (HPT3) { Name (_ADR, 0x04) } Device (HPT4) { Name (_ADR, 0x05) Method (_UPC, 0, Serialized) { Return (EUPC) } Method (_PLD, 0, Serialized) { Return (EPLD) } } Device (HPT5) { Name (_ADR, 0x06) } } Method (_DSM, 4, NotSerialized) { Store (Package (0x0F) { "device-id", Buffer (0x04) { 0x34, 0x3B, 0x00, 0x00 }, "built-in", Buffer (0x01) { 0x00 }, "AAPL,clock-id", Buffer (0x01) { 0x02 }, "device_type", Buffer (0x05) { "EHCI" }, "AAPL,current-available", 0x04B0, "AAPL,current-extra", 0x02BC, "AAPL,current-in-sleep", 0x03E8, Buffer (0x01) { 0x00 } }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } } Alguém sabe como resolver o problema? Obrigado! Quote Link to comment Share on other sites More sharing options...
Cassio Posted January 2, 2012 Share Posted January 2, 2012 Ele desliga depois de 15 segundos ou não? Você aplicou o patch "shutdown"? Quote ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: OS X 10.8.4 • Linux Mint 15 • Windows 8 Link to comment Share on other sites More sharing options...
kossak Posted January 2, 2012 Author Share Posted January 2, 2012 Ele desliga depois de 15 segundos ou não? Você aplicou o patch "shutdown"? Sim, apliquei. Ele desliga correctamente ao fim de 15 segundos (ou mais), assim como reinicia correctamente ao fim de 15 segundos. O meu problema maior é que provavelmente este problema com o USB impede o Sleep de funcionar bem. Provavelmente é um problema com o driver e talvez se resolvesse implementando / alterando um método no DSDT ou mudando o device-id, mas nao sei qual... Mais logo posto os meus dados ioreg assim como o meu DSDT completo, caso ajude. Obrigado, LG Quote Link to comment Share on other sites More sharing options...
Cassio Posted January 2, 2012 Share Posted January 2, 2012 Pro sleep funcionar você precisa ter a gestão de energia a funcionar (não usar NullCPUPowerManagement). Provável que precise do "lapic kernel" (Taptun) pra dispensar o cpus=1 http://www.osx86.net/view/1945-os_x_lion_kernel_lapic_native.html Quote ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: OS X 10.8.4 • Linux Mint 15 • Windows 8 Link to comment Share on other sites More sharing options...
kossak Posted January 2, 2012 Author Share Posted January 2, 2012 Nao uso cpu=1... o meu Intel i5 540M é bem suportado, todas as 4 cores são detectadas. Quote Link to comment Share on other sites More sharing options...
Cassio Posted January 2, 2012 Share Posted January 2, 2012 É que a maioria dos HP com Nehalem e Sandy Bridge precisam do kernel lapic pra funcionar sem cpus=1, achei que o seu também fosse assim. Quote ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: OS X 10.8.4 • Linux Mint 15 • Windows 8 Link to comment Share on other sites More sharing options...