Распознавание USB-контроллеров UHCI / EHCI как встроенных (Built-in) через патч DSDT для идеальной работы сна и пробуждения
Решение проблемы материнских плат Gigabyte на южных мостах ICH9 / ICH10, при которой порты USB 1.1 (UHCI) и USB 2.0 (EHCI) определяются в «Сведениях о системе» как внешние карты расширения PCI, что приводит к аварийному отключению USB-флешек при засыпании и невозможности разбудить компьютер кликом USB-мыши.
Сначала опишу симптомы проблемы, а затем — само решение.
Мои порты USB 1.1 (UHCI) и USB 2.0 (EHCI) отображались в «Сведениях о системе» (System Profiler) как установленные в «слоты расширения» (Expansion Slots). Это приводило к двум неприятным проблемам. Во-первых, разбудить компьютер из режима сна можно было только нажатием кнопки питания на корпусе. Во-вторых, если перед уходом в сон в порту оставалась подключенной USB-флешка, после пробуждения система выдавала ошибку небезопасного извлечения диска («Device removal error»).
Я объединил два разных патча DSDT: первый исправлял только контроллеры UHCI (не затрагивая EHCI), а второй — наоборот, только EHCI.
Патч DSDT для контроллеров UHCI я взял отсюда: http://www.insanelymac.com/forum/index.php?showtopic=16… ↗
А патч для контроллеров EHCI — отсюда:
http://www.insanelymac.com/forum/index.php?showtopic=15… ↗
После объединения обоих исправлений я могу будить компьютер из режима сна обычным кликом USB-мыши, и мне больше не нужно вручную извлекать USB-накопители перед переводом системы в сон. Кроме того, при загрузке в режиме подробного вывода (-v) из лога полностью исчезло предупреждение «controller will be unloaded across sleep».
Этот метод превосходно работает на моей плате GA-EP35-DS3P и должен подойти для большинства материнских плат Gigabyte на базе южных мостов ICH9 и ICH10 (поскольку идентификаторы устройств Device ID подменяются на нативные от ICH10).
Обратите внимание на USB-устройство с адресом 0x001D0003 (в моем DSDT оно называлось US31) — это устройство редактировать не нужно.
- Участники обсуждения (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
- Справочник оборудования
- Скоростные флешки USB 3.2 ↗ Кулеры и компоненты охлаждения ↗ Материнские платы Gigabyte ↗
Полевые заметки и отчёты сообщества
Отобрано 146 технических ответов из 160 исходных сообщений темы
Отличные патчи — как же здорово, что теперь не нужно курочить системные кексты!
Автором патча для контроллеров EHCI является Apex — вся заслуга принадлежит ему.
Кстати, патч для SATA-контроллера по первой ссылке тоже отлично подошел для моей платы на базе ICH9: теперь AHCI-контроллер отображается в «Сведениях о системе» как Intel ICH10 вместо «Unknown AHCI Controller». В моем DSDT не было отдельной секции SATA, но по этому же адресу располагалось устройство IDE1 — я вставил метод _DSM прямо туда, и всё заработало как часы.
У меня точно такая же проблема. Время от времени при загрузке отваливались клавиатура и мышь (ключи настройки USB в загрузчике Chameleon вроде бы это подлечили), но все порты по-прежнему висят как «Слоты расширения», а будить компьютер из сна приходится кнопкой питания на корпусе.
Я вставил ваш код в свой dsdt.dsl, но при попытке компиляции получаю вот такие ошибки (хотя сам метод DTGP в моем 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)
Подскажете, в чем дело? Спасибо!
@SnowУ меня точно такая же проблема. Время от времени при загрузке отваливались клавиатура и мышь... Я вставил ваш код в свой dsdt.dsl, но при попытке компиляции получаю вот такие ошибки (хотя сам метод DTGP в моем DSDT уже прописан)...
Привет! Прикрепляю свой готовый DSDT для платы GA-P35-DS3L — найди поиском по файлу метод DTGP и посмотри, в какой именно области видимости (Scope) он должен располагаться.
Попробовал перенести метод DTGP в нужное место — те ошибки ушли, но теперь компилятор выдает вот это.
Чертов 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
DSDT для платы GA-EP35-DS3P
@Snow
Последняя ошибка — чисто синтаксическая: нужно просто внимательно проверить все скобки и знаки препинания.
Скорее всего, где-то пропущена запятая или фигурная скобка.
Сравните свой код с моим файлом.
Всё, нашел виновника — я случайно поставил лишнюю закрывающую фигурную скобку } не в том месте. Исправил, файл успешно скомпилировался!
Спасибо всем за подсказки, при следующей перезагрузке протестирую новый .aml в деле.
Кстати, а с этим патчем DSDT нужно ли оставлять вот эти ключи в файле com.apple.Boot.plist?
<key>EHCIacquire</key>
<string>Yes</string>
<key>UHCIreset</key>
<string>Yes</string>
<key>USBBusFix</key>
<string>Yes</string>
Спасибо! Всё заработало как по волшебству (правда, при компиляции выскочило 98 синтаксических ошибок, но с ними я разберусь чуть позже).
Небольшой оффтоп: я использую внешний USB Bluetooth-адаптер для подключения беспроводной мыши Apple Mighty Mouse, и в настройках Bluetooth галочка «Разрешить устройствам Bluetooth будить компьютер» неактивна (серая), так как сам свисток определяется как внешний, а не встроенный (Built-in). Кто-нибудь знает, можно ли через DSDT или строку EFI принудительно объявить USB Bluetooth-адаптер встроенным по аналогии с сетевой картой Ethernet?
@Snow, в моем файле com.apple.Boot.plist этих ключей вообще нет, и всё прекрасно работает без них.
Так, для высокоскоростных шин EHCI патч сработал отлично (теперь они отображаются как встроенные), а вот обычные шины USB 1.1 (UHCI) почему-то остались «слотами расширения».
UPD: Точнее говоря, как «слот расширения» отображается только одна-единственная шина UHCI, на которой висят мои клавиатура и мышь, а все остальные шины (включая обе скоростные EHCI) стали встроенными (Built-in)!
Поскольку одна шина USB всё еще отображается как карта расширения, подозреваю, что в моем DSDT для нее не хватило патча.
Судя по коду устройства (0x2937), его нужно подменить на 0x3a37 — мне просто добавить этот метод еще в одно устройство (например, USB6)?
Вот как выглядит проблемная шина сейчас:
Locatie hostcontroller: Uitbreidingssleuf
Besturingsbestand hostcontroller: AppleUSBUHCI
PCI-apparaatcode: 0x2937
PCI-revisiecode: 0x0002
PCI-fabrikantcode: 0x8086
Busnummer: 0x1a
А вот как выглядит пропатченная соседняя шина:
Locatie hostcontroller: Ingebouwde USB-interface
Besturingsbestand hostcontroller: AppleUSBUHCI
PCI-apparaatcode: 0x3a36
PCI-revisiecode: 0x0002
PCI-fabrikantcode: 0x8086
Busnummer: 0x5d
UPD: Разобрался! В моем DSDT адреса _ADR у устройств USB3 и US31 были поменяны местами по сравнению с примером из шапки. Поменял их — и все шины стали встроенными! Теперь можно смело удалять костыли из com.apple.Boot.plist:
Locatie hostcontroller: Ingebouwde USB-interface
Besturingsbestand hostcontroller: AppleUSBUHCI
PCI-apparaatcode: 0x3a37
PCI-revisiecode: 0x0002
PCI-fabrikantcode: 0x8086
Busnummer: 0x1a
Наконец-то я могу будить компьютер нажатием клавиши сна на клавиатуре (прямо как в Windows)!
Еще раз огромное спасибо всем за помощь!
Поздравляю (Gelukwens)!
А я уже перепробовал всё что можно — моя система вообще отказывается уходить в сон, не говоря уже о пробуждении.
@mormegil
А вы установили кекст SleepEnabler.kext под Snow Leopard? В паре с ним также обязательно должен стоять NullCPUPowerManagement.kext, иначе SleepEnabler будет конфликтовать со штатным управлением питанием. У меня лично нет такой материнской платы, но по отзывам на форуме она отлично дружит с OSx86.
Mormegil, перепроверьте, все ли необходимые под Snow Leopard кексты у вас загружаются:
fakesmc
IOAHCIBlockStorageInjector
NullCPUPowerManagement
OpenHaltRestart
PlatformUUID
SleepEnabler
Плюс правильно пропатченный DSDT и свежий кэш mkext, пересобранный через Kext Utility!
Цитата: «UPD: Разобрался! В моем DSDT адреса _ADR у устройств USB3 и US31 были поменяны местами...»
Точно, я совсем забыл предупредить, что в моем DSDT они тоже шли в обратном порядке! А вы случайно генерировали свой первоначальный dsdt.aml не через Windows-утилиту Patcher02Beta5?
@wwbsox@mormegil, а вы установили кекст SleepEnabler.kext под Snow Leopard? В паре с ним также обязательно должен стоять NullCPUPowerManagement.kext...
Наконец-то нашел причину! Оказывается, всё дело было в дополнительном контроллере JMicron, который в BIOS стоял в режиме IDE вместо AHCI!
Да, эта материнская плата вообще прекрасно совместима с OS X (думаю, это относится ко всей линейке плат Gigabyte на чипсете P45): SATA и гигабитная сеть работают «из коробки», звук отлично заводится через патч AppleHDA, а теперь у меня заработал и полноценный глубокий сон (Suspend-to-RAM)!
Для первичной генерации DSDT я использовал утилиту ACPI Patcher под Windows, так как в ней гораздо больше встроенных патчей. Сами буквенные имена устройств — (USB3), (US31) и т. д. — совершенно условны, значение имеет только их аппаратный адрес (_ADR).
Как я уже писал в шапке темы: «обратите внимание на USB-устройство с адресом 0x001D0003 (в моем DSDT оно называлось US31) — это устройство редактировать не нужно».
И попутный вопрос: кто-нибудь уже встречал рабочий 64-битный кекст IOATAFamily? Очень хотелось бы отключить режим AHCI в BIOS.
@wwbsoxСначала опишу симптомы проблемы, а затем — само решение. Мои порты USB 1.1 (UHCI) и USB 2.0 (EHCI) отображались в «Сведениях о системе» как установленные в «слоты расширения»...
А не могли бы вы выложить свой файл DSDT целиком? Очень хочется посмотреть, за счет чего именно у вас работает пробуждение компьютера кликом USB-мыши.
@kDawgА не могли бы вы выложить свой файл DSDT целиком? Очень хочется посмотреть, за счет чего именно у вас работает пробуждение компьютера кликом USB-мыши.
Мой полный DSDT выложен на первой странице этой темы — с ним отлично работает пробуждение как с клавиатуры, так и с мыши.
@IanxxxМой полный DSDT выложен на первой странице этой темы — с ним отлично работает пробуждение как с клавиатуры, так и с мыши.
На первой странице я вижу только фрагмент кода для секций USB/EHCI. У меня точно такая же материнская плата, но разбудить её ни с мыши, ни с клавиатуры не получается — значит, либо в остальной части вашего DSDT, либо в настройках BIOS есть какое-то важное отличие, которое я упускаю. Очень хочется понять, в чем именно разница.
Обновление: прикрепил свой готовый файл DSDT.aml к первому сообщению темы. В нем уже пропатчены все секции USB, а также блок IDE1 с подменой Device ID на ICH10.
У меня та же беда: компьютер не просыпается ни от USB-клавиатуры, ни от мыши. При этом все порты в «Сведениях о системе» уже отображаются как встроенные (часть как обычные USB, и 1–2 шины как High-Speed USB).
Не совсем понимаю, куда копать дальше...
И еще один момент: в разделе Serial-ATA все мои жесткие диски видны нормально, но в графе названия чипсета (где обычно пишется ICH10, ICH9 и т. д.) просто пустое место. Это лечится через DSDT или нужен какой-то кекст?
Сразу оговорюсь, что я далеко не новичок в мире OSx86 (ставлю хакинтоши еще со времен образа deadmoo), но тут зашел в тупик...
Прикрепляю свой текущий DSDT...
Конфигурация:
Gigabyte GA-P31-DS3L (южный мост ICH7)
Звук ALC888
Процессор Core 2 Duo E7200 @ 3.42 ГГц
Отлично, wwbsox, спасибо за подсказку насчет секции IDE1 — теперь мой контроллер SATA тоже отображается в системе как ICH10!
А не подскажете, в каком месте вашего DSDT прописана видеокарта и как вручную внедрить туда код для моей GeForce 8800 GT?
Не люблю автоматические патчеры, предпочитаю контролировать все правки кода вручную.
Скриншоты до и после инъекции Device ID от ICH10:
ДО
ПОСЛЕ
@SnowОтлично, wwbsox, спасибо за подсказку насчет секции IDE1 — теперь мой контроллер SATA тоже отображается в системе как ICH10! А не подскажете, в каком месте вашего DSDT прописана видеокарта и как вручную внедрить туда код для моей GeForce 8800 GT?...
Этот код сильно зависит от конкретной экземпляра видеокарты: объема видеопамяти, набора видеовыходов (NVCAP) и, самое главное, номера слота на шине PCI. Я снабдил комментариями строчки, на которые нужно обратить внимание (точный адрес шины PCI можно узнать с помощью консольной утилиты gfxutil).
Вот готовый блок кода, который нужно вставить внутрь секции Device (PCI0) — он рассчитан как раз на GeForce 8800 GT с 512 МБ памяти и двумя выходами DVI:
Device (PEGP)
{
Name (_ADR, 0x00010000) //<-- Адрес слота на шине PCI (очень важно)
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", //<-- Конфигурация видеовыходов карты
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", //<-- Объем видеопамяти (очень важно)
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)
}
}
}
Прописывание видеокарты в DSDT (DSDT GFX)
@Snow, разумеется, параметры видеокарты индивидуальны для каждой модели, но я выложу свой DSDT с уже внедренной графикой — найдите внутри устройства PCI0 секцию PEGP, чтобы у вас был наглядный образец для сравнения.
Кроме того, в последнем сообщении от kDawg приведен готовый код как раз для вашей модели видеокарты.
Лично я генерировал графическую секцию через программу ACPI Patcher под Windows: в разделе Graphics выбрал свою модель карты и объем видеопамяти, в поле NVCAP указал Dual-DVI (другие варианты лучше не трогать), а для шины PCI0 отметил галочки «Use DSDT GFX» и «PEGP».
У меня всё заработало, хотя заметил одну странность: если сгенерировать через ACPI Patcher сразу бинарный файл .aml, то утилита iASLMe под Mac OS X спокойно декомпилирует и компилирует его обратно. А вот если сохранить из ACPI Patcher исходник .dsl и попытаться скомпилировать его в iASLMe, сыплется куча ошибок. Хм…
Удачи!
Отлично, парни! Сначала попробую вставить код от kDawg, тем более что у меня точно такая же карта — GeForce 8800 GT 512 МБ с двумя портами DVI в первом слоте PCIe.
Если не взлетит, тогда уж воспользуюсь ACPI Patcher, просто не хочется генерировать таблицу заново, чтобы не затереть уже внесенные правки.
Отпишусь по результатам!
UPD: А где именно в программе IORegistryExplorer посмотреть этот адрес слота PCI (_ADR)?
UPD 2: Утилита gfxutil выдала мне путь DevicePath = PciRoot(0x1)/Pci(0x1,0x0)/Pci(0x0,0x0). Значит ли это, что значение _ADR должно быть таким:
0x101000000
Графика в DSDT
@Snow
Мне тоже совсем не хотелось переделывать свой DSDT с нуля, поэтому я просто сгенерировал в ACPI Patcher временный DSDT с графикой и скопировал оттуда готовую секцию PEGP в свой рабочий файл со всеми остальными патчами.
Кстати, в IORegistryExplorer моя видеокарта висела на адресе PCI 1, но при выборе PCI 1 в ACPI Patcher программа вообще не добавляла код в DSDT — пришлось выбрать PCI 0, и всё встало на свои места.
Готово!
Я вставил код от kDawg один в один без изменений, так как реальный адрес слота _ADR оказался равен 0x00010000 — и всё завелось с пол-оборота!
Еще раз огромное спасибо всем за помощь!
Кажется, у меня осталась всего одна мелкая загвоздка (пока я не обзавелся оригинальной клавиатурой Apple).
Даным-давно я собрал в программе Ukelele собственную раскладку клавиатуры, идеально совпадающую с моей бельгийской ПК-клавиатурой, но время от времени OS X при загрузке самопроизвольно сбрасывает ее на стандартную бельгийскую раскладку Apple.
Я пробовал удалить штатный пакет раскладок из /System/Library/Keyboard Layouts, чтобы заблокировать его подгрузку, но после этого клавиатура вообще перестала работать (не знаю, из-за удаления бандла или на фоне моих экспериментов с DSDT).
Вернул штатный бандл на место — клавиатура снова ожила.
Видимо, придется переназначить клавиши через утилиту QuicKeys.
Огромное спасибо за этот фикс! (Y)
Я несколько недель бился со своим DSDT, пытаясь победить эту проблему, и до сегодняшнего дня был вынужден сидеть на модифицированном IOUSBFamily от Slice.
@Voyn1xОгромное спасибо за этот фикс! (Y) Я несколько недель бился со своим DSDT, пытаясь победить эту проблему, и до сегодняшнего дня был вынужден сидеть на модифицированном IOUSBFamily от Slice.
Рад, что вам помогло! Вся благодарность принадлежит авторам оригинальных патчей — я лишь объединил два решения в одно и оформил их в отдельной теме, чтобы людям не приходилось перелопачивать десятки страниц форума.
Snow, я тоже заводил свою GeForce 9800 GT через DSDT с помощью утилиты ACPI Patcher — работает отлично, главное правильно выставить параметры карты.
Ребята, а кто-нибудь уже применял этот USB-патч на материнской плате GA-P35-DS3L?
У меня порты USB тоже отображаются как «Слоты расширения» (причем только два из них — как высокоскоростные High-Speed), и компьютер не просыпается от клавиатуры и мыши. Но что еще хуже — иногда при включении компьютера клавиатура вообще не определяется! В BIOS у меня включена опция USB Keyboard Support (а для мыши выключена) — всегда гадал, не связано ли это с ней.
UPD: только что проверил уход в сон с воткнутой USB-флешкой — так и есть, при пробуждении выскакивает ошибка небезопасного извлечения диска («Device Removal»).
Очень хочу применить этот патч, но раньше никогда не правил DSDT вручную. Кстати, а почему одно устройство с адресом 0x001D0003 нужно оставлять нетронутым?
На всякий случай прикрепляю фрагмент своего файла dsdt.dsl с секцией USB — вдруг кто-нибудь поможет ускорить процесс =P
Огромное спасибо, wwbsox!
UPD:
Пока всё просто шикарно =D
Компьютер теперь мгновенно просыпается от клавиатуры и мыши, я в полном восторге! Теперь осталось победить автоматический уход в сон по таймеру простоя, хех.
Увы, проблему с периодическим отваливанием USB-клавиатуры при холодном старте или перезагрузке (примерно через раз) этот патч всё-таки не решил =(
Ведь если я отключу USB Keyboard Support в BIOS, клавиатура перестанет работать в меню загрузчика Chameleon, верно? Так что отключать эту опцию смысла нет =/
А с автоматическим уходом в сон по простою (sleep on idle) история такая:
Раньше автозасыпанию мешал пишущий DVD-привод, как подробно описано в этой ветке: http://www.insanelymac.com/forum/index.php?showtopic=17… ↗ (последний пункт там как раз мой).
Однако сейчас я начисто переустановил систему с жесткого диска на жесткий диск, вообще не подключая DVD-привод к материнской плате, и компьютер всё равно не засыпает сам по истечении заданного времени! В момент, когда должен сработать таймер сна, я слышу характерный звук парковки или раскрутки жесткого диска — то есть система явно пытается уснуть, но что-то ей не дает.
И вторая странность: у меня вообще перестал включаться экранный хранитель (Screensaver) =P Какие бы интервалы времени я ни выставлял для заставки, выключения монитора и сна компьютера. А заставка мне очень нужна как обходной маневр для странного бага моей видеокарты GeForce 9800 GT: если монитор только-только начал гаснуть по таймеру (еще даже не успев перейти в ждущий режим), и я в эту же секунду трону мышь, то при включении экрана вместо рабочего стола на несколько секунд появляется цветная рябь и «снег», пока карта заново не инициализирует видеорежим (причем этот баг проявляется и со строками EFI, и с инжектом через DSDT). Поэтому раньше у меня сначала включалась экранная заставка, а уж если я действительно отошел от компьютера надолго — гас монитор и включался сон.
@SnowКажется, у меня осталась всего одна мелкая загвоздка (пока я не обзавелся оригинальной клавиатурой Apple). Даным-давно я собрал в программе Ukelele собственную раскладку клавиатуры... но время от времени OS X при загрузке самопроизвольно сбрасывает ее на стандартную...
Единственный рабочий способ, который мне помог навсегда закрепить кастомную раскладку — это закинуть файл раскладки в систему еще до первой загрузки и выбрать ее прямо в окне первоначального Ассистента настройки Mac OS X.
И после этого она перестала слетать? Обалдеть, необычное решение, но главное, что работает! Правда, переустанавливать систему ради этого я, конечно, не стану, хе-хе.
Кстати, только что заметил, что моя видеокарта 8800 GT теперь отображается в «Сведениях о системе» еще и в разделе «Карты PCI». Я вставил код от kDawg без изменений внутрь секции PCI0, и всё работает отлично — так и должно быть?
Для этого вовсе не нужно переустанавливать систему — достаточно повторно запустить Ассистент настройки (удалив файл .AppleSetupDone).
Разве что в графе шины теперь написано PCIe...
Ребята, так кто-нибудь подскажет, как вылечить периодическое пропадание USB-клавиатуры при старте системы?
Плата GA-P35-DS3L, загрузчик Chameleon 2, видео, сеть, этот патч USB и звук Legacy HDA прописаны в DSDT.
UPD: Только что заметил, что для отправки документа на печать мне пришлось перевоткнуть кабель USB-принтера =/. Что вообще происходит с портами? При этом мышь работает как часы и ни разу не отваливалась...
Может, стоит все-таки вернуть эти ключи в com.apple.Boot.plist загрузчика Chameleon?
<key>EHCIacquire</key>
<string>Yes</string>
<key>UHCIreset</key>
<string>Yes</string>
<key>USBBusFix</key>
<string>Yes</string>
Правда, не знаю, не будут ли они конфликтовать с нашим патчем DSDT из этой темы. Кто-нибудь проверял?
@EnzoFX
Я списался с несколькими владельцами такой же материнской платы, как у вас — ни у кого из них подобных проблем с отваливающейся клавиатурой не наблюдается. Если хотите, прикрепите сюда свой файл DSDT, я посмотрю, в чем может быть загвоздка.
Нативное управление питанием процессора (DSDT SpeedStep)
@Всем владельцам материнских плат Gigabyte
Кому-нибудь уже удалось завести полноценные P-States и C-States на платах Gigabyte чисто через DSDT?
Подумываю создать отдельную тему по настройке DSDT SpeedStep специально для плат Gigabyte… если, конечно, такая ветка уже где-то не существует.
В свой DSDT я таблицы SpeedStep пока не прописывал, но судя по утилите CPU-i, сброс частот отчасти работает уже сейчас: множитель и тактовая частота процессора в простое исправно снижаются, однако напряжение ядра (Vcore) постоянно держится на максимальном уровне (что сводит на нет половину смысла энергосбережения).
CPU-i — это отличная утилита, которую я скачал с российского форума applelife.ru. Я запускал ее в паре с программой CPUTest (в 4 потока, аналог Prime95 под Mac), чтобы сравнить показатели процессора в простое и под полной нагрузкой. Еще одна удобная функция CPU-i — она выводит полный список всех поддерживаемых вашим процессором состояний P-States с точными значениями множителя и напряжения для каждого шага (у моего процессора их шесть).
Используя эти данные, можно вручную прописать все шесть состояний P-States в секцию процессора в DSDT, а таблицы C-States извлечь из дампов SSDT и тоже интегрировать напрямую в DSDT. Я уже нашел подробные материалы и даже готовый файл DSDT.aml под мой процессор Core 2 Quad Q9550, но он был собран для материнской платы ASUS, поэтому структура DSDT там заметно отличается.
На выходных постараюсь выложить саму утилиту и несколько скриншотов.
Вот две очень толковые темы по этому вопросу: http://www.insanelymac.com/forum/index.php?showtopic=17… ↗ и http://www.insanelymac.com/forum/index.php?showtopic=14… ↗ (причем отдельная подгрузка таблиц SSDT при старте уже не требуется — всё можно объединить внутри одного файла DSDT.aml).
Буду невероятно признателен, если вы взглянете на мой DSDT, wwbsox! Я уже начинаю думать, не появились ли эти странности после перехода на DSDT (хотя вряд ли, но я уже просто не знаю, на что грешить).
Специально проверил: когда при загрузке отваливается клавиатура, одновременно с ней отваливается и USB-принтер! Может быть, дело в версии BIOS? И еще изредка при старте не подгружается цветовой профиль монитора — приходится открывать «Системные настройки» -> «Мониторы», и только в этот момент профиль применяется. Может, у меня и видеокарта в DSDT прописана не совсем корректно?
И еще вопрос: не может ли возникать конфликт из-за того, что в BIOS я отключил все старые порты (LPT, COM, FDD и т. д.), а в таблице DSDT все эти устройства остались описанными?
Моя система:
Материнская плата GA-P35-DS3L rev. 2.0
Видеокарта GeForce 9800 GT, сетевая карта и звук заведены через DSDT (сгенерирован в ACPI Patcher).
Вот ссылка на мой файл dsdt.dsl: kt tns.org/0zjbl
И специально отмечу, что во второй системе Windows 7 на этом же компьютере все USB-устройства работают абсолютно безупречно.
Когда вы открываете «Сведения о системе», все ли порты USB отображаются как встроенные (Built-in)? И в каком разделе видны принтер и клавиатура — на обычной шине USB или на высокоскоростной шине High-Speed USB? Кажется, вы упоминали, что уже пробовали отключать опцию «Legacy USB Storage Detect» в BIOS? На некоторых платах это действительно помогает, хотя на платах Gigabyte серии P35 я с такой проблемой ни разу не сталкивался. Сегодня вечером обязательно посмотрю ваш DSDT.
Что касается отключения контроллеров в BIOS: само по себе выключение периферии в меню BIOS никак не меняет содержимое таблицы DSDT, поскольку DSDT формируется из полного образа прошивки ROM, где описаны все узлы платы независимо от текущих галочек в настройках. Тем не менее обязательно убедитесь, что у вас прошита самая свежая версия BIOS — зачастую обновление прошивки решает множество странных аппаратных глюков.
А чтобы проверить, виноват ли в проблеме ваш текущий DSDT, попробуйте сгенерировать в ACPI Patcher чистый DSDT напрямую из файла прошивки BIOS (без каких-либо дополнительных патчей и инжектов устройств) и загрузиться с ним. Если проблема останется — значит, дело точно не в DSDT.
Показать ещё 103 заметок сообществаПолная архивная запись
@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
@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.
@Snow
В «Сведениях о системе» моя алюминиевая клавиатура Apple отображается на высокоскоростной шине High-Speed USB, а мышь Rocketfish подключена к хабу клавиатуры и видна как обычное устройство USB. Кстати, я натыкался на страницу с готовым кодом DSDT специально под ваш четырехъядерный Q6600 со всеми прописанными состояниями P-States для нативного SpeedStep — найду ссылку в закладках и скину вам. Осталось только подобрать правильные значения под мой Q9550.
А вот и обещанная утилита CPU-i.
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
Temps in Leo are low 30's, especially now with colder climate. I guess it doesn't drop the voltage properly.
У меня наблюдается ровно та же картина: множитель и тактовая частота процессора в простое сбрасываются, а вот напряжение ядра остается зафиксированным на максимальном значении верхнего P-State.
Но если явно прописать таблицы P-States и C-States с нужными VID в DSDT, напряжение тоже начнет снижаться. Сейчас как раз изучаю этот вопрос и скоро протестирую на своей плате.
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…
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.
Сам аппаратный контроллер ICH9/R (официально не поддерживаемый Apple), разумеется, никуда не делся — мы просто подменили в DSDT его идентификаторы Device ID на коды от южного моста ICH10, чтобы Mac OS X считала его родным оборудованием.
Дополнительный SATA-контроллер JMicron я в BIOS пока отключил — жду, пока кто-нибудь скомпилирует соответствующий кекст под 64-битную архитектуру (благо Apple уже выложила исходники Snow Leopard).
Что касается предупреждений «Sound assertion» в логе загрузки: до них у меня руки еще не дошли, но подозреваю, что они возникают из-за несовпадения параметров layout-id и PinConfigurations, прописанных в DSDT, со значениями внутри самого кекста AppleHDA.
Как только закончу с отладкой нативного SpeedStep (P-States и C-States) в DSDT, займусь полировкой звука.
@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.
EnzoFX, а вы пробовали загрузиться с чужими файлами DSDT из этой темы? У Ianxxx и еще нескольких участников точно такая же материнская плата, как у вас. Лично у меня в BIOS все настройки USB включены по умолчанию, отключен только дополнительный контроллер JMicron.
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.
На своей GeForce 8800 GTS, прописанной через DSDT, никаких графических артефактов при выходе дисплея из режима ожидания я не замечал (кстати, в Snow Leopard строчка о статусе QE/CI из «Сведений о системе» вообще исчезла — так задумано самой Apple). Платы серий EP35 и P35 построены на одном и том же чипсете и отличаются лишь системой энергосбережения Dynamic Energy Saver на моделях с литерой E.
Что касается автоматического ухода в сон по таймеру простоя: у меня он работает, но с одной особенностью — компьютер засыпает ровно через пять минут после того, как гаснет монитор. То есть если выставить таймер сна на 1 час, то через час погаснет экран, а системный блок проработает еще ровно пять минут и только потом уйдет в сон. Лично меня это совершенно не напрягает.
@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
@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"
Нет, с алюминиевой клавиатуры Apple разбудить компьютер у меня тоже пока не получается — я бужу систему кликом мыши Rocketfish. Недавно видел на форуме альтернативный вариант патча DSDT для портов EHCI, хочу опробовать его (как только снова найду ту вкладку). Если сработает — обязательно обновлю первый пост темы.
При этом с обычных (не-Apple) USB-клавиатур пробуждение у большинства пользователей работает без проблем.
@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..
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.
@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.
Что ж, перепробовал несколько разных вариантов конфигурации USB в DSDT — пробуждение с алюминиевой клавиатуры Apple на плате EP35-DS3P так и не заработало. При этом на моей второй плате GA-EP45-DS3L эта же клавиатура будит компьютер «из коробки» вообще без правок DSDT — видимо, всё дело в том, что там стоит нативный южный мост ICH10.
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.
@kDawg
А на своей плате GA-EP35-DS4 вы используете именно тонкую алюминиевую клавиатуру Apple?
@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?
@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.
@xwin78@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.
Take a look at this post:
UHCI/EHCI Built in with dsdt fix →
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.
@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.
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.
@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?
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 ?
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!
@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?
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
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))
}
}
}
Прикрепите сюда свой полный исходный файл dsdt.dsl (до внесения правок) — я сам внесу в него нужные патчи и скомпилирую. В вашем логе компилятор ругается на конкретные номера строк, но без полного текста DSDT невозможно понять, к чему они относятся.
И заодно укажите точную модель вашей материнской платы и остального железа — так владельцам аналогичных конфигураций будет проще вам подсказать.
@ wwbsox
could you post your DSDT file---I would like to compare it to mine for order etc.
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
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?
@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
@xwin78
Мой готовый файл DSDT прикреплен к самому первому сообщению темы.
Кстати, ребята, нет ли у кого-нибудь под рукой старого концентратора USB 1.1? Я всё пытаюсь заставить алюминиевую клавиатуру Apple будить компьютер из режима сна на чипсете ICH9.
Моя мышь Rocketfish будит систему без проблем, так как определяется на шине USB 1.1 (UHCI), тогда как алюминиевая клавиатура Apple из-за встроенного в нее хаба садится на высокоскоростную шину USB 2.0 (EHCI). У меня возникла теория: если подключить клавиатуру Apple через старый хаб USB 1.1, она принудительно зарегистрируется на шине UHCI и сможет будить компьютер! К сожалению, у меня дома не осталось ни одного старого хаба USB 1.1 для проверки.
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
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!
@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?
@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 !
@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.
@osxfr33k, выложите свой полный файл DSDT целиком — так поправить его будет гораздо проще.
@sk1nhd33t, да, я использую полноразмерную проводную алюминиевую клавиатуру Apple с цифровым блоком.
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...
Итак… продолжаю копать проблему с пробуждением от алюминиевой клавиатуры Apple, и наша теория насчет шины USB 1.1 полностью подтвердилась! Компьютер не просыпается от нажатия клавиш исключительно потому, что клавиатура садится на контроллер USB 2.0 (EHCI).
Ради эксперимента я зашел в BIOS в раздел Integrated Peripherals и отключил контроллер USB 2.0 (EHCI). И что вы думаете? С отключенным USB 2.0 алюминиевая клавиатура Apple будит систему из сна в ста процентах случаев!
Понятно, что как постоянное решение это не годится (особенно если вы пользуетесь внешними USB-накопителями, хотя лично у меня внешние диски подключены по eSATA). Кроме того, при отключении USB 2.0 в BIOS из восьми задних портов на моей плате продолжают работать только два.
Но это доказывает, что подключение клавиатуры через копеечный переходник или хаб USB 1.1 действительно решит проблему с пробуждением!
А если копать глубже, то корень проблемы явно кроется в описании контроллеров EHCI в таблице DSDT. Я уже протестировал 4 или 5 различных вариантов патчей для секции EHCI — пока ни один не дал нужного эффекта, но решение наверняка существует, так что буду искать дальше.
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 .
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.
@osxfr33k
Далеко не всем материнским платам требуется патч RTC против сброса CMOS в Snow Leopard (на вашей плате ASUS он может и не понадобиться, а вот на платах Gigabyte нужен почти всегда).
Бегло взглянул на ваш файл: метод DTGP на месте, но секция видеокарты вставлена не совсем туда, куда нужно. Давайте поправим её расположение, чтобы вы могли полностью убрать строку EFI из com.apple.Boot.plist.
Я уже скачал с сайта ASUS последнюю версию прошивки BIOS для вашей платы и вечером после работы прогоню её через ACPI Patcher под Windows со всеми патчами и инжектом графики.
По полученному образцу я сверю точное расположение графического блока, исправлю ваш рабочий DSDT и выложу оба варианта на проверку.
@ohwhyme
Увы, на моей плате при отключении контроллера USB 2.0 в BIOS работоспособными остаются только два нижних порта на задней панели (в режиме USB 1.1), а остальные задние порты полностью обесточиваются (передние порты корпуса я не проверял, но два порта на самой клавиатуре Apple при этом работают).
Ведь стандарт USB 2.0 или USB 1.1 привязан не к конкретному физическому разъему на плате, а к самому подключаемому устройству: в какой бы разъем вы ни воткнули устройство USB 2.0, маршрутизатор чипсета перекинет его на шину EHCI, а устройство USB 1.1 — на шину UHCI.
Поэтому вся задача сводится к тому, чтобы либо научить контроллер EHCI будить плату, либо заставить клавиатуру Apple регистрироваться на шине USB 1.1 (UHCI).
@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?
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.
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.
@Jedric
Я внес патчи для контроллеров USB0–USB6 в ваш файл (секцию EHCI трогать не стал, раз вы написали, что с ней у вас уже всё в порядке). Файл скомпилировался без единой ошибки! Выскочило лишь несколько предупреждений (Warnings) в заводской секции управления напряжением Vcore, но на компиляцию они никак не влияют. Прикрепляю как исходник .dsl, так и готовый бинарник .aml — сравнивайте и тестируйте. Удачи!
@osxfr33k
Попробовал сгенерировать DSDT напрямую из последней прошивки BIOS для вашей платы ASUS — при компиляции выскочила ошибка переполнения буфера (видимо, специфика таблиц ASUS), но сама графическая секция сформировалась корректно.
Прикрепляю текстовый фрагмент с кодом для вашей видеокарты, а также полный файл .dsl, сгенерированный утилитой ACPI Patcher под Windows (в качестве образца), чтобы вы могли наглядно увидеть, в какое именно место внутри устройства PCI0 следует вставлять блок PEGP.
@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
@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.
@sylvester328
Да, при подключении через хаб USB 1.1 оба боковых порта на самой клавиатуре Apple тоже будут работать на скорости USB 1.1. Впрочем, если подключить к клавиатуре обычную флешку USB 2.0, система и так часто ругается на нехватку питания и принудительно отключает разъем.
Тем не менее меня постоянно спрашивают, как заставить алюминиевую клавиатуру Apple будить компьютер на платах с южным мостом ICH9, и хаб USB 1.1 — самый простой аппаратный обходной путь.
Как я уже говорил, наверняка существует и чисто программный способ пропатчить секцию EHCI в DSDT, просто я до него еще не докопался.
Ведь на плате GA-EP45-DS3L (ICH10) эта же самая клавиатура будит систему вообще без каких-либо патчей, а на GA-EP35-DS3P (ICH9R) — упорно не хочет.
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.
@osxfr33k
Во-первых, оставьте свою аудиосекцию в том виде, в каком она у вас была: программа ACPI Patcher умеет генерировать звук только под кодеки ALC888 и ALC889a, а на вашей плате стоит другой кодек. Я запускал патчер исключительно ради получения шаблона видеокарты.
Во-вторых, что касается точного места вставки графического блока внутри PCI0 — именно туда его помещает ACPI Patcher (проверить лично не могу, так как у меня нет вашей платы).
В-третьих, насчет идентификатора PNP0A08 вместо PNP0A03: в прошивке BIOS v1302 для вашей платы, как и во всех остальных DSDT плат ASUS и Gigabyte, с которыми я работал, у корневой шины PCI0 прописано именно Name (_HID, EisaId ("PNP0A03")).
И наконец, я прикрепил к посту скомпилированный в Windows файл .aml (для справки), поскольку исходник .dsl после ACPI Patcher на Mac компилироваться отказывается, тогда как бинарный .aml отлично декомпилируется и собирается обратно через iasl.
Самый надежный путь для вас — взять за основу свой проверенный рабочий DSDT и аккуратно перенести в него только нужные секции из этого образца. Удачи!
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.
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
@CyCLoBoT
Работаю над вашим файлом. Обычная мышь или клавиатура USB 1.1 с этим патчем будут будить систему без проблем.
Я внес исправления для всех секций USB в ваш DSDT — протестируйте прикрепленный файл.
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 ...
@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.
@CyCLoBoT
Это ваш собственный DSDT, который вы прислали мне в личку — я лишь отредактировал в нем секцию USB. Но, кстати говоря, у вас ведь плата GA-EP45-DQ6 на южном мосту ICH10? На моей плате GA-EP45-DS3L с тем же мостом ICH10 сон и пробуждение от клавиатуры работают идеально вообще без каких-либо патчей USB в DSDT.
@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.
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
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
For those with an Apple keyboard, what about getting a strictly USB 1.1 hub? and plug it in through there =P
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
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?
@EnzoFX
Да, всё верно: мне уже попадались платы, в DSDT которых устройство с адресом 001D0003 отсутствовало вовсе. Патч нужно вносить только в контроллеры с адресами D0, D1, D2, A0, A1 и A2.
А идея с хабом USB 1.1 действительно выручит тех, кому кровь из носу нужно будить систему на ICH9 именно с алюминиевой клавиатуры Apple.
@ 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)?
@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.
@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.
@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.
@BugsBThe dsdt.dsl for my Toshiba Satellite P100 is attached. Bugs
I don't think it is?
Участник Master Chief с форума InsanelyMac разработал блестящий патч DSDT для материнских плат серии ASUS P5K (на том же южном мосту ICH9R), который позволяет будить компьютер с любой клавиатуры USB 2.0, включая алюминиевую клавиатуру Apple! Я уже несколько дней пытаюсь адаптировать его код под свою плату Gigabyte, но пока безуспешно — впрочем, сдаваться не собираюсь.
А вот если у вас плата серии ASUS P5K, настоятельно рекомендую заглянуть в его тему: количество и глубина его разработок по DSDT для этих плат просто поражают воображение!
@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 :
@sk1nhd33t
http://www.insanelymac.com/forum/index.php?showtopic=18… ↗
В третьем сообщении этой ветки собраны все актуальные версии DSDT от Master Chief.
Повторюсь: для владельцев ASUS P5K Pro это настоящий клад, ну а я продолжаю искать способ перенести его решение для алюминиевой клавиатуры на платы Gigabyte.
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
@Pandar
Если речь идет о патче для USB-контроллеров, то вам достаточно просто заменить секцию USB в своем DSDT на код из первого сообщения этой темы.
Если понадобятся более подробные пошаговые инструкции — напишите мне в личку.
А видеокарта у вас сейчас заведена через DSDT? Если да, то замена блока USB никак не затронет графическую секцию. Если же вы только планируете перенести видеокарту в DSDT, вам нужно будет добавить устройство Device (PEGP) внутрь секции Device (PCI0) (я генерировал этот код через утилиту ACPI Patcher).
Works
Thanks wwbsox!
The combination of the methods works perfectly on my EP45-UD3P!
Wake-up issue by mouse and Keyboard has come!
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
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.
@stayupforever90
У меня точно такая же видеокарта, и в файле DSDT, который я прикреплял к посту №32, уже есть готовая секция PEGP под нее.
По поводу кекста IOAHCIBlockStorageInjector ничего сказать не могу, так как сам им не пользуюсь — насколько я знаю, на форуме ProjectOSX публиковали патч DSDT (от THe KiNG), который полностью избавляет от необходимости в этом инжекторе.
И да, при инжекте через секцию PEGP видеокарта также начинает отображаться в разделе «Карты PCI» в «Сведениях о системе» — это совершенно нормально.
@atomiX_X
Поскольку у вас материнская плата ASUS, вы не можете просто скопировать и вставить блок USB от платы Gigabyte целиком — именно поэтому компилятор выдал столько ошибок. Впрочем, судя по вашему файлу, вы уже правильно добавили метод Method (_DSM, 4...) с нужными Device ID внутрь каждого контроллера USB, просто на платах ASUS контроллеры EHCI называются иначе (EUSB и USBE вместо EHC1 и EHC2).
Если единственная оставшаяся проблема заключается в том, что компьютер не просыпается от клавиатуры или мыши, загляните в «Сведения о системе» и проверьте, на какой именно шине висят ваши устройства ввода — обычной USB (UHCI) или высокоскоростной High-Speed USB (EHCI). Как я уже выяснил, устройства на шине High-Speed USB не будят систему без специального патча: моя мышь Rocketfish (USB 1.1) будит компьютер без проблем, а алюминиевая клавиатура Apple (USB 2.0) — нет.
Но так как у вас плата ASUS, обязательно изучите тему Master Chief по плате P5K Pro на InsanelyMac — там выложен рабочий код DSDT для пробуждения с клавиатуры Apple на платах ASUS. Удачи!
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.
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
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
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
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...
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
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.
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
@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 !
Не за что! Я уже целую вечность не заглядывал на этот форум — очень приятно видеть, что эта тема до сих пор приносит пользу людям. Кстати, я как раз только что собрал компьютер для друга и столкнулся на нем ровно с этой же проблемой с USB и сном, так что собственная шпаргалка пришлась как нельзя кстати!
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.
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
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!
Источники и реестр соавторов (указано участников: 33 · Тема #3849)
| Участник | Роль в досье | Сообщений | Период активности |
|---|---|---|---|
| @wwbsox | Основной автор | 44 | 2009-08-30 → 2010-07-10 |
| @Snow | Ключевой участник | 23 | 2009-08-31 → 2009-09-15 |
| @EnzoFX | Ключевой участник | 13 | 2009-09-02 → 2010-02-20 |
| @kDawg | Ключевой участник | 12 | 2009-09-01 → 2009-10-09 |
| @Ianxxx | Ключевой участник | 8 | 2009-08-31 → 2009-10-09 |
| @xwin78 | Ключевой участник | 6 | 2009-09-17 → 2009-10-07 |
| @osxfr33k | Ключевой участник | 6 | 2009-09-21 → 2009-09-23 |
| @twr | Ключевой участник | 5 | 2009-09-18 → 2009-09-24 |
| @Jedric | Ключевой участник | 5 | 2009-09-19 → 2009-09-23 |
| @sk1nhd33t | Ключевой участник | 4 | 2009-09-14 → 2009-10-11 |
| @stayupforever90 | Ключевой участник | 4 | 2009-11-04 → 2010-01-19 |
| @CyCLoBoT | Ключевой участник | 3 | 2009-09-23 → 2009-09-25 |
| @mormegil | Участник | 2 | 2009-08-31 → 2009-09-01 |
| @kramer2k | Участник | 2 | 2009-09-02 → 2009-09-14 |
| @ohwhyme | Участник | 2 | 2009-09-20 → 2009-09-22 |
| @sylvester328 | Участник | 2 | 2009-09-23 → 2009-10-09 |
| @spanakorizo | Участник | 2 | 2009-09-25 |
| @atomiX_X | Участник | 2 | 2009-11-05 |
| @omargoa | Участник | 1 | 2009-08-31 |
| @aed0101@hotmail | Участник | 1 | 2009-08-31 |
| @Voyn1x | Участник | 1 | 2009-09-02 |
| @infinitek | Участник | 1 | 2009-09-06 |
| @BugsB | Участник | 1 | 2009-10-03 |
| @pandar | Участник | 1 | 2009-10-19 |
| @kantok | Участник | 1 | 2009-10-31 |
| @adityaxavier | Участник | 1 | 2010-01-08 |
| @twistoflemon | Участник | 1 | 2010-01-19 |
| @xzeroGx | Участник | 1 | 2010-03-07 |
| @Stone-D | Участник | 1 | 2010-04-03 |
| @thepiecesfit | Участник | 1 | 2010-07-03 |
| @Mack N Tosh | Участник | 1 | 2010-07-21 |
| @Epal | Участник | 1 | 2010-08-16 |
| @hackaroni | Участник | 1 | 2011-09-26 |