Jump to content

Lem

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. Lem

    Patching DSDT for HP Elitebook 8540w

    Hi ed_co, 1) The DSDT allows the USB 2.0 ports to work perfectly. It also fixes the CMOS corruption issues. Sleep doesn't work yet, unfortunately. You can use [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] to install drivers that will enable wired networking, USB 3.0 ports, and PS/2 (built in keyboard and trackpad). I had some issues with the resolution of the trackpad, but I think they are solvable. I haven't tried yet though (using USB mouse for now). I remember reading somewhere about tweaking the plist for VoodooPS2, I just haven't tried it yet, but I am guessing that is the solution. Wireless doesn't work, and probably never will- just buy a wireless USB dongle. I grabbed a ENUWI-G2 that I had laying around the house, and I was able to use Realtek 8187B drivers for 10.4 with it. There should be plenty of other dongles that will work too if you investigate. Theoretically maybe you could also put a different WLAN card into the laptop, but that is more than I am willing to do in my case. 2) Haven't got any more solutions yet- haven't had a chance to work on this for a week or so. 3) I'd still like to get audio working, that's my main goal. VoodooHDA does NOT seem to work properly with the IDT codec in this laptop, so it is probably a matter of patching the standard AppleHDA stuff to recognize the codec and wire up all of the pins. Fixing sleep would be nice but not as important to me. Battery reporting and screen brightness control would also be nice. 4) I am using Chameleon installed using the latest [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] (3.4) 5) Graphics was a bit of a challenge. I believe that my Snow Leopard disc is 10.6.0 (don't have it handy at the moment, but I'm pretty sure) and not the more recent 10.6.3(?) disc. I use [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] to boot the installer, but it would just come up with a white screen (the system was booted, I could tell by its activity, but there was no screen display). If I turn OFF the GraphicsEnabler, then instead I get a kernel panic! Fun times. I did find a solution- to use the 10.6.0 installer, I had to turn off GraphicsEnabler AND specify the video mode manually. Then the built in display would work. Let me give you a rundown of what I did (from memory)... Boot 10.6.0 installer using [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] 2.7. Use these custom boot options: -v GraphicsEnabler=no "Graphics Mode"="1024x768x32@60" This should get you into the installer, NO USB WORKING, built-in keyboard works, but built-in mouse does NOT. You will have to operate the installer with just the keyboard. It isn't that hard. Lots of tabbing and spacebar. Ctrl+F2 should let you activate the menubar if you need it (to get to Disk Utility for example). Run installer, when it is done, shut down and pull the hard drive out of the machine (this is how I did it!) and use another Mac to copy [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] (I used 3.4) and the 10.6.7 combo updater onto the disk. Oh, and also the custom DSDT. You might be able to do this another way (with a burned DVD maybe?) but I had a SATA to USB converter and a screwdriver handy so this was easiest for me. Put hard disk back in the laptop, boot the hard drive using [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url]. Use the same custom boot options as before. You should be able to get to the desktop, but again, ONLY keyboard will work, not mouse, and NO USB yet. Copy DSDT.aml to the desktop if it is not already there. Run the 10.6.7 combo updater. You only have the keyboard, so remember your keyboard shortcuts like Ctrl+F2 for the menubar and Ctrl+F7 to change window focus(?). It is not too tricky to do with the keyboard. When it is done, DO NOT REBOOT. Leave the window open, and go run [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] installer. Use the User DSDT option (it will use the DSDT.aml that you put on your desktop) and enable the USB 3.0 driver, Intel ethernet driver, and Voodoo PS/2 driver if you want them. Once [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] is installed, you can reboot. You no longer should need [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url], and you don't need any more custom boot options- once 10.6.7 and [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] are installed, the GraphicsEnabler should WORK and the Quadro chip should work with the internal display at native resolution with full acceleration (I think). You should find that USB 2.0 works (with the DSDT) and if you installed USB 3.0 or ethernet drivers then they should work too. Hope that makes sense.. it is going off of memory from a week or more ago, so maybe I missed something. At this point, as mentioned before, the big missing piece is audio, and then tweaks like fixing sleep and getting battery reporting to work. I'm hoping that Voodoo Battery solves that but I haven't tried yet. Hope this helps!
  2. Lem

    Patching DSDT for HP Elitebook 8540w

    Hi MaLd0n, Sorry for the late reply- I haven't had too much time for experimenting with this lately. I did read the thread on audio- thank you for the link! I have tried some of the instructions there, and although I haven't gotten it to work as of yet, I've gleaned a lot of knowledge, so I'm going to keep on trying as time allows. The laptop has an IDT codec, which seems to be much less supported than the Realtek codecs, but it does seem like people have been successful, so I will keep at it. As to the sleep problem, here is the results from the kernel log, as you requested: Apr 26 18:35:18 Lems-Mac-Pro kernel[0]: Wake reason = PCIB Apr 26 18:35:19 Lems-Mac-Pro kernel[0]: System Wake Apr 26 18:42:59 Lems-Mac-Pro kernel[0]: Wake reason = PCIB Apr 26 18:42:59 Lems-Mac-Pro kernel[0]: System Wake Apr 26 18:43:18 Lems-Mac-Pro kernel[0]: Wake reason = PCIB Apr 26 18:43:18 Lems-Mac-Pro kernel[0]: System Wake I think the first sleep happened automatically due to power settings, and the second two were initiated manually by me. I haven't tried Voodoo Battery yet, but I will give it a shot and keep you posted when I do.
  3. Lem

    Patching DSDT for HP Elitebook 8540w

    Thank you! You are correct, it is cavernous indeed.. I tried it out- it fixes several problems! All USB ports now work CMOS wipe/corruption is fixed Still a couple nagging issues though.. Still no sound.. audio devices show up in System Profiler, but not in Sounds preference panel. Tried built-in speaker and headphones. When put to sleep, it immediately wakes back up again I also noticed a couple things that I didn't notice(?) before: Screen is stuck at whatever it is when I boot (if I boot with power connected, it is bright; on battery, it is dim) and I can't change it Battery status is not reported Any thoughts? Are any of these things fixable through the DSDT, or should I be going about it from a different angle? Thanks again!
  4. I'm working on patching the DSDT for my HP Elitebook 8540w. There's apparently a bunch of different models of 8540w; this one has an i7-820 and Quadro FX 1800M graphics. I've already extracted the DSDT and attempted to do my own patching, however, things aren't working quite right. Hoping to get some help or advice. First, there are some ugly errors recompiling the DSDT: dsdt.dsl 2201: DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, Error 4123 - ^ Min/Max/Length/Gran are all zero, but no resource tag dsdt.dsl 2213: 0x00000000, // Length Error 4122 - ^ Invalid combination of Length and Min/Max fixed flags It looks those are some memory regions(?) being declared that don't make any sense. One of them is completely null, and one of them has an end but no beginning or length. I can move forward by commenting out those regions, but I don't know if that is the correct solution. dsdt.dsl 20183: Store (VGDD, 0x01) Error 4096 - ^ syntax error, unexpected PARSEOP_INTEGER dsdt.dsl 20185: And (Local1, 0x1F, Local2) Error 4051 - ^ Method local variable is not initialized (Local1) dsdt.dsl 20186: If (And (Local1, 0xFFE0)) Error 4051 - ^ Method local variable is not initialized (Local1) There is some nonsense looking code in a function that appears to be related to querying display devices. The code is: Store (VGDD, 0x01) Local1 My guess is that it is supposed to look like: Store (VGDD, Local1) for the purposes of copying the value out of VGDD and then manipulating it in a local variable, but I'm not certain. Again, later on, we have more errors related to querying display devices: dsdt.dsl 20414: 0x00 Error 4096 - ^ syntax error, unexpected PARSEOP_INTEGER, expecting '(' I couldn't make any sense out of the code in this case; the section that it is in appears to be related to the hotkeys on the keyboard. Specifically I am guessing this relates to the display toggle key. I don't care about this key, so I've tried just commenting out the whole block to move forward. These changes, along with the standard change of removing the IRQ from the RTC, get me a compilable DSDT and a bootable system, but not fully functional: Built-in keyboard and trackpad don't work unless I install the Voodoo PS/2 kext; Video seems to work great; Audio is not detected at all- no onboard audio nor does the DisplayPort output appear to have audio; Sleep doesn't seem to work; CMOS seems to get wiped/corrupted frequently (when rebooting, but not on every reboot?) Wired LAN works; Wireless LAN doesn't work, but I don't expect it to (unsupported chip); USB 2.0 ports don't work (I can use the USB 3.0 ports if I install the appropriate kext). There appears to be SOME degree of USB support working though, as the internal webcam works and is connected via the USB bus. My goal would be to at least get onboard audio working, and prevent the CMOS wipes. USB 2.0 support would be nice but I can accept it if it doesn't work. Sleep I can live without, if it doesn't work. I've attached the raw DSDT from the system, a decompile, and my attempted fixes. I appreciate any help with this- I'm not very familiar with DSDT (on my desktop system, I was able to use a pre-patched DSDT) so I'd like to learn! EliteBook_8540w_i7_820_DSDT.zip
×