Mac OS X em Hardware x86 Arquivo Técnico 2008–2024
InfiniteMac OSx86 › Arquitetura Base OSx86 10.X e Bootloaders › Reconhecendo Controladoras USB UHCI / EHCI como Integradas (Built-in) via Patch de DSDT para Repouso e Despertar Perfeitos
496,156 reads · 2009-08-30 – 2011-09-26
Dossiê Técnico Núcleo 10.X DSDT Gigabyte G31M / P35 USB / EHCI

Reconhecendo Controladoras USB UHCI / EHCI como Integradas (Built-in) via Patch de DSDT para Repouso e Despertar Perfeitos

Dossiê técnico traduzido para Português (Brasil) · Comandos de terminal, nomes de kexts, nós ACPI e flags de boot preservados exatamente como no originalVer original em inglês (Original English) →

Primeiro os problemas; depois as soluções.

Minhas portas USB 1.1 (UHCI) e USB 2.0 (EHCI) apareciam no Perfil do Sistema (System Profiler) como "slots de expansão" (Expansion Slots). Isso me causava 2 problemas principais: primeiro, eu era obrigado a apertar o botão físico de energia do gabinete para despertar o computador do repouso (Sleep); segundo, se houvesse um pendrive ou HD USB conectado quando o computador entrava em repouso, aparecia o aviso de "remoção inadequada de dispositivo" assim que o sistema despertava.

Combinei dois patches de DSDT diferentes que encontrei: um corrigia as controladoras UHCI mas não a EHCI, enquanto o outro fazia exatamente o oposto.

Combinei o patch de DSDT para UHCI encontrado aqui: http://www.insanelymac.com/forum/index.php?showtopic=16… ↗

com o patch para EHCI encontrado aqui:
http://www.insanelymac.com/forum/index.php?showtopic=15… ↗

Agora consigo despertar o computador do repouso com um simples clique no meu mouse USB e não preciso mais ejetar unidades USB antes de colocar o computador para dormir. Além disso, a mensagem de erro "controller will be unloaded across sleep" desapareceu completamente ao inicializar em modo verbose.

Funciona perfeitamente na GA-EP35-DS3P e deve funcionar na maioria das placas-mãe Gigabyte com ponte sul ICH9 e ICH10, já que os Device IDs foram ajustados para corresponder aos do ICH10.

Atenção também ao dispositivo USB com endereço 0x001D0003: na minha placa ele se chama US31 — não edite esse dispositivo.

Colaboradores Creditados (33)
@wwbsox (44)@Snow (23)@EnzoFX (13)@kDawg (12)@Ianxxx (8)@xwin78 (6)@osxfr33k (6)@twr (5)@Jedric (5)@sk1nhd33t (4)@stayupforever90 (4)@CyCLoBoT (3)@mormegil (2)@kramer2k (2)@ohwhyme (2)@sylvester328 (2)+17 more
Referência de Hardware
Pendrives USB 3.2 de inicialização ↗ Coolers e refrigeração ↗ Placas-mãe Gigabyte ↗

Notas de Campo e Relatos da Comunidade

146 respostas técnicas selecionadas a partir de 160 postagens originais

Nota de Campo #1 @Ianxxx 2009-08-31

Show de bola essas correções via DSDT — nada de precisar modificar kexts do sistema a cada atualização!

Atualização do Autor #1 @wwbsox 2009-08-31 ↳ Re: @Ianxxx

Os créditos pela correção de EHCI vão para o Apex.

Aproveitando o ensejo: a correção de SATA mostrada no primeiro link funciona perfeitamente mesmo em placas-mãe ICH9 como a minha. O controlador AHCI agora aparece identificado como ICH10 no Perfil do Sistema, em vez de "Unknown AHCI Controller". Não havia uma seção chamada SATA no meu DSDT, mas o dispositivo IDE1 possuía exatamente o mesmo endereço, então adicionei o método `_DSM` lá dentro e funcionou de primeira.

Nota de Campo #2 @Snow 2009-08-31

Eu enfrentava exatamente o mesmo problema: às vezes meu teclado e mouse paravam de funcionar no boot (o que contornei temporariamente com aquelas chaves de USB no com.apple.Boot.plist).
Porém, minhas portas USB ainda aparecem como "Slot de Expansão" (Expansion Slot) e sou obrigado a usar o botão liga/desliga do gabinete para acordar o PC do repouso.
Adicionei o código ao meu .dsl, mas recebo estes erros ao tentar compilar (mesmo já tendo o método DTGP no meu DSDT):

/Users/Snow/Desktop/dsdt.dsl  4032:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4066:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4100:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4134:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4188:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4222:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4267:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4306:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

Alguma ideia do motivo? Obrigado!

Nota de Campo #3 @Ianxxx 2009-08-31 ↳ Re: @Snow
@SnowEu enfrentava exatamente o mesmo problema: às vezes meu teclado e mouse paravam de funcionar no boot... Adicionei o código ao meu .dsl, mas recebo estes erros ao tentar compilar (mesmo já tendo o método DTGP no meu DSDT)...

Olá! Anexei o meu DSDT (para a GA-P35-DS3L); se você pesquisar por `DTGP` nele, verá o escopo exato onde o método deve ficar posicionado para ser acessível por todos os dispositivos.

Nota de Campo #4 @Snow 2009-08-31

Tentei reposicionar o método DTGP (ele realmente estava dentro do escopo errado), mas agora apareceu este outro erro:

Bendito DSDT!

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20090521 [Jun 22 2009]
Copyright (C) 2000 - 2009 Intel Corporation
Supports ACPI Specification Revision 3.0a

/Users/Snow/Desktop/dsdt.dsl   203:         OSTP ()
Error    4063 -          Object does not exist ^  (OSTP)

/Users/Snow/Desktop/dsdt.dsl   254:             }Method         Notify (\_SB.PWRB, 0x02)
Error    4095 -                                       ^ syntax error, unexpected PARSEOP_METHOD, expecting $end


Elapsed time for major events


Miscellaneous compile statistics

        456 : Parse nodes
         82 : Namespace searches
         47 : Named objects
          4 : Control methods
         10 : Memory Allocations
     188850 : Total allocated memory
          0 : Constant subtrees folded

ASL Input:  /Users/Snow/Desktop/dsdt.dsl - 5646 lines, 189478 bytes, 96 keywords
Compilation complete. 2 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
Atualização do Autor #2 @wwbsox 2009-08-31 ↳ Re: @Snow

DSDT para a EP35-DS3P

@Snow

Esse último erro é apenas um pequeno erro de sintaxe: provavelmente faltou uma vírgula ou uma chave de fechamento.
Dê uma conferida com atenção nos detalhes.

Compare com o meu arquivo em anexo.

Nota de Campo #5 @Snow 2009-08-31

Achei o culpado! Eu tinha colocado uma chave `}` a mais no lugar errado; já corrigi e compilou limpo.

Obrigado a todos pelas dicas! Vou testar o novo .aml na próxima reinicialização.

Ah, e com esta correção no DSDT eu ainda preciso manter estas chaves no meu com.apple.Boot.plist?

<key>EHCIacquire</key>
<string>Yes</string>
<key>UHCIreset</key>
<string>Yes</string>
<key>USBBusFix</key>
<string>Yes</string>
Nota de Campo #6 @aed0101@hotmail 2009-08-31

Muito obrigado! Funcionou como mágica (embora tenham aparecido alguns avisos de sintaxe que vou limpar depois).

Uma dúvida relacionada: uso um adaptador USB Bluetooth externo (dongle) para conectar meu mouse sem fio Mighty Mouse. Nas Preferências do Sistema, a opção "Permitir que dispositivos Bluetooth despertem este computador" fica esmaecida (desativada) porque o adaptador Bluetooth é detectado como externo e não como integrado (Built-in). Alguém sabe se existe alguma maneira de forçar o Bluetooth a aparecer como Built-in via DSDT ou EFI string, assim como fazemos com o USB e a Ethernet?

Atualização do Autor #3 @wwbsox 2009-08-31 ↳ Re: @aed0101@hotmail

@Snow: Eu não uso nenhuma dessas chaves de USB no meu com.apple.Boot.plist e tudo está funcionando perfeitamente apenas com o DSDT.

Nota de Campo #7 @Snow 2009-08-31

Muito bem: funcionou para os meus barramentos de Alta Velocidade EHCI (que agora aparecem como Integrados / Built-in), mas um dos barramentos USB normais UHCI ainda aparece como Slot de Expansão.

Atualização: Na verdade, apenas o barramento específico onde meu teclado e mouse estão conectados continua aparecendo como Slot de Expansão; todos os outros barramentos (incluindo os de alta velocidade) já aparecem como Built-in!

Nota de Campo #8 @Snow 2009-08-31

Como apenas 1 barramento USB continuava aparecendo como Slot de Expansão (com ID 0x2937), fui conferir os endereços no meu DSDT:

Barramento USB pendente:

Localização do Controlador Host: Slot de Expansão (Uitbreidingssleuf)
Driver do Controlador Host: AppleUSBUHCI
PCI Device ID: 0x2937
PCI Revision ID: 0x0002
PCI Vendor ID: 0x8086
Número do Barramento: 0x1a

comparado com o corrigido:

Localização do Controlador Host: Interface USB Integrada (Ingebouwde USB-interface)
Driver do Controlador Host: AppleUSBUHCI
PCI Device ID: 0x3a36
PCI Revision ID: 0x0002
PCI Vendor ID: 0x8086
Número do Barramento: 0x5d

Atualização: Descobri! Os endereços `Name (_ADR, ...)` estavam invertidos entre `USB3` e `US31` no meu arquivo! Corrigi a ordem e agora está tudo 100% Built-in. Já removi aquelas flags extras do com.apple.Boot.plist:

Localização do Controlador Host: Interface USB Integrada
Driver do Controlador Host: AppleUSBUHCI
PCI Device ID: 0x3a37
PCI Revision ID: 0x0002
PCI Vendor ID: 0x8086
Número do Barramento: 0x1a

Finalmente posso usar o botão de repouso do meu teclado para acordar o computador (exatamente como no Windows)!

Muito obrigado a todos pela orientação!

Nota de Campo #9 @mormegil 2009-08-31

Parabéns (Gelukwens)!

Eu já tentei de tudo na minha máquina e ainda não consigo nem fazê-la entrar em repouso (sleep), quanto mais despertar!

Atualização do Autor #4 @wwbsox 2009-09-01 ↳ Re: @mormegil

@mormegil

Você está usando a SleepEnabler.kext compatível com o Snow Leopard? Também é necessário usar a NullCPUPowerManagement.kext junto com ela, pois a SleepEnabler entra em conflito com o gerenciamento de energia nativo caso não esteja configurado via DSDT. Não tenho exatamente o seu modelo de placa-mãe, mas já li muitos relatos de usuários que a possuem e parece ser uma excelente placa para OSx86.

Nota de Campo #10 @Snow 2009-09-01

Mormegil, confira duas vezes se você está com todas as kexts corretas carregadas para o Snow Leopard:

fakesmc
IOAHCIBlockStorageInjector
NullCPUPowerManagement
OpenHaltRestart
PlatformUUID
SleepEnabler

além de um DSDT adequado e os caches mkext reconstruídos pelo Kext Utility!

Nota de Campo #11 @Ianxxx 2009-09-01

"Atualização: Descobri! Os endereços Name (_ADR, ...) estavam invertidos entre USB3 e US31."

Eu tinha esquecido desse detalhe: no meu arquivo original eles também estavam na ordem inversa! Você por acaso usou o DSDT Patcher GUI 0.2 Beta 5 do Windows para gerar o seu dsdt.aml base?

Nota de Campo #12 @mormegil 2009-09-01 ↳ Re: @wwbsox
@wwbsox@mormegil Você está usando a SleepEnabler.kext compatível com o Snow Leopard? Também é necessário usar a NullCPUPowerManagement.kext junto com ela, pois a SleepEnabler entra em conflito com o gerenciamento de energia...

Finalmente descobri o culpado pelo repouso não funcionar! Era a minha controladora secundária JMicron que estava configurada como IDE em vez de AHCI no BIOS! :

Essa placa realmente tem uma compatibilidade fantástica com o OS X (assim como quase todas as placas Gigabyte P45): SATA e Ethernet funcionam nativamente, o áudio ficou perfeito com o patch na AppleHDA e agora tenho repouso em RAM (suspend-to-RAM / S3) funcionando 100%!

Atualização do Autor #5 @wwbsox 2009-09-01 ↳ Re: @mormegil

Utilizei o ACPI Patcher no Windows porque ele permite aplicar várias correções automatizadas. Os nomes dos dispositivos — como (USB3) ou (US31) — são arbitrários; o que realmente importa é o endereço (`_ADR`).

Como destaquei no post original: "Preste muita atenção ao dispositivo USB com o endereço 0x001D0003 — no meu caso ele se chamava US31; não edite esse dispositivo."

Em outra nota: alguém já viu alguma kext IOATA que funcione em modo de 64 bits? Eu gostaria muito de poder usar a controladora secundária sem depender exclusivamente de AHCI.

Nota de Campo #13 @kDawg 2009-09-01 ↳ Re: @wwbsox
@wwbsoxPrimeiro os problemas, depois as soluções. Minhas portas USB 1.1 (UHCI) e USB 2.0 (EHCI) apareciam no Perfil do Sistema como "Slots de Expansão"...

Posso pedir para você anexar o seu arquivo DSDT completo? Estou muito interessado em ver exatamente como você configurou os dispositivos para despertar o computador pelo mouse USB.

Nota de Campo #14 @Ianxxx 2009-09-01 ↳ Re: @kDawg
@kDawgPosso pedir para você anexar o seu arquivo DSDT completo? Estou muito interessado em ver exatamente como você configurou os dispositivos para despertar o computador pelo mouse USB.

Você pode baixar o meu na página 1 deste tópico — o repouso e o despertar pelo teclado ou mouse estão funcionando perfeitamente nele.

Nota de Campo #15 @kDawg 2009-09-01 ↳ Re: @Ianxxx
@IanxxxVocê pode baixar o meu na página 1 deste tópico — o repouso e o despertar pelo teclado ou mouse estão funcionando perfeitamente nele.

Aquele trecho na página 1 mostra apenas a seção USB/EHCI isolada. Eu tenho a mesma placa-mãe e, mesmo com o patch USB, não consigo despertar pelo mouse nem pelo teclado; deve haver alguma outra diferença no restante do seu DSDT ou nas configurações do seu BIOS que está passando despercebida aqui.

Atualização do Autor #6 @wwbsox 2009-09-01 ↳ Re: @kDawg

Atualização: adicionei o meu arquivo DSDT.aml completo ao post original. Ele já contém toda a seção USB editada, bem como a seção IDE1 com a injeção dos Device IDs do ICH10.

Nota de Campo #16 @kramer2k 2009-09-02

Também estou enfrentando o problema de não conseguir despertar o PC pelo teclado ou mouse USB. Todas as minhas portas aparecem listadas sob USB e USB de Alta Velocidade como integradas, mas não acordam o sistema.

Além disso, na seção Serial-ATA do Perfil do Sistema, meus discos aparecem normalmente, mas o nome do chipset fica em branco (onde deveria aparecer ICH7, ICH9, ICH10 etc.). Isso se corrige via DSDT ou kext?

Vale notar que não sou iniciante (instalo o OSx86 desde a época da imagem deadmoo do Tiger 10.4.1!), mas confesso que fiquei sem saída nessa questão do despertar USB...

Deixo meu DSDT em anexo caso alguém possa analisar.

Especificações:
GA-P31-DS3L (ICH7)
ALC888
Core 2 Duo E7200 @ 3.42 GHz

Nota de Campo #17 @Snow 2009-09-02

Maravilha, wwbsox! Muito obrigado pela dica do dispositivo IDE1: apliquei o patch lá e agora minha controladora SATA aparece identificada como ICH10 no Perfil do Sistema!
Você poderia me mostrar onde fica a seção de injeção gráfica (GFX) no seu DSDT ou me explicar como injetar o código da minha GeForce 8800 GT manualmente?
Prefiro fazer a edição manual no código-fonte em vez de rodar patchers automáticos.

Comparação antes e depois da injeção do ID ICH10:

ANTES

DEPOIS

Nota de Campo #18 @kDawg 2009-09-02 ↳ Re: @Snow
@SnowMaravilha, wwbsox! Muito obrigado pela dica do dispositivo IDE1: apliquei o patch lá e agora minha controladora SATA aparece identificada como ICH10 no Perfil do Sistema! Você poderia me mostrar onde fica a seção de injeção gráfica (GFX) no seu DSDT ou me explicar como injetar o código da minha GeForce 8800 GT manualmente?

Essa parte é específica de cada placa de vídeo: depende da quantidade de VRAM, da combinação de saídas de vídeo (NVCAP) e do endereço do slot PCIe onde ela está espetada. Adicionei comentários nas linhas que você precisa conferir (use o utilitário `gfxutil` para confirmar o caminho PCI da sua placa).

Aqui está o bloco que deve ser inserido dentro do escopo `Device (PCI0)`. Este código é exatamente para uma NVIDIA GeForce 8800 GT de 512 MB com duas saídas DVI:

            Device (PEGP)
            {
                Name (_ADR, 0x00010000) //<-- Localização no barramento PCI (importante)
                Method (_STA, 0, NotSerialized)
                {
                    Return (0x0F)
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (Package (0x02)
                    {
                        0x09, 
                        0x05
                    })
                }

                Device (GFX1)
                {
                    Name (_ADR, Zero)
                    Name (_SUN, 0x0B)
                    Method (_PRW, 0, NotSerialized)
                    {
                        Return (Package (0x02)
                        {
                            0x0B, 
                            0x04
                        })
                    }

                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x16)
                            {
                                "@0,compatible", 
                                Buffer (0x0B)
                                {
                                    "NVDA,NVMac"
                                }, 

                                "@0,device_type", 
                                Buffer (0x08)
                                {
                                    "display"
                                }, 

                                "@0,name", 
                                Buffer (0x0F)
                                {
                                    "NVDA,Display-A"
                                }, 

                                "@1,compatible", 
                                Buffer (0x0B)
                                {
                                    "NVDA,NVMac"
                                }, 

                                "@1,device_type", 
                                Buffer (0x08)
                                {
                                    "display"
                                }, 

                                "@1,name", 
                                Buffer (0x0F)
                                {
                                    "NVDA,Display-B"
                                }, 

                                "NVCAP", //<-- Define as saídas de vídeo da placa
                                Buffer (0x18)
                                {
                                    /* 0000 */    0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 
                                    /* 0008 */    0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 
                                    /* 0010 */    0x00, 0x00, 0x00, 0x00
                                }, 

                                "VRAM,totalsize", //<-- Quantidade total de VRAM (importante: 0x20000000 = 512MB)
                                Buffer (0x04)
                                {
                                    0x00, 0x00, 0x00, 0x20
                                }, 

                                "device_type",
                                Buffer (0x0D)
                                {
                                    "NVDA,GeForce"
                                }, 

                                "model", 
                                Buffer (0x17)
                                {
                                    "NVIDIA Geforce 8800 GT"
                                }, 

                                "rom-revision", 
                                Buffer (0x06)
                                {
                                    "3173a"
                                }
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                        Return (Local0)
                    }
                }
            }
Atualização do Autor #7 @wwbsox 2009-09-02 ↳ Re: @kDawg

Injeção de vídeo (GFX) via DSDT

@Snow: Como você sabe, a injeção gráfica é específica para cada modelo de placa de vídeo, mas estou anexando o meu DSDT com a parte gráfica incluída para servir de referência. Procure pela seção PEGP dentro de PCI0 para comparar com a sua.

Além disso, parece que o último post do kDawg já traz o código exato para a mesma placa de vídeo que você tem (8800 GT).

De todo modo, usei o ACPI Patcher no Windows: na aba Graphics, selecionei o modelo da placa e a quantidade de VRAM; para o NVCAP, selecionei Dual DVI; e para a localização PCI0, marquei as caixas "Use DSDT GFX" e "PEGP".

Funcionou perfeitamente para mim — embora haja uma curiosidade: se eu gerar o arquivo .aml diretamente pelo ACPI Patcher, o iASLMe no Mac consegue descompilá-lo e recompilá-lo sem erros; porém, se eu exportar apenas o código-fonte .dsl pelo ACPI Patcher, o iASLMe reclama de vários erros ao tentar compilar. Curioso…

Boa sorte!

Nota de Campo #19 @Snow 2009-09-02

Excelente, pessoal! Vou testar primeiro o código do kDawg, já que tenho exatamente a mesma placa: 8800 GT de 512 MB com duas saídas DVI espetada no primeiro slot PCIe x16.

Assim evito rodar o ACPI Patcher por cima e bagunçar as edições que já fiz no meu código.

Atualização 1: Onde encontro o endereço PCI (`_ADR`) exato no IORegistryExplorer?

Atualização 2: O comando `gfxutil` me retornou `DevicePath = PciRoot(0x1)/Pci(0x1,0x0)/Pci(0x0,0x0)`. Isso significa que a string `_ADR` deve ser:

0x101000000
Atualização do Autor #8 @wwbsox 2009-09-02 ↳ Re: @Snow

Placa de vídeo (GFX)

@Snow

Eu também não queria começar meu DSDT todo do zero. Então gerei um DSDT temporário no ACPI Patcher apenas com a opção gráfica marcada e copiei toda a seção PEGP gerada para dentro do meu DSDT principal que já continha as demais correções.

Aliás, tenho quase certeza de que minha placa aparecia no IORegistry no endereço PCI 1, mas quando selecionei PCI 1 no ACPI Patcher ele não inseriu o código no DSDT; precisei escolher PCI 0 para que ele gerasse o bloco PEGP corretamente.

Nota de Campo #20 @Snow 2009-09-02

Feito e funcionando!

Colei exatamente o código do kDawg mantendo o `_ADR` como `0x00010000` (que corresponde a `Pci(0x1,0x0)`) e subiu de primeira sem precisar mais de EFI string no Boot.plist.

Mais uma vez, muito obrigado a todos pela ajuda!

Nota de Campo #21 @Snow 2009-09-02

Acho que agora só me resta 1 pequeno detalhe cosmético no sistema (até eu comprar um teclado oficial da Apple):

Criei há muito tempo o meu próprio layout de teclado personalizado com o aplicativo Ukelele para corresponder perfeitamente ao meu teclado físico belga (AZERTY de PC), mas de vez em quando o OS X cisma de carregar no boot o layout belga padrão da Apple (que tem algumas teclas em posições diferentes).
Tentei remover o bundle padrão de `/System/Library/Keyboard Layouts` para impedir esse carregamento, mas acabei ficando sem teclado nenhum no login e precisei restaurar o arquivo original.

Acho que vou acabar remapeando essas teclas com o QuicKeys mesmo.

Nota de Campo #22 @Voyn1x 2009-09-02

Muito obrigado por compartilhar esta correção! (Y)

Passei semanas quebrando a cabeça com o meu DSDT para resolver esse problema de USB no repouso; até hoje eu vinha dependendo da IOUSBFamily modificada pelo Slice como paliativo.

Atualização do Autor #9 @wwbsox 2009-09-02 ↳ Re: @Voyn1x
@Voyn1xMuito obrigado por publicar esta correção! (Y) Passei semanas mexendo no meu DSDT tentando resolver esse problema. Até agora eu vinha usando a IOUSBFamily modificada pelo Slice como solução paliativa.

Fico feliz que tenha funcionado para você! O mérito técnico pertence aos autores originais dos patches; tudo o que fiz foi consolidar as duas correções complementares em um único lugar claro, para que ninguém precise garimpar centenas de páginas de fórum.

Nota de Campo #23 @EnzoFX 2009-09-02

Snow, eu também usei o código do ACPI Patcher para injetar minha 9800 GT diretamente pelo DSDT e funciona perfeitamente!

Gostaria de saber se alguém já aplicou esta correção combinada de USB em uma Gigabyte GA-P35-DS3L:
Minhas portas USB também aparecem como "Slot de Expansão" e apenas 2 são listadas como "Alta Velocidade".
Não consigo despertar do repouso pelo teclado ou mouse e, pior ainda, às vezes meu teclado USB simplesmente não é detectado ao ligar o PC (no BIOS deixei ativado o USB Keyboard Support, mas não o de mouse).
EDIT: Acabei de testar colocar a máquina em repouso com um pendrive espetado e, dito e feito, apareceu o aviso de "Ejeção Incorreta do Disco" ao acordar!

Quero muito aplicar este patch no meu DSDT. Por curiosidade, por que aquele dispositivo específico no endereço `0x001D0003` deve ser deixado intocado?
Anexei a seção USB do meu `dsdt.dsl` caso alguém possa dar uma conferida rápida =P

Nota de Campo #24 @EnzoFX 2009-09-03

Muito obrigado mesmo, wwbsox!

Edit:
Até aqui, tudo funcionando às mil maravilhas =D
Agora consigo despertar o PC tanto pelo teclado quanto pelo mouse USB! Estou radiante. Agora é partir para investigar por que o repouso automático por inatividade (sleep on idle) às vezes falha aqui. Heh.

Nota de Campo #25 @EnzoFX 2009-09-03

Bem, infelizmente o patch não resolveu o problema intermitente do meu teclado USB não ser detectado em algumas inicializações a frio =(
Se eu desativar o suporte a teclado USB (Legacy USB) no BIOS, não conseguirei usar as setas na tela de seleção do Chameleon, certo? Então nem adianta tentar isso =/

Sobre a questão do repouso automático por inatividade (sleep on idle):
Antes era o meu gravador de DVD que impedia o repouso automático, conforme detalhado neste tópico: http://www.insanelymac.com/forum/index.php?showtopic=17… ↗. Fiz uma instalação limpa de HD para HD sem nenhum drive de DVD conectado e, ainda assim, no horário programado para dormir ouço o HD dar um estalo, como se o sistema tentasse entrar em repouso mas algum processo o impedisse.

Outro comportamento curioso é que o protetor de tela não entra automaticamente, e uso ele justamente para contornar um bug de inicialização da minha placa de vídeo: se o monitor acaba de apagar por economia de energia e eu mexo no mouse imediatamente (enquanto o monitor ainda está entrando em standby), a imagem volta cheia de chuviscos estáticos por alguns segundos até reinicializar o sinal de vídeo. Isso acontece tanto com EFI string quanto com injeção via DSDT. Se alguém souber como evitar esse chuvisco no retorno rápido do monitor, agradeço demais!

Nota de Campo #26 @Ianxxx 2009-09-03 ↳ Re: @Snow
@SnowAcho que agora só me resta 1 pequeno detalhe cosmético no sistema (até eu comprar um teclado oficial da Apple): Criei há muito tempo o meu próprio layout de teclado personalizado com o aplicativo Ukelele para corresponder perfeitamente ao meu teclado físico belga...

A única solução definitiva que encontrei para o sistema fixar um layout personalizado como padrão global foi copiar o arquivo `.keylayout` para `/Library/Keyboard Layouts` antes do primeiro boot pós-instalação e selecioná-lo diretamente no Assistente de Configuração inicial da Apple.

Nota de Campo #27 @Snow 2009-09-03

E assim ele fixou de vez sem nunca mais trocar sozinho? Caramba, solução curiosa, mas se funciona está ótimo! Só não vou reinstalar o sistema do zero apenas por causa disso, hehe.

A propósito, notei que com a injeção via DSDT a minha 8800 GT agora aparece listada também na seção "Placas PCI" (PCI Cards) do Perfil do Sistema. Está tudo funcionando perfeitamente com o código do kDawg em `PCI0`; é normal ela aparecer listada lá em Placas PCI, certo?

Nota de Campo #28 @Ianxxx 2009-09-03

Você pode rodar novamente o Assistente de Configuração inicial sem precisar reinstalar o sistema (basta remover o arquivo `/var/db/.AppleSetupDone`), tenho certeza de que funciona!

Nota de Campo #29 @EnzoFX 2009-09-03

Alguém recomenda alguma solução para o meu teclado USB que deixa de ser reconhecido aleatoriamente no boot?
Estou em uma GA-P35-DS3L com Chameleon 2, vídeo, rede, áudio LegacyHDA e esta correção de USB, tudo via DSDT.

Edit: Acabei de notar que também precisei desplugar e reconectar o cabo USB da minha impressora para conseguir imprimir algo =/. O que será que está causando isso nas portas UHCI? Curiosamente, o meu mouse nunca é afetado...

Devo tentar readicionar estas chaves no com.apple.Boot.plist do Chameleon?
<key>EHCIacquire</key>
<string>Yes</string>
<key>UHCIreset</key>
<string>Yes</string>
<key>USBBusFix</key>
<string>Yes</string>

Só não tenho certeza se elas entrariam em conflito com o patch USB do DSDT deste tópico. Alguém sabe dizer?

Atualização do Autor #10 @wwbsox 2009-09-04 ↳ Re: @EnzoFX

@EnzoFX

Troquei mensagens com outros usuários que possuem o mesmo modelo de placa-mãe que você e eles não estão enfrentando esses problemas de desconexão no boot. Se quiser, anexe o seu arquivo DSDT aqui que darei uma olhada hoje à noite para ver se encontro a causa.

Atualização do Autor #11 @wwbsox 2009-09-04

SpeedStep via DSDT

@Todos com placas-mãe Gigabyte

Alguém já conseguiu fazer os P-States e C-States funcionarem plenamente via DSDT?

Estou pensando em criar um tópico dedicado exclusivamente ao SpeedStep via DSDT em placas Gigabyte… a menos que alguém já conheça um bom guia atualizado sobre isso.

Ainda não adicionei as tabelas de SpeedStep ao meu DSDT, mas o utilitário CPU-i mostra que a variação já funciona parcialmente: o multiplicador e a frequência sobem e descem conforme a carga, porém a tensão (vCore) permanece travada no valor do P-State mais alto (o que acaba anulando parte da economia de energia).

Atualização do Autor #12 @wwbsox 2009-09-04

O CPU-i é um utilitário excelente que baixei do fórum russo applelife.ru. Tenho usado ele em conjunto com o CPUTest rodando 4 instâncias simultâneas (similar ao Prime95, mas para Mac) para comparar as leituras da CPU em repouso (idle) contra carga máxima (full load). Outro recurso muito útil do CPU-i é que ele lista todos os P-States suportados pelo seu processador, com as respectivas combinações de multiplicador e voltagem — o meu Q9550 possui seis estados.

Com esses dados em mãos, poderei inserir todos os seis P-States diretamente no meu DSDT. As informações de C-States também podem ser extraídas das tabelas SSDT e incorporadas ao DSDT. Já encontrei ótimos materiais sobre isso, incluindo um DSDT.aml pronto para o meu processador (Q9550), mas como ele foi extraído de uma placa-mãe Asus, a estrutura ao redor é bastante diferente.

Pretendo postar o aplicativo e algumas capturas de tela aqui neste fim de semana.

Tópicos de referência muito bons: http://www.insanelymac.com/forum/index.php?showtopic=17… ↗ e http://www.insanelymac.com/forum/index.php?showtopic=14… ↗ (embora hoje não seja mais necessário carregar tabelas SSDT separadas no boot, pois elas podem ser integradas diretamente ao próprio DSDT).

Nota de Campo #30 @EnzoFX 2009-09-04

Seria de imensa ajuda se você pudesse dar uma olhada no meu DSDT, wwbsox! Comecei a me perguntar se isso passou a acontecer depois que adotei o DSDT completo, embora eu não tenha certeza.

Reparei que o teclado USB e a impressora costumam falhar juntos na mesma inicialização quando o problema ocorre. Será alguma particularidade da versão do BIOS? Além disso, mais raramente, o perfil de cores do meu monitor não carrega sozinho no boot e preciso abrir Preferências do Sistema > Monitores para forçá-lo a carregar.

Pode haver algum conflito se eu desativar controladoras/portas legadas no BIOS (como porta serial/paralela), mas elas continuarem declaradas no arquivo DSDT?

Minha configuração:
GA-P35-DS3L rev. 2.0
GeForce 9800 GT injetada via ACPI Patcher, junto com Ethernet e Áudio.
Aqui está o meu arquivo `dsdt.dsl`: kt tns.org/0zjbl
E vale confirmar que todos os periféricos USB funcionam sem falhas no Windows 7 em dual boot na mesma máquina.

Atualização do Autor #13 @wwbsox 2009-09-05 ↳ Re: @EnzoFX

Quando você abre o Perfil do Sistema, todas as suas portas USB aparecem como integradas (Built-in)? A impressora e o teclado aparecem listados sob "Barramento USB" (USB 1.1) ou "Barramento USB de Alta Velocidade" (High-Speed USB 2.0)? Acredito que você mencionou já ter tentado mexer na opção "Legacy USB" no BIOS; darei uma olhada detalhada no seu DSDT mais tarde hoje à noite.

Quanto à sua dúvida sobre desativar periféricos no BIOS: isso não altera o conteúdo do seu arquivo DSDT estático. O DSDT é extraído da imagem completa da ROM do BIOS, que declara todas as portas e controladoras existentes na placa, estejam elas ativadas ou não no menu do setup. Certifique-se, porém, de atualizar sua placa para a versão mais recente do BIOS, pois isso já corrigiu diversos bugs de inicialização para outros usuários.

Se você suspeita que o seu DSDT atual possa estar causando o problema, tente extrair um novo a partir do arquivo ROM oficial do BIOS pelo ACPI Patcher e compilá-lo apenas com as correções mínimas, sem injeção extra de dispositivos. Se o sintoma persistir, saberemos que a causa não está nas edições do DSDT.

Mostrar mais 103 notas técnicas da comunidadeRegistro histórico completo
Nota de Campo #31 @Snow 2009-09-05 ↳ Re: @Ianxxx
@IanxxxCan you re-run set up without installing I'm sure theres a way

Missed your post m8

I don't think setup assistant will even show my modded keyboard layout because it isnt included in the bundle.
I wish there was a way to extract the dat files in the bundle though so I could actualy mod the default belgian keyboard layout.

@wwbsox, your keyboard and mouse are listed as High Speed USB devices? because on my rig they are not but the printer is.

Thx for the above info btw and good luck with the dsdt patching

Nota de Campo #32 @Snow 2009-09-05 ↳ Re: @Snow
@SnowAnd that sticked? dang, odd solution but hey if it works. I'm not going to reinstall though hehe. btw, I just noticed I have my 8800GT listed in sys prof as PCI card. Everything works and I have input kDawgs code exactly as listed but without checking the proper PCI bus so at PCI0. This is still ok right?

I haven't changed anything except remove the dsdt.aml from my root dir and keep it in E/E and the GFX is now listed as PCI-e

I'm not complaining though, just an odd observation, has a mind on its own apparently.

Atualização do Autor #14 @wwbsox 2009-09-05 ↳ Re: @Snow

@Snow

O meu Teclado Apple de alumínio aparece no Perfil do Sistema sob o "Barramento USB de Alta Velocidade" (EHCI), enquanto o meu mouse aparece sob o barramento USB normal (UHCI). A propósito, encontrei uma página que traz a tabela exata de DSDT para o seu processador Q6600 ativar o SpeedStep nativo com todos os P-States funcionais! Vou localizar o link novamente e te passo mais tarde; agora só preciso achar os valores exatos para o meu Q9550.

Em anexo está o utilitário CPU-i.

Nota de Campo #33 @Snow 2009-09-05

Hmm, I really should get me one of those fancy apple keyboards. I guess the apple KB is USB2.0 and this Logitech Media KB is still at USB1.1.
Speedstep ey? I'm using VoodooPower in Leo, havent found a proper solution for Snow so that would be very welcome.
Thx a bunch for CPU-i m8, is that kext 64bit compatible btw?

Laters

ps. the above was a stupid mistake I made by checking PCI tab the first time and video tab on the second screenshot

Nota de Campo #34 @Snow 2009-09-05

Temps in Leo are low 30's, especially now with colder climate. I guess it doesn't drop the voltage properly.

Atualização do Autor #15 @wwbsox 2009-09-05 ↳ Re: @Snow

Estou exatamente na mesma situação: o multiplicador e a frequência caem em repouso, mas a voltagem permanece fixa no P-State mais alto.

A solução definitiva é declarar explicitamente no bloco `_PSS` do DSDT os P-States e C-States exatos do seu modelo de CPU. Ainda estou estudando os valores hexadecimais corretos, mas vou testar em breve.

Nota de Campo #35 @infinitek 2009-09-06

Thanx for posting your dsdt wwbsox… not only did it fix my USB ports allowing me to sleep..
but it also fixed my built-in audio on SL as well…!

I noticed 2 things i wanted to ask about.
Y did my serial-ATA go from ich9 to JMicron AHCI...?
How do you get rid of sound assertion lines on boot?

Thanx again…

Nota de Campo #36 @Snow 2009-09-06

JMicron should be a diff path no? nothing to do with other ports. I still have 2 unknown devices which are prob the JMicron.
In Leo they were listed properly but I used a custom JMicron kext.

Atualização do Autor #16 @wwbsox 2009-09-06 ↳ Re: @Snow

Na prática, o hardware físico do Southbridge ICH9/R (que não é nativamente reconhecido pelo OS X como integrado em alguns IDs) não mudou: nós apenas injetamos via DSDT os Device IDs do ICH10 (que possui suporte nativo completo nos Macs reais). É basicamente uma forma elegante de fazer o Mac OS X enxergar a nossa controladora como um hardware 100% nativo da Apple.

Eu também deixei a controladora SATA secundária JMicron desativada no BIOS por enquanto, aguardando alguém compilar a kext necessária para suporte a 64 bits — o que não deve demorar, já que a Apple liberou os códigos-fonte do Snow Leopard.

Quanto às mensagens de "sound assertion" durante o boot: ainda não comecei a depurá-las, mas ocorrem porque a AppleHDA verifica atributos que não estão todos declarados no DSDT ou no plist, embora o áudio funcione normalmente.

Assim que eu concluir a implementação do SpeedStep nativo (P-States e C-States) no meu DSDT, vou focar em limpar esses avisos de áudio.

Nota de Campo #37 @EnzoFX 2009-09-07 ↳ Re: @wwbsox
@wwbsoxWhen you look in system profiler. All your usb ports show as internal? Does the printer and keyboard show up under usb or high speed usb? I believe you stated you already tried disabling "Legacy usb" in the bios, maybe? I've read where that helped on other MB's but havent experienced your problem on the gigabyte p35 boards. I will…

Yeah, after applying the fix in this thread, my usb ports now show up as internal. Also, all my usb devices show up under a regular USB Bus, and not a "High-Speed" Bus, of which I have 2. There are 6 regular "USB Bus"

For BIOS settings, I have all legacy support disabled, except for KB support, because that'd render my usb keyboard useless at the Chameleon prompt, though I haven't tried since going to Cham 2.

I am also running the latest BIOS version, and built the dsdt from it.
I will try out a "clean" dsdt without fixes/patching, and see how that goes. In the meantime, any insight into my DSDT.dsl file would be greatly appreciated.

Atualização do Autor #17 @wwbsox 2009-09-09 ↳ Re: @EnzoFX

EnzoFX, você chegou a testar algum dos outros arquivos DSDT postados aqui no tópico? O Lanxxx e vários outros membros possuem exatamente a mesma placa-mãe que você. No meu BIOS não desativei nenhuma opção de USB — deixei apenas a controladora IDE/SATA extra (JMicron) desativada.

Nota de Campo #38 @EnzoFX 2009-09-13

I see a dsdt for an EP35-DS3L, but not P35-DS3L, worth a shot?

The last few restarts have been good, but still no sleep on idle. Could it be because I have no DVD drive connected? I know some drives are causing issues, so what about having none, like I do? haha maybe I'm just hoping for a quick fix.

Edit:
In your guys' experience, if GFX is enabled through DSDT, is it simply a matter of it working or not working? I.e. QE/CI on or off. OR, can it be something where like it looks like QE/CI is on, but can still get graphical glitches that can mean something is wrong with dsdt implementation? I hope this makes sense.
Basically, my issue is that every now and then my display color profile isn't loaded @ login.

Atualização do Autor #18 @wwbsox 2009-09-14 ↳ Re: @EnzoFX

Não tive nenhum problema gráfico usando a injeção via DSDT para a minha 8800 GTS. Vale lembrar que, no Snow Leopard, a linha explícita "Quartz Extreme: Compatível" não aparece mais escrita no Perfil do Sistema como aparecia no Leopard (basta ver se a barra de menus superior está translúcida). E sim, os chipsets EP35 e P35 são praticamente idênticos na estrutura ACPI; o sufixo "E" indica apenas os recursos de economia dinâmica de energia da Gigabyte (Dynamic Energy Saver).

Quanto ao repouso automático por inatividade (sleep on idle): o meu funciona, mas há uma particularidade curiosa — o computador leva exatos cinco minutos após o desligamento do monitor para entrar em repouso profundo. Ou seja, se eu configurar para dormir após 1 hora, a tela apaga em 1 hora e o gabinete desliga cinco minutos depois. Para mim não chega a ser um incômodo.

Nota de Campo #39 @kramer2k 2009-09-14

@VWbsox
Are you able to wake from your USB2.0 keyboard? I've got the newest apple kb, which is identified as Highspeed with EHCI, but I'm unable to wake from it. However, my logitech mouse, when plugged directly to a port (as opposed to the KB) will wake my machine.

Waking from my KB is important as I also have a BT mighty mouse, which can't wake it from sleep either.

GA-P31-DS3L - e7200 - BFG 8800GT - 10.6.1 retail

Nota de Campo #40 @Ianxxx 2009-09-14 ↳ Re: @EnzoFX
@EnzoFXAnyone recommend a fix for my usb-kb not being detected every now and then on startup? I'm on a GA-P35-DS3L, Cham2. GFX, Ether, this USB-fix, Legacy HDA, through DSDT.

Enzo if your still having this prob, I know it might sound stupid but make sure that your keyboard is plugged in to one of the usb sockets nearest the board, I sometimes have this glitch with my microsoft habu mouse but doesn't happen if I plug it in to one of those two ports "same board as you ga-p35-ds3l rev 2"

Atualização do Autor #19 @wwbsox 2009-09-14 ↳ Re: @Ianxxx

Não, eu também não consigo despertar o computador pelo meu Teclado Apple de alumínio (com fio) — uso o meu mouse USB para acordar o sistema do repouso. Encontrei uma variação diferente de patch DSDT para as portas EHCI que quero testar assim que reencontrar o link; se resolver o despertar pelo teclado da Apple, atualizarei o post principal.

Muita gente consegue despertar o PC normalmente pelo teclado USB... desde que não seja o Teclado Apple de alumínio (que possui um hub USB 2.0 interno).

Nota de Campo #41 @sk1nhd33t 2009-09-14 ↳ Re: @kramer2k
@kramer2k@VWbsox Are you able to wake from your USB2.0 keyboard? I've got the newest apple kb, which is identified as Highspeed with EHCI, but I'm unable to wake from it. However, my logitech mouse, when plugged directly to a port (as opposed to the KB) will wake my machine. Waking from my KB is important as I also have a BT mighty mouse,…
@wwbsoxNo I cant wake from my apple aluminum keyboard. I have a rocketfish apple mouse that wakes the system from sleep. I found a different dsdt setup for the ehci ports that I want to try (as soon as I find it again). If it works I will add it to the original post Many people have had sucess waking with usb keyboard... if its not an apple…

same here on my ES2L mobo, i have an aluminum wired KB w/o numpad and i cant wake my machine from sleep too, same goes to my wireless BT mighty mouse.. not an issue though since i barely use sleep but if anyone has a fix i would be the first one to try it :-d anyone tried the aluminum kb w/ numpad?

ow i also have an Apple wired KB (white one) and it wakes my machine fine, beats me why it works haha..

Nota de Campo #42 @EnzoFX 2009-09-14

Thanks lanxxx,
The last several restarts have been good, no screw ups, so next time it happens I will definitely try it out. My mouse is always the one that's connected closest to the MB. Now that I think about it, the Printer is on the second set of USB ports, which ALSO is on the further end, away from the MB. But then, where do I move that one to? haha there are only 2 ports closest to the MB =P

Anyways, is it possible to force a device to run at High-Speed? My mouse, a Logitech G9, isn't supported under OS X. I have worked well around this, but it is supposed to run at high-speed, but just doesn't under OS X. If I could fix this, it might make it feel as smooth as it does on Windows.

Nota de Campo #43 @Snow 2009-09-15 ↳ Re: @wwbsox
@wwbsoxNo I cant wake from my apple aluminum keyboard. I have a rocketfish apple mouse that wakes the system from sleep. I found a different dsdt setup for the ehci ports that I want to try (as soon as I find it again). If it works I will add it to the original post Many people have had sucess waking with usb keyboard... if its not an apple…

Yeah no issues here whatsoever, both devices (Logitech Media Keyboard and Creative Mouse 5500) wake the PC. I can't even make this happen in Windows go figure.

Atualização do Autor #20 @wwbsox 2009-09-16 ↳ Re: @Snow

Bem, testei várias configurações diferentes de propriedades USB no DSDT e ainda não consegui despertar o sistema pelo Teclado Apple de alumínio na placa P35. Curiosamente, na minha outra placa GA-EP45-DS3L isso funciona de primeira (OOB), sem precisar de nenhuma modificação no DSDT — certamente porque a linha P45 já utiliza o Southbridge ICH10 nativo.

Nota de Campo #44 @kDawg 2009-09-16

Post DSDT

Have you posted your most current DSDT file somewhere? Let me take a look. Both my MOBOs woke on keyboard or mouse a GA-EP35-DS4 and GA-EP45-UD3P.

Update:
I grabbed your DSDT from an earlier post. Try the attached DSDT. I modified the EHCI devices. Also you should have your USB mouse and keyboard connected directly to the motherboard and not any kind of hub? If you're using Slice's IOUSBFamily.kext I would try reverting back to the vanilla. Let me know if this helps.

Update #2:
Retract the last post. It seems you might have tried the approach I detail above.

Atualização do Autor #21 @wwbsox 2009-09-16 ↳ Re: @kDawg

@kDawg

Nessa sua placa DS4… você está usando o Teclado Apple de alumínio com fio?

Nota de Campo #45 @kDawg 2009-09-16 ↳ Re: @wwbsox
@wwbsox@kDawg On your DS4… Are you using an Apple Aluminum Keybaord?

It's an older extended Apple USB keyboard not an aluminum.

If you use the DSDT above do you get your EHCI devices showing up as ICH10 built-in?

Nota de Campo #46 @xwin78 2009-09-17

@wwbsox--will you post your most current DSDT. I am having issues with the SATA/USB fix not compiling & I have the same hardware set up except 8800 GT 512 instead of GTS.

Nota de Campo #48 @xwin78 2009-09-17

kDawg--thanks I saw this post & just wanted to be sure it was the MOST CURRENT DSDT file.

I read the entire thread...there have been so many hacks and revisions.

Nota de Campo #49 @kDawg 2009-09-18 ↳ Re: @xwin78
@xwin78kDawg--thanks I saw this post & just wanted to be sure it was the MOST CURRENT DSDT file. I read the entire thread...there have been so many hacks and revisions.

I created that DSDT so I know it compiles fine.

Nota de Campo #50 @twr 2009-09-18

been working for a while on my dsdt using pieces of code taken here and there, and everything but keyboard/mouse (wired Apple alu. + Razer Diamondback plasma) wake-on-sleep and shutdown menu call from power button (even with the _CID trick ...)

for now, using retail 10.5.8 with boot-think 2.3.18 (modded AppleLPC, fakesmc v.2, CPUPMdisabler, R1000 & vanilla IONet + IOPCI and sleepenabler in D/L/E.mkext) ; EFI strings for TM / en0 builtin fix and video (GeForce 8800GS + 384 Mo DDR3 SDRAM, PEG) on a GA G31M-ES2L rev. 1.1.

I know it could look kind of rude, but kDawg, would you be kind enough to take a look at my .dsl (compiles fine, no error nor warning) and tell me what might be wrong ? :

thx by advance.

Nota de Campo #51 @kDawg 2009-09-18 ↳ Re: @twr
@twrbeen working for a while on my dsdt using pieces of code taken here and there, and everything but keyboard/mouse (wired Apple alu. + Razer Diamondback plasma) wake-on-sleep and shutdown menu call from power button (even with the _CID trick ...) for now, using retail 10.5.8 with boot-think 2.3.18 (modded AppleLPC, fakesmc v.2,…

I'm not sure what you're saying is the problem. Do you have a sleep/wake problem?

Nota de Campo #52 @twr 2009-09-18

1°my usb keyboard & mouse aren't able to wake up OSX from S3 mode (whereas they do it in Windows) ;

2°I can put OSX into S3 mode with the power button if this option is activated in pref. sys., but when not, it does nothing ; it should make the shutdown menu show up.

I'm assuming it might be a DSDT issue.

edit: so sorry, I forgot some words ... I wanted to say : everything is working as it should, but USB wake-on-sleep & shutdown menu from power button.

wanna help me anyway ?

Nota de Campo #53 @xwin78 2009-09-18 ↳ Re: @kDawg

Dsdt--sweetness

@kDawgI created that DSDT so I know it compiles fine.

Sorry--it was not an issue of compiling ---I wanted to make sure I got all the hacks for ethernet/usb etc.

I added some stuff and after 17 revisions I now have a fully functional SL machine w/ only 1 modded kext (thanks SNOW) for 5.1 Surround Sound!
that is more vanilla than my MacBook Pro.

Thanks to kDawg----wwbsox---SNOW and all you others!

Nota de Campo #54 @kDawg 2009-09-19 ↳ Re: @xwin78
@xwin78Sorry--it was not an issue of compiling ---I wanted to make sure I got all the hacks for ethernet/usb etc. I added some stuff and after 17 revisions I now have a fully functional SL machine w/ only 1 modded kext (thanks SNOW) for 5.1 Surround Sound! that is more vanilla than my MacBook Pro. Thanks to kDawg----wwbsox---SNOW and all you…

That's great. Would you mind sharing your setup, i.e. what's in your extras folder?

Nota de Campo #55 @xwin78 2009-09-19

I'd be glad to:

Gigabyte EP35-DS3P Rev.2.1 w/F6c BIOS
Xeon E3110 (e8400)
EVGA 8800 GT 512

Chameleon 2 RC3
Extras folder includes: com.apple.Boot.plist, dsdt.alm, SMBIOS.plist
fakesmc.kext
IOAHCIBlockStorageInjector.kext
NullCPUPowerManagement.kext
OpenHaltRestart.kext
PlatformUUID.kext
SleepEnabler.kext

I am still working to get sleep enabled & tryign to reduce boot time...LONG compared to Leo

Thanks for your help

Nota de Campo #56 @Jedric 2009-09-19

Compile Error.

Need some help. EHCI is now working. I followed the guide to replace dsdt code for UHCI suddenly im getting this error on compile. I did this over and over and I always get the same error. I put the old code back and compiles ok. There was no reference on the original code that I replaced to this lines so I'm stummped.

Mac-Pro:Tools admin$ ./iasl dsdt.dsl

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20080926 [Oct 4 2008]
Copyright (C) 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl 9195: If (SS1)
Error 4095 - ^ syntax error, unexpected PARSEOP_IF

dsdt.dsl 9239: \_SB.PCI0.SBRG.SIOS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SIOS)

dsdt.dsl 9240: \_SB.PCI0.SBRG.SPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SPTS)

dsdt.dsl 9241: \_SB.PCI0.NPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.NPTS)

dsdt.dsl 9242: \_SB.PCI0.GFX0.OPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.GFX0.OPTS)

dsdt.dsl 9248: \_SB.PCI0.SBRG.SIOW (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SIOW)

dsdt.dsl 9249: \_SB.PCI0.SBRG.SWAK (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SWAK)

dsdt.dsl 9250: \_SB.PCI0.NWAK (Arg0)
Error 4063 - ^ Object does not exist (\_SB.PCI0.NWAK)

dsdt.dsl 9251: \_SB.PCI0.GFX0.OWAK (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.GFX0.OWAK)

ASL Input: dsdt.dsl - 9256 lines, 295803 bytes, 4252 keywords
Compilation complete. 9 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

Original DSDT code that is being replaced.

Device (USB0)
            {
                Name (_ADR, 0x001D0000)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x03, 0x04))
                }
            }

            Device (USB1)
            {
                Name (_ADR, 0x001D0001)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x04, 0x04))
                }
            }

            Device (USB2)
            {
                Name (_ADR, 0x001D0002)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x0C, 0x04))
                }
            }

            Device (USB3)
            {
                Name (_ADR, 0x001D0003)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x0E, 0x04))
                }
            }

            Device (USB4)
            {
                Name (_ADR, 0x001A0000)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x0E, 0x04))
                }
            }

            Device (USB5)
            {
                Name (_ADR, 0x001A0001)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x05, 0x04))
                }
            }

            Device (USB6)
            {
                Name (_ADR, 0x001A0002)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x20, 0x04))
                }
            }
        }
Atualização do Autor #22 @wwbsox 2009-09-19 ↳ Re: @Jedric

Se puder, anexe o seu arquivo dsdt.dsl inteiro original (antes das edições). Assim posso aplicar o patch e recompilá-lo para você. As mensagens de erro apontam números de linha em outras partes do arquivo que não tenho como rastrear vendo apenas um trecho.

Informe também as especificações completas do seu hardware, pois isso ajuda outros membros com a mesma placa a colaborarem.

Nota de Campo #57 @xwin78 2009-09-20

@ wwbsox

could you post your DSDT file---I would like to compare it to mine for order etc.

Nota de Campo #58 @Jedric 2009-09-20

Apparently my EHCI was being detected built-in even without the DSDT. So its just the UHCI that im really having problems with being detected as Expansion slot.

AppleUSBUHCI[0x6e76000]::start unable to initialize UIM

Nota de Campo #59 @ohwhyme 2009-09-20

I have a P35-DS3P and I just downloaded your dsdt.aml file and the ethernet works, sound, sata is displayed as ich10 but cant seem to wake up the computer with the keyboard or mouse. My old dsdt showed the removal device when I woke up from sleep and my pci network card worked so now I can just use the internal card I have the apple aluminum keyboard as well hehe. The Usb mouse works for waking up which is odd but the keyboard doesnt do anything. Does hibernate work for anyone? Does wake from bluetooth work for anything? I read the only way you can wake from bluetooth is via internal apple or a dlink 120 bluetooth adapter is this true?

Nota de Campo #60 @kDawg 2009-09-21 ↳ Re: @twr
@twr1°my usb keyboard & mouse aren't able to wake up OSX from S3 mode (whereas they do it in Windows) ; 2°I can put OSX into S3 mode with the power button if this option is activated in pref. sys., but when not, it does nothing ; it should make the shutdown menu show up. I'm assuming it might be a DSDT issue. edit: so sorry, I forgot some…

#1: You have a ICH7 motherboard? If you've tried the USB/EHCI pathces in the attached DSDT file → then you might have to try Slice's IOUSBFamily.kext ↗. The problem might be that your USB/EHCI port aren't being reported as "built-in". Other than that as long as your keyboard and mouse are attached directly to the back of your motherboard it should work. Try Slices' kext and see if that fixes it. If so there may be something else going on. Perhaps a BIOS setting.

I believe your #2 problem is normal behavior for a OSX86 machine. When I push my power button my sleep menu does not show up. It will however go to sleep.

This patch had at one point worked for me. It doesn't anymore.
Various DSDT mods. →

k

Atualização do Autor #23 @wwbsox 2009-09-21 ↳ Re: @kDawg

@xwin78

O meu arquivo DSDT completo já está anexado no primeiro post do tópico.

Aproveitando: alguém aí tem um hub USB 1.1 antigo guardado na gaveta? Estou investigando uma forma de fazer o Teclado Apple de alumínio despertar o computador do repouso em placas ICH9.

O meu mouse desperta o computador porque é detectado na árvore USB 1.1 (UHCI), enquanto o Teclado Apple de alumínio é conectado na árvore USB de Alta Velocidade (EHCI) por causa do seu hub USB 2.0 integrado. Minha teoria é que, se o teclado for ligado através de um hub USB 1.1 antigo, ele será roteado para a controladora UHCI e passará a acordar o PC normalmente! Infelizmente não tenho um hub 1.1 antigo aqui para testar.

Nota de Campo #61 @osxfr33k 2009-09-21

My DSDT Won't compile when I added the Graphics section

I have the Asus Maximus Formula and the GA-EP35-DS$ very similar to the posts here.

I used DSDTSE and all the fixes are in place. DTGP, HPET and RTC. I am trying to figure out exactly where the graphics section go. Here is the one I tried to fix, look in the section DEVICE (PCI0). Its very obvious where I started the the code. I could not move it over to the left and align everything.

Do I need to start the code right under DEVICE (PCI0)? I started the code right between DEVICE (PCI0) and Name (_HID, EisaId ("PNP0A08")). I have a feeling I have placed it incorrectly or something?

Is there an easy way in DSDTSE to insert the code generated into the main editor and have it automatically go to the correct section and insert correctly?

File Attached

Nota de Campo #62 @osxfr33k 2009-09-21

Sorry the file did not attach the first time before I clicked Submit. I see there was a Submit below where the attached window was so I had to post this file in a reply. Sorry about that. Any help on formatting this correctly would be greatly appreciated!

Nota de Campo #63 @sk1nhd33t 2009-09-21

@wwbsox

hopefully we can find a fix for our aluminum keyboard waking from sleep, on my ES2L mobo it's the only thing that's missing since automatic sleep is now working thanks to PleaseSleep

BTW are you using the one with num pad or without?

Nota de Campo #64 @twr 2009-09-21 ↳ Re: @kDawg
@kDawg#1: You have a ICH7 motherboard? If you've tried the USB/EHCI pathces in the attached DSDT file then you might have to try Slice's IOUSBFamily.kext (http://www.projectosx.com/forum/index.php?showtopic=337 ↗). The problem might be that your USB/EHCI port aren't being reported as "built-in". Other than that as long as your keyboard and…

gonna check my EHCI/UHCI DSDT.dsl editing ...

my mobo is a G31M-ES2L : it looks as if I'm not the only one facing its USB/sleep issues !

my BIOS settings are OK (S3 + USB wake from S3 in advanced options) : if the DSDT trick doesn't make it, I'm gonna try the Slices' .kext.

thx for your help !

Nota de Campo #65 @sk1nhd33t 2009-09-21 ↳ Re: @twr
@twrbeen working for a while on my dsdt using pieces of code taken here and there, and everything but keyboard/mouse (wired Apple alu. + Razer Diamondback plasma) wake-on-sleep and shutdown menu call from power button (even with the _CID trick ...) for now, using retail 10.5.8 with boot-think 2.3.18 (modded AppleLPC, fakesmc v.2,…

it wont work, tried a few dsdt patch on leo and snow and still the KB wont wake my machine from sleep.. we have the same mobo and kb except that for the mouse im using wireless mighty mouse. I can wake from sleep using a keyboard if i use my old wired apple keyboard (plastic w/ white clear keys).

for the PWRB dsdt hack, same goes here. my machine just sleeps but it's not showing the shutdown menu .. not a biggie though, im much more interested in waking from sleep using a Kb instead of my power button.

Atualização do Autor #24 @wwbsox 2009-09-21 ↳ Re: @sk1nhd33t

@osxfr33k: Se você puder anexar o seu arquivo DSDT completo, ficará muito mais fácil corrigi-lo para você.

@sk1nhd33t: Estou usando o modelo estendido com fio (com teclado numérico lateral).

Nota de Campo #66 @EnzoFX 2009-09-21

If your still using IOAHCIBlockStorageInjector and/or AHCIPortInjector, try the SATA Fix, then you can omit those 2 kexts.

I also want to add that with this fix, I can wake from sleep with usb kb+mouse. I am using an old MS Keyboard, and a Logitech G9.

My power button can only sleep the system with the setting ticked in sys prefs. This is after the pwrb dsdt fix. Otherwise, with the option disabled, it does nothing.

My snow leopard is running beautifully. I have but one issue, that is switching between spaces, it is laggy!. I don't think this is on my side, because every other thing is incredibly smooth, smoother than Leopard, and this animation in Leopard worked well. Am I correct in assuming this much?

I think a few real mac users are experiencing this, and there is one "fix" that involves messing with QE, and I'm not sure I'm ready to do that. Some reported it went away eventually, other say it's only when booting in 64bit, which alludes to the issue residing on apple's drivers? I dunno... Right now, I'm just trying to ignore it...

Atualização do Autor #25 @wwbsox 2009-09-21 ↳ Re: @EnzoFX

Muito bem… Continuo trabalhando na questão de despertar pelo Teclado Apple de alumínio, e acabo de confirmar que a nossa teoria do barramento USB 1.1 está absolutamente certa! O motivo pelo qual o teclado não acorda o PC em placas ICH9 é justamente por ele ser alocado na controladora USB 2.0 (EHCI).

No meu BIOS, dentro de Integrated Peripherals, há uma opção para desativar o controlador USB 2.0 (EHCI). Com ele desativado, o Teclado Apple de alumínio desperta o sistema do repouso 100% das vezes!

Claro que desativar o USB 2.0 no BIOS não é uma solução prática definitiva, especialmente para quem usa HDs externos USB (os meus são eSATA), além do fato de que na minha placa apenas 2 das 8 portas USB traseiras continuam ativas quando o controlador USB 2.0 é desligado.

Porém, isso comprova que ligar o teclado através de um pequeno hub USB 1.1 fará o despertar funcionar sem abrir mão do USB 2.0 nas demais portas!

Tudo isso me leva a crer que existe algum parâmetro específico na seção EHCI do DSDT que pode ser ajustado para habilitar o sinal de wake no barramento de alta velocidade. Já testei 4 ou 5 variações de patches EHCI sem sucesso nessa parte, mas a resposta está lá fora em algum lugar... vou continuar pesquisando.

Nota de Campo #67 @ohwhyme 2009-09-22

does that mean that I can turn off that option and 2 of the ports will be usb 1.1 and the rest will be 2.0? That would work fine for me .

Nota de Campo #68 @osxfr33k 2009-09-22

wwbsox here ya go. The DSDT.dsl is the one that works I would say 100% except for the graphics not being inserted. I used DSDTSE to create the DSDT.dsl. The dropdown had separate fixes for DTGP, HPET and RTC etc and it seems that they must have gotten put into place or maybe not? I am not sure if powermanagement is working but I have sleep/awake/restart/shutdown is flawless. USB no problems.

Graphics is 7300GT 256mb, which I have changed a few things as you will see in the dsdt-graphics.dsl file. Also will be putting in a 9800 GT 512MB one day to

I would like to incorporate that into the DSDT.dsl and remove the EFI string from the com.apple.boot.plist if its possible. The Marvell Lan's work Great! I do see kexts for the marvel in my Extra/extensions so I would like to have that ready made in the DSDT so I don't have to load them unless its not being used and its already fixed in the DSDT file?

I am unsure if the CMOS fix was done but I don't suffer any changes in my Bios? I am in Snow 10.6.1 using an Asus Maximus Formula X38 chipset with the latest Bios. I also have the GA-EP35-DS4 gigabyte that I willbe working on next after I solve the remaining minor details on this ASus Board.

I am attaching now. Hope you can help and greatly appreciated to. dsdt.dsl's generated by DSDTSE.

CAn you let me know exactly where the Graphics-dsdt.dsl script should be placed or maybe place it for me so I can see. I think I shoul dhave maybe put it further down the Device (PCI0) script or not? I got scripting erros when I merged it between the Device (PCI0) and Name (_HID, EisaId ("PNP0A08")).

Should it be placed somewhere else?

EDITED a Few Minutes later.

It does not look like I have the RTC, CMOS nor PWRB fix? I assumed it was put into place with DSDTSE. Now I wonder if HPET and DTGP fixes are in place? If not its weird how well the DSDT is working so far except a major crash when I launch Chess is OSX. I verfied with other utils etc that acceleration is working fine.

Atualização do Autor #26 @wwbsox 2009-09-22 ↳ Re: @osxfr33k

@osxfr33k

Nem todas as placas-mãe precisam da correção de reset de CMOS no Snow Leopard (embora as placas Gigabyte geralmente precisem).

Dei uma olhada rápida no seu arquivo: o método DTGP já está presente no seu DSDT, mas o posicionamento do bloco da placa de vídeo (GFX) não parece correto. Vamos corrigir isso para que você possa remover a EFI string do seu com.apple.Boot.plist.

Baixei a imagem ROM do BIOS mais recente para a sua placa diretamente do site da Asus. Vou gerar um DSDT de referência com o ACPI Patcher no Windows incluindo todas as correções e a injeção gráfica.

Com isso em mãos, poderei comparar a posição exata da seção gráfica na árvore PCI0 da Asus e corrigir o seu DSDT hoje à noite depois do trabalho.

Atualização do Autor #27 @wwbsox 2009-09-22

@ohwhyme

Infelizmente, na minha placa-mãe, quando desativo o USB 2.0 Controller no BIOS, apenas 2 portas traseiras continuam funcionando (em velocidade USB 1.1) e todas as demais portas traseiras ficam desligadas (além das 2 portas laterais do próprio teclado funcionarem em 1.1).

O protocolo USB 2.0 vs. USB 1.1 não é fixo por porta física (o que seria ótimo neste caso), e sim negociado por dispositivo: em qualquer porta que você espete um dispositivo USB 2.0, o roteamento interno da controladora o entrega ao barramento EHCI; se espetar um periférico USB 1.1, ele é entregue ao barramento UHCI.

Portanto, o segredo para despertar pelo Teclado Apple em placas ICH9 (sem patch extra de _PRW/EHCI) é forçar o teclado a operar como USB 1.1 através de um hub 1.1.

Nota de Campo #69 @Jedric 2009-09-22 ↳ Re: @wwbsox
@wwbsoxIf you could...post the entire dsdt.dsl before any changes. I will try to patch the dsdt and recompile. The errors list different line numbers to look at, but without a complete dsdt I cant track those down. Also, what hardware are you using, this info may help people with the same setup offer help.

wwbsox did you get a chance to look at my dsdt, pertaining to the errors I was getting when replacing the USB0-USB6?

Nota de Campo #70 @osxfr33k 2009-09-22

wwbsox, If you do that I would feel more comfortable to donate. I am the kind of person that if someone can do you a favor you should return the favor as well. Please PM you paypal address. I have to check my bios make sure its the latest one. I am sure it is from december2008/jan 2009.

That seems to be a very compatible board with osx86.

Could you send me one with graphics and without. Reason is because it seems chameleon is handling my 7300GT well. Dunno about when I install my 9800 GT 512 mb card? Will the dsdt have to be extracted again with a different Graphics card as long as the code for it is not in the dsdt?

Could I have the source or .dsl file with it to so I can compare it to a couple I have already.

Not sure about the Dual Marvel Lan but most users have to have a kext for it in the extra/extensions.

The new version of DSDTSE seems to automatically put in the three fixes RTC, DTGP and HPET even though they are in the drop down hack menu?

I wish there aw a tutorial on where to actually place the hacks in DSDTSE?

I get a kernel panic when I launch Chess and only Chess. I have checked Acceleration with the usual ways with no panics.

I have BIOS Version 1302 back in December 2008 is when that was released. The DSDT.aml is the one extracted from the Linux Ubuntu Live CD. The DSDT.dsl-working_but-possibly-not-all-fixes.zip shoudl be the one I already attached for you. The log.txt.zip I think I already attached from my prior thread but here it is again just in case

Thanks again

EDITED a few hours later:

I did not think about this but let me also send to you the DSDT.aml created in Ubnuntu 9.04 Live CD because that DSDT.dsl I sent you was created on a nearly working Asus Maximus Formula in Snow. So I am not sure if it is extracting some of the exsiting DSDT already loaded from the /extra folder or not? I am also attaching my error log file again about the graphics and really important my ioreg dump from leopard. Just in case you need them.

Nota de Campo #71 @EnzoFX 2009-09-22

If you get your 9800gt working perfectly in Snow LMK your method!

I got it enabled through DSDT and for some reason, switching between spaces is noticeably choppy.

I also have an initialization issue/display sleep issue. It only arises when: The display is about to sleep and before the monitor even finishes going into standby mode, quickly move the mouse to wake it up, and I get this grey static image for a few seconds or more.
So only in this instant does it happen, maybe with Chameleon's vga rom injection this could be fixed? I should look into that.

Atualização do Autor #28 @wwbsox 2009-09-23 ↳ Re: @EnzoFX

@Jedric

Adicionei as correções para os dispositivos USB0 a USB6 no seu arquivo e mantive a sua seção EHCI original intacta, já que você mencionou que ela já funcionava bem. O código compilou com zero erros (houve apenas alguns avisos originais do seu BIOS relacionados a leituras de voltagem vCore, que não afetam em nada a compilação). Em anexo estão os arquivos .dsl e .aml prontos. Faça o teste e compare as seções USB para ver as alterações. Boa sorte!

Atualização do Autor #29 @wwbsox 2009-09-23

@osxfr33k

Gerei um DSDT a partir da ROM mais recente do BIOS da sua placa Asus e exportei o bloco de injeção gráfica.

Estou anexando o trecho de código da seção gráfica em formato texto, bem como o arquivo de referência gerado pelo ACPI Patcher, para que você veja exatamente em qual ponto dentro do escopo Device (PCI0) esse bloco deve ser inserido. Espero que funcione perfeitamente para você!

Nota de Campo #72 @Jedric 2009-09-23 ↳ Re: @wwbsox
@wwbsox@Jedric I added the fixes for usb0-usb6. I did not change the EHCI area as you stated that was working for you. It compiled with no errors. There were a few warning... related to section in your DSDT that has something to do with vcore voltage settings, but this did not prevent it from compiling. Attached is the .dsl and compiled…

BIG THANKS wwbsox. Works great

Nota de Campo #73 @sylvester328 2009-09-23 ↳ Re: @wwbsox
@wwbsox@ohwhyme The problem is... trying to get the keyboard registered as USB1. This will fix wake from sleep issue.

I think even if you manage to do that, it is not really a solution. The Apple aluminium keyboard is a USB2 device because it is in fact a USB hub with two USB ports at both end. Will making it a USB1 device crapple the transfer speed of those ports? If so, I'll rather connect my mighty mouse (USB1 device) to a separate port on the motherboard and click on the mouse to wake up my hac.

Atualização do Autor #30 @wwbsox 2009-09-23 ↳ Re: @sylvester328

@sylvester328

Sim, ligar o teclado em um hub USB 1.1 também limita as duas portas laterais do próprio teclado à velocidade USB 1.1. Porém, na prática, essas portas laterais do teclado já fornecem pouca corrente elétrica: sempre que tento espetar um pendrive USB 2.0 mais exigente nelas, o Snow Leopard exibe um aviso de energia insuficiente na porta USB e ejeta o dispositivo.

Como tenho recebido muitos pedidos de usuários que fazem questão absoluta de despertar o computador pelo Teclado Apple de alumínio em placas P35/ICH9, o hub 1.1 é uma solução física imediata que funciona.

Paralelamente, continuo buscando uma forma de ajustar o código ACPI da seção EHCI no DSDT para permitir o despertar nativo em porta de alta velocidade, assim como já ocorre sem esforço na minha placa EP45-DS3L (ICH10).

Nota de Campo #74 @osxfr33k 2009-09-23

wwbsox Thanks so much. Couple quick questions. I inserted the audio part where you have it but I get an error?

This stuff here was right after PCI0 but now I noticed its at the end of the graphics script and the number in "Name (_HID, EisaId ("PNP0A03"))
Name (_ADR, Zero)
Method (^BN00, 0, NotSerialized)"

which was PNP0A08 is now PNP0A03. if I change it back to 8 I get an error so I left it alone. SO what happened to this section below? LIke I said I see it at the end of the graphics script now with a "3" instead of 8?

Name (_HID, EisaId ("PNP0A08"))
Name (_ADR, Zero)
Method (^BN00, 0, NotSerialized)
{

I even compiled your dsdt and OSX stops at the 4096 cluster and io something.

Here is the log.

Atualização do Autor #31 @wwbsox 2009-09-23 ↳ Re: @osxfr33k

@osxfr33k

Primeiro: mantenha a sua seção de áudio exatamente como estava no seu DSDT funcional, pois o ACPI Patcher só gera código automático para os codecs ALC888 e ALC889a (que não é o caso da sua placa Asus). Eu gerei aquele arquivo apenas para extrair a estrutura gráfica.

Segundo: quanto à posição exata do bloco gráfico dentro de PCI0, aquele é o local padrão onde o ACPI Patcher o insere. Como não tenho essa placa Asus em mãos, não tenho como testar se a ordem dentro de PCI0 faz diferença no seu BIOS.

Terceiro: quanto ao identificador `PNP0A03` vs `PNP0A08`, verifiquei vários DSDTs de placas Asus e Gigabyte e todos utilizam `Name (_HID, EisaId ("PNP0A03"))` nesse dispositivo.

Por fim, anexei agora o arquivo `.aml` compilado de referência (lembrando que o iASL no Mac descompila e recompila o `.aml` gerado pelo ACPI Patcher sem problemas). O método mais seguro para você é pegar o seu próprio DSDT que já funciona e apenas colar o bloco gráfico nele. Boa sorte!

Nota de Campo #75 @osxfr33k 2009-09-23

Thanks will work on it some more. Is this extracting/patching etc similar to true hacking where one takes a compiled source code and dissasembles it, then uses a debuger to watch where the program lands it for example when the program asks for a serial then the hacker knows where ithat part of the code is being used? Then they do some trial and error changes and then assemble it and test it?

Are these DSDT.dsl files basically the same thing, starting out originally as source code that was compiled into a BIOS ROM and flashed to the MB.

We are dissasembling what was once source code but now machine code that is dissasembled?

Am I way off base with this analogy?

Because if this is kinda what we are doing no wonder it difficult to get things right.

Nota de Campo #76 @CyCLoBoT 2009-09-23

I am having a problem with waking my computer up using USB keyboard/mouse. I tried to replace the USB fix code in my DSDT file but I started getting KP. Anyone know how I can fix the USB wake issue on a Gigabyte EP45-DQ6 board?

I have attached my current DSDT file that I'm using.

media fire.com/?mol3mzimzmz

Atualização do Autor #32 @wwbsox 2009-09-24 ↳ Re: @CyCLoBoT

@cyclobot

Se você estiver usando um teclado ou mouse USB 1.1 comum, este patch já fará o despertar funcionar imediatamente.

Adicionei a seção USB corrigida ao seu DSDT; teste o arquivo em anexo.

Nota de Campo #77 @twr 2009-09-24

after some new DSDT editings, still no luck on my G31M-ES2L with USB Alu. keyboard : sleeps very well, but won't wake without PWRB.

here is my .dsl ...

Nota de Campo #78 @CyCLoBoT 2009-09-24 ↳ Re: @wwbsox
@wwbsox@cyclobot. Working on the issue. If you have a USB1 keyboard or mouse, they should wake the system. I added the usb section to your dsdt, give this a try.

Thanks wwbsox. It does wake up with the mouse without giving any errors.

Update:
Well after I started using your modified DSDT file, I started getting KP. Not sure what's causing it but I had to switch back to my original one.

Atualização do Autor #33 @wwbsox 2009-09-24 ↳ Re: @CyCLoBoT

@cyclobot

Esse arquivo foi gerado diretamente a partir do DSDT que você me enviou, apenas com a seção USB editada. Mas, por curiosidade: a sua placa é uma GA-EP45-DQ6, certo? Ela já não utiliza o Southbridge ICH10R? Pergunto porque na minha EP45-DS3L (que é ICH10) o repouso e o despertar pelo teclado funcionam nativamente sem precisar de injeção de Device ID nas portas USB.

Nota de Campo #79 @CyCLoBoT 2009-09-25 ↳ Re: @wwbsox
@wwbsox@cyclobot That was the dsdt that I got from you. I just edited the usb section. But for the record... You have an EP45-DQ6, is this ICH10 south bridge? I know my EP45-DS3L is and I dont need any DSDT patching. Sleeps ok. Wakes from keyboard fine too.

Yes it is ICH10R. My computer goes to sleep just fine and it does wake up as well but only with the power button.

Nota de Campo #80 @spanakorizo 2009-09-25

jmicron

1) tried gfx injection of the 8800gt (by dsdt) and i had no luck, maybe the bus location could be wrong? (where do i find it exactly for my card?)

also my pci0 device starts likes this:
Device (PCI0)
{

Name (_HID, EisaId ("PNP0A08"))
could that be a problem? (some users said it should be 03)

2) i was able via dsdt to make the uhci and ahci appear as internal and the sata now shown as intel esb2 AHCI, but my mobo has also Jmircron and the 2 Jmicron devices shown as "Unknown"
any fix for this?

removed a lot of kexts in /e folder , now i only got FakeSMC and, UUID.kext (+ionetworking for my net and openhaltrestart)
i'll try now to rebuild mkext without openhaltrestart.kext and see if i still need it

Nota de Campo #81 @spanakorizo 2009-09-25

kp

i was testing sleep after the UHCI/EHCI modifications to the dsdt and after a lot of time i have sleeep WORKING!
wake up via mouse works, no keyboard but my keyboard is ps2 and loaded with hacked kexts (voodoops2+appleacpips2nub)
but i noticed a strange KP...
when pc wakes if i go again to control panel and mess with the power settings i get kernel panic (no debug but the "you neeed to restart your computer..."
how can i see what caused the kp?
anyone else with this issue?

EDIT: KP is because of my 2nd pci audio card M-AUDIO and hacked drivers of envy24HT (known kp)
i switched to the onboard soundcard after wake and there is no kp so everything ok

Nota de Campo #82 @EnzoFX 2009-09-28

For those with an Apple keyboard, what about getting a strictly USB 1.1 hub? and plug it in through there =P

Nota de Campo #83 @BugsB 2009-10-03

I have been trying hard to correct my dsdt.dsl, but to no avail. My USB devices do not mount at all in SnowLeo. In Leo I have been using the EHCI mods from orByte, Slice or AnV.

Sorry, but I have already spent useless hours and could really need some help with this. If somebody kind could look at my dsdt and correct it I would be forever grateful. I would even be willing to contribute something back.

The dsdt.dsl for my Toshiba Satellite P100 is attached.

Hoping .. ,
Bugs

Nota de Campo #84 @EnzoFX 2009-10-05

I got a question about the fact that your supposed to leave device 0x001D0003 alone,
I'm doing this to another board now, and none of it's usb devices have that Name/ID, so then do I not worry about leaving one alone now?

Atualização do Autor #34 @wwbsox 2009-10-06 ↳ Re: @EnzoFX

@EnzoFX

Exato! Já vi outras placas sem o endereço D3 declarado. Os sufixos de endereço que realmente devem receber o método `_DSM` são os seis controladores UHCI: `1D0000`, `1D0001`, `1D0002`, `1A0000`, `1A0001` e `1A0002` (além dos dois controladores EHCI `1D0007` e `1A0007`).

E sim, o truque do hub USB 1.1 deve resolver para qualquer pessoa que precise despertar o PC pelo Teclado Apple de alumínio em placas ICH9.

Nota de Campo #85 @xwin78 2009-10-07

@ wwbsox

thanks for all the help w/ my DSDT file--I just added my GFX info and all is well except I can not sleep, my system just powers down and when I strike the keyboard it boots back up (cold). I have the same setup as your sig---what is your BIOS rev and what are your BIOS settings (specifically your power related BIOS settings)?

Nota de Campo #86 @kDawg 2009-10-07 ↳ Re: @wwbsox
@wwbsox@EnzoFX I believe that is correct. I have seen other boards without the D3 address. The actual addresses that get modified should be D0,D1,D2,A0,A1 and A2. Also, The USB1.1 hub should work for anybody that "MUST" wake from aluminum keyboard. But I dont have an old hub to test out.

I actually think this is a mistake on Gigabyte's behalf. The D3 device is a mystery. I have a GA-EP45-UD3P and it doesn't reference the D3 address. I also found an error in the USB device section in the DSDT for my other MOBO a GA-EP35-DS4.

Some companys do a better job generating their DSDT than others. I do happen to think Gigabyte does an OK job.

Nota de Campo #87 @sylvester328 2009-10-09 ↳ Re: @kDawg
@kDawgI actually think this is a mistake on Gigabyte's behalf. The D3 device is a mystery. I have a GA-EP45-UD3P and it doesn't reference the D3 address. I also found an error in the USB device section in the DSDT for my other MOBO a GA-EP35-DS4. Some companys do a better job generating their DSDT than others. I do happen to think Gigabyte…

Just upgrading the BIOS for my EP45-DS3R. In the process of DSDT patching, I noticed that the new BIOS (F11e) no longer has this D3 device. They also fixed a couple of bugs which caused compilation warnings as well.

I really hope someone find a DSDT hack soon to enable the wake from sleep using USB2 keyboard.

Nota de Campo #88 @kDawg 2009-10-09 ↳ Re: @sylvester328
@sylvester328Just upgrading the BIOS for my EP45-DS3R. In the process of DSDT patching, I noticed that the new BIOS (F11e) no longer has this D3 device. They also fixed a couple of bugs which caused compilation warnings as well. I really hope someone find a DSDT hack soon to enable the wake from sleep using USB2 keyboard.

Have you posted your DSDT somewhere? If not attach it here so I can take a quick look.

Nota de Campo #89 @Ianxxx 2009-10-09 ↳ Re: @BugsB
@BugsBThe dsdt.dsl for my Toshiba Satellite P100 is attached. Bugs

I don't think it is?

Atualização do Autor #35 @wwbsox 2009-10-11 ↳ Re: @Ianxxx

O usuário Master Chief lá no InsanelyMac desenvolveu um patch de DSDT para placas Asus P5K que habilita o despertar até mesmo a partir de teclados USB 2.0 (incluindo o Teclado Apple de alumínio). Passei os últimos dias tentando adaptar essa mesma lógica de métodos `_PRW` e `_PSW` para placas Gigabyte, mas ainda sem sucesso. Continuo tentando!

Se você tem uma placa da série Asus P5K, recomendo fortemente conferir o tópico dele: a quantidade de otimizações de DSDT que ele criou para aquela placa é de deixar qualquer um impressionado.

Nota de Campo #90 @sk1nhd33t 2009-10-11 ↳ Re: @wwbsox
@wwbsoxMaster Chief over at insanelymac has a dsdt patch that on the p5k boards enables wake from usb2 keyboard, including apple keyboard. I have tried for a few days to get this to work on a gigabyte board to no avail. Still trying though. If you have a p5k, I suggest you look up him up. He has sooooo many dsdt patches for that board it…

i wanna take a look at this if you have a direct DL link and try? im also having issues waking from sleep using my aluminum keyboard... or maybe a dsdt.dsl will do if you dont mind :

Nota de Campo #91 @pandar 2009-10-19

I have an installation of 10.6.1 on the ds3p and would like to borrow your solution. I have an 8600gt however. How would I deal with that? I'm using Chameleon RC3 and Netkas's latest boot file. If you can clue me in a bit, I'd appreciate it.

Pandar

Atualização do Autor #37 @wwbsox 2009-10-20 ↳ Re: @pandar

@Pandar

Se você estiver se referindo à correção de USB, tudo o que precisa fazer é substituir a seção de dispositivos USB do seu DSDT pelo código do primeiro post (respeitando os nomes dos dispositivos do seu arquivo).

Se precisar de instruções mais detalhadas passo a passo, pode me enviar uma mensagem privada (MP).

Caso você já utilize injeção gráfica via DSDT, editar a parte de USB não afetará em nada a seção de vídeo. E se quiser adicionar o vídeo ao DSDT depois, basta gerar o bloco `Device (PEGP)` dentro de `Device (PCI0)` usando o ACPI Patcher.

Nota de Campo #92 @kantok 2009-10-31

Works

Thanks wwbsox!
The combination of the methods works perfectly on my EP45-UD3P!
Wake-up issue by mouse and Keyboard has come!

Nota de Campo #93 @stayupforever90 2009-11-04

Thanks to wwbsox to start with, also everyone else who has posted in this thread it has been a lot of help. I am having a problem adding graphics to my DSDT, have searched for PEGP but could not find it. I can find it in registry explorer but have to admit not very good at that bit. Also I think there may be a problem with my SATA fix as SATA shows up as ICH10 AHCI but I cant remove the IOAHCIBlockStorage.kext I am using, if anyone could take a look at my DSDT that would be great. I am using a GA-G33M-DS2R mother board with core2duo E6600 and 4GB ram Nvidia 8800 GTS 512mb graphics running 10.6.1 Retail . Also wondering does anyone's graphics card show up in the PCI cards section of system profiler, and to anyone who takes the time to look at my DSDT

Nota de Campo #94 @atomiX_X 2009-11-05

I've had a working SL setup for months now but I'm still unable to make my Asus P5E wake from USB. Sleep works fine while waking from power button but not from USB. I got this to work in 10.5 using a modified IOUSBFamily.kext but I haven't been able to find one for SL. I realize that this can be fixed with DSDT edits.

I've tried to simply replace the USB section with the one displayed at the start of this thread as wwbsox and others have said but I get a ridiculous amount of compile errors. I get the same results using DSDTse and iASLMe. I'd really appreciate it if someone could take a look. Please see attached and let me know if more specific info is required.

FYI, DSDT is already patched to fake ICH9 as ICH10 and as a result, all my USB ports show as built in and any mass storage devices connected survive sleep/wake.

Atualização do Autor #38 @wwbsox 2009-11-05 ↳ Re: @atomiX_X

@stayupforever90

Eu tenho exatamente a mesma placa de vídeo que você, e o arquivo DSDT que anexei no post #32 já contém a seção `PEGP` pronta que você está procurando!

Sobre a kext IOAHCIBlockStorageInjector, não posso comentar muito porque não a utilizo — uso o patch de DSDT na seção SATA/IDE1 (criado pelo THe KiNG no ProjectOSX) que injeta o Device ID do ICH10 e elimina os ícones laranja nativamente.

E sim, com a injeção via DSDT a minha placa de vídeo também aparece listada na seção "Placas PCI" (PCI Cards) do Perfil do Sistema.

Atualização do Autor #39 @wwbsox 2009-11-05

@atomiX_X

Como a sua placa-mãe é uma Asus, você não pode simplesmente copiar e colar o bloco USB inteiro de uma Gigabyte, pois os nomes dos dispositivos ACPI no BIOS da Asus são diferentes (por exemplo, os controladores EHCI na Asus se chamam `EUSB` e `USBE`), o que explica todos os erros de compilação. Porém, vi que no seu segundo arquivo você manteve os nomes originais da Asus e apenas inseriu o `Method (_DSM, 4...)` dentro de cada um com os Device IDs corretos — esse é o jeito certo!

Se o único problema restante for não conseguir despertar do repouso pelo teclado ou mouse USB, verifique no Perfil do Sistema se eles estão conectados sob um barramento UHCI ou EHCI (Alta Velocidade). Se estiverem sob o barramento de Alta Velocidade, essa é a razão. Como a sua placa é uma Asus, dê uma olhada no tópico da P5K Pro do Master Chief no InsanelyMac, pois o patch de `_PRW`/`_PSW` dele resolve isso especificamente em placas Asus. Boa sorte!

Nota de Campo #95 @atomiX_X 2009-11-05

Thanks for the info wwbsox. I checked and my keyboard and mouse show up under regular USB and not high speed. I tried with another mouse and keyboard to make sure and same deal.

Now that you mention it though this isn't the only issue I've had but it has been the only one that bothers me. The machine also can't do a full hardware restart or shutdown on it's own. Not exactly sure why since I'm using OpenHaltRestart. I'm thinking these might be related.

Nota de Campo #96 @stayupforever90 2009-11-08

Thanks wwbsox but have come across a very strange issue with adding the graphics fix to my dsdt.aml. I have added it with dsdt patcher and my typing it my self all with the same result. My dsdt compiles fine with only one warning as before but OpenGL stops working. By this I mean spinning squares test is not visiable in xbench and also OpenGL Extensions Viewer.app has only Apple software as the render and no choice for my graphics card. My xbench scores fall from around 170 to 110 and my OpenGL Extensions Viewer.app scores fall from in the 3400 range to 60-70 range. I have try'd all different ways of editing both my com.apple.Boot.plist the system one and the one in my extra folder all to no avail. I have try'd to enable OpenGL with the dev tools app Quartz Debug also, the app tells me it is enabled but has no effect. Two really strange things are that front row and chess work though, and I thought both these apps needed OpenGL to run. I have attached a copy of my dsdt with graphics if you could take a look and see if i have made a mistake thank you, just don't know where I am going wrong.

Ps My card did start showing up in PCI cards in system profiler, would really like to get this working any help would be great

Nota de Campo #97 @stayupforever90 2009-11-12

I have done it GFX are now fully working through through DSDT it seems the main issue was EFI strings. Let me explain I run a lot of different partitions for different reasons I have 3 snow leopard partitions 1 leopard partition there is also Linux and Windows 7 in the mix as well (see attached pic). I know its not the best but is just how things have gone as times gone by. Now I was trying to install the DSDT GFX to my SNOWGUID partition. First of all I did not remove the EFI strings from this partition's extra com.apple.Boot.plist but did remove the graphics enabler string. No joy the card would be in system profiler but i just had no QE/OpenGL working as such. So i spent some time working with DSDTSE.app as my DSDT is a bit strange any way. I try'd to many different with not much luck of inserting the graphics code with this great app (a big thank you to EvOSX86 for the app). Then I all most gave up and went back to EFI strings I say all most. My next step was thinking I have to be vanilla as possible so I disconected all of my drives apart from one and reinstalled Snow Leopard on a GUID partition and then I try'd a fresh DSDT.aml with USB SATA and GFX fix it worked how happy was I. Then I reconected my other two drives and it stopped working:'(:'(:'(. So from there I applied the same fixes to my other Snow partitions, but it didn't work on my main MBR Snow partition why? It seems at some time I had written my GFX string to my Library/Preferences/SystemConfiguration/com.apple.Bootplist once deleted I had working QE/OpenGL on all my partitions. I have feel have learned a lot from from doing this and just wanted to share my experience with others may be it could be of some use. For me I have learned EFI and DSDT do not mix but maybe thats just me. Am going to finish with a question though, how does Chameleon reference Boot.plists files from other partitions it is not booting though. And before you think it yes Chameleon was separately installed on all partitions. Thank you to wwbosx and all who have posted in this thread on to my next project speedstepping and sleep thank you again to all OSX86 fans

Nota de Campo #98 @adityaxavier 2010-01-08

I was actually wondering if anyone know how to do it the other way round.. i.e. make the USB from built-in to external. Cause i have my bluetooth in USB3 and its turned off every time the laptop goes to sleep and doesnt work on wak..

Thanks,
Xavier

Nota de Campo #99 @twistoflemon 2010-01-19

Is there a guide somehwere of how to do this? I try using dsdt patcher but when adding the usb code I get compilation errors.

As my ehci usb are also listed as expansion slots I'm hoping this might also help with some other usb problems I'm having like bandwidth problems for my usb webcam...

Nota de Campo #100 @stayupforever90 2010-01-19

What i would say is download an app called DSDTSE it is a very good place to start. I found it very helpful also look at threads about DSDT for your motherboard. All the best and respect to all here

Nota de Campo #101 @EnzoFX 2010-02-20

So I just got a BT Apple KB, and can't wake from sleep with it. Also, doesn't even re-connect or stay connected (however it's supposed to work) after waking. I have to manually disconnect and re-connect it.
I have this UHCI/EHCI implemented, is there something else I can try? Or should I just try another BT adapter. This is the second one I've tried, the first one is an old BT v1.1, and this is a v2.1.
I believe Apple only officially supports a D-Link, and even that one has some revisions that don't allow this functionality. I have found a Kensington that's known to work for someone else, and they are using the UHCI/EHCI fix implemented in Chameleon2. I'd hate to just go out and buy it and it still not work for me.
Any ides are welcomed, thanks guys.

Nota de Campo #102 @xzeroGx 2010-03-07 ↳ Re: @EnzoFX

BT dongle & _WAK mod for wake

@EnzoFXI'd hate to just go out and buy it and it still not work for me. Any ides are welcomed, thanks guys.

Hey EnzoFX,

i've got a Targus ACB10US-B (the silver 4cm one)
bought it in the US for 7$...(shipping to europe was very expensive...)

wake from sleep works via mouse, wired apple alu KB and wireless BT apple KB.
i'm on a Gigabyte G33M-DS2R on 10.6.2 via DSDT mods.

to all who have problems with wake from sleep with a USB 2.0 device:

check your _WAK section in DSDT.
after various tests, i found the solution for me:

the section for "If (LEqual (Arg0, 0x04))" should look like this:
(maybe this works only on my board...)
…
If (LEqual (Arg0, 0x04))
{
If (LEqual (OSFL, Zero))
{
Store (0x58, SMIP)
}

If (LEqual (OSFL, One))
{
Store (0x56, SMIP)
}

If (LEqual (OSFL, 0x02))
{
Store (0x57, SMIP)
}

If (LEqual (OSFX, 0x03))
{
Store (0x59, SMIP)
}
}
...

Before patching, there were some nested if clauses... i deleted them and left only the code above. Maybe this helps someone
sorry for my english.

greets

xzeroGx

Nota de Campo #103 @thepiecesfit 2010-07-03 ↳ Re: @wwbsox
@wwbsoxFirst the issues, than the fixes. My usb1 (UHCI) and usb2 (EHCI) ports were showing up in system profiler as "expansion slots". This was causing 2 main problems for me. First, I had to use the power button to wake the computer from sleep. Second, if I had a usb drive plugged in when the computer went to sleep, I would get a "device…

You are the man. This fixed my issues on p35-DS3L and now i can wake my 10.6.4 hack using the keyboard !

Atualização do Autor #40 @wwbsox 2010-07-10 ↳ Re: @thepiecesfit

De nada! Fazia muuuuito tempo que eu não entrava neste fórum; fico muito feliz em ver que o pessoal ainda está aproveitando as informações deste tópico. Acabei de montar uma máquina para um amigo que estava exatamente com esse mesmo problema de USB no repouso e o patch salvou o dia mais uma vez!

Nota de Campo #104 @Mack N Tosh 2010-07-21

Can this work on a netbook

Any idea if this fix can work on a hackintosh netbook? (It dismounts/crashes USB disks after sleep.) Any ideas? I realize this is an old thread.
thanks. Peace.

Nota de Campo #105 @Epal 2010-08-16

well good news, it fix a part of the issue.

Now i can wake from an usb mouse directly connected to the mobo.

But i cant from the apple alu keyboard, although it is detected during sleep !

16/08/10 08:10:28 kernel Wake reason =
16/08/10 08:10:28 kernel System Wake
16/08/10 08:10:28 kernel USB (EHCI):Port 3 on bus 0xfd has remote wakeup from some device
16/08/10 08:10:28 kernel The USB device Keyboard Hub (Port 3 of Hub at 0xfd000000) may have caused a wake by issuing a remote wakeup
16/08/10 08:10:28 kernel The USB device Apple Keyboard (Port 2 of Hub at 0xfd300000) may have caused a wake by issuing a remote wakeup

but i had to wake up using power button or mouse to do this, then in the console, i see the USB controller saw the tries to wake up from USB keyboard !

Help ! what can i do to fix this ?

I've got GA P35 DS3R

here"s my DSL

Nota de Campo #106 @hackaroni 2011-09-26

Thank you

Wow, 2 years later and @wwbsox's original post of the DSDT USB fix worked for me on a Gigabyte EP45-UD3P ... I believe it's ICH10R. Had success doing this method twice, once for the same board under 10.6.8 and one under 10.5.8.

I used these basic instructions http://tonymacx86.blogspot.com/2009/11/create-and-modif… ↗ to extract, modify, and compile my DSDT but had to add two fixes. Steps 1-4, 7, 8, 9.

Here's the general idea:
1) You get the DSDT tool, install it, and use it to extract your DSDT
2) You use Tonymac blog instructions about adding "Method DGTP" before the _WAK area... you only use part of the fix he mentions so don't copy/paste the whole thing...the important part of the "method" is at the beginning and then it has a sample area.
3) You find the USB section that starts with "Device (USB0)" and you'll replace the entire USB sections with the text from @wwbsox's fix in the first post here. You're basically swapping out the USB sections. I left a one-line space before and after my insertion.
4) If you just try to compile now, you'll probably get some warnings and errors so
5) One of the TonyMac comments tells you the first fix 'The gigabyte-included DSDT is flawed and will not compile. In the two error lines, change the first Local0 parameter to "Zero" (without the quotes).' What they mean is that there are two areas where you will see (Local0, Local0) and you want it to look like (Zero, Local0)
6) And add this at the end of the _WAK Method:
Return(Package(0x02){0x00, 0x00})
7) If you do it right, when you go to compile your DSDT you won't get any warnings.
8) I moved mine to /Extra, renamed it from dsdt.aml to DSDT.aml... and did a sudo chown 0:0 on the DSDT.aml file (or sudo chown root:wheel if you prefer) and sudo chmod 755 on it for good measure... and repaired permissions… then I restarted.
9) This enabled me to sleep/wake USB drives with no device removal errors! Wooohoooo! I have used some alternative IOUSBFamily.kexts before but believe I can remove them now... If your system hangs or something, you can probably boot into single user mode (-s) and remove the DSDT.aml file from there (rename it to DSDT.bak if you want)

Good luck everybody!

Validado com a participação de: @omargoa @Snow @Jedric @twr @Stone-D
Fontes e Registro de Autoria (33 membros creditados · Tópico #3849)
UsuárioContribuição no DossiêPostagensPeríodo Ativo
@wwbsoxAutor Principal442009-08-30 → 2010-07-10
@SnowColaborador Essencial232009-08-31 → 2009-09-15
@EnzoFXColaborador Essencial132009-09-02 → 2010-02-20
@kDawgColaborador Essencial122009-09-01 → 2009-10-09
@IanxxxColaborador Essencial82009-08-31 → 2009-10-09
@xwin78Colaborador Essencial62009-09-17 → 2009-10-07
@osxfr33kColaborador Essencial62009-09-21 → 2009-09-23
@twrColaborador Essencial52009-09-18 → 2009-09-24
@JedricColaborador Essencial52009-09-19 → 2009-09-23
@sk1nhd33tColaborador Essencial42009-09-14 → 2009-10-11
@stayupforever90Colaborador Essencial42009-11-04 → 2010-01-19
@CyCLoBoTColaborador Essencial32009-09-23 → 2009-09-25
@mormegilColaborador22009-08-31 → 2009-09-01
@kramer2kColaborador22009-09-02 → 2009-09-14
@ohwhymeColaborador22009-09-20 → 2009-09-22
@sylvester328Colaborador22009-09-23 → 2009-10-09
@spanakorizoColaborador22009-09-25
@atomiX_XColaborador22009-11-05
@omargoaColaborador12009-08-31
@aed0101@hotmailColaborador12009-08-31
@Voyn1xColaborador12009-09-02
@infinitekColaborador12009-09-06
@BugsBColaborador12009-10-03
@pandarColaborador12009-10-19
@kantokColaborador12009-10-31
@adityaxavierColaborador12010-01-08
@twistoflemonColaborador12010-01-19
@xzeroGxColaborador12010-03-07
@Stone-DColaborador12010-04-03
@thepiecesfitColaborador12010-07-03
@Mack N ToshColaborador12010-07-21
@EpalColaborador12010-08-16
@hackaroniColaborador12011-09-26

Escolher idioma · Choose your language