Contribute
Register

HP Spectre XT - DSDT (Sleep, Battery, Brightness, maybe more)

Status
Not open for further replies.
Joined
Jul 5, 2012
Messages
52
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. 0
Hey guys,

I am working on my hackintosh for two weeks now, every day.

Most of the components are working, but some are either not working at all, or not satisfactory.

Therefore, I need some help in DSDT patching. I tried to read a lot about this, but every patch seems really specific to some mainboard models. I know that the DTGP Hack is mandatory, and this is the only thing I would be able to do by myself, but I don't know how to go on from there.

My specs are in my profile (HP Spectre XT Touchsmart, i5 3310U).
Full specs are here: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&tmp_geoLoc=true&docname=c03613969

My unedited DSDT (grabbed from Linux Boot) is here: http://d-h.st/CKg

Things I would love to get to work:

- Sleep (Not working at all)
- Battery Icon (Semi-working with kexts, percentage always zero, but remaining time is shown)
- Native sound - This may or may not be a challenge, since the HP got 4 speakers (2 on the bottom, 2 on the top), and VoodooHDA only uses the bottom speakers, with sound quality not even near the possible quality with Windows drivers. I DO have a patched AppleHDA for exactly my chipset, the instruction state to change the layout-id to 12 in my DSDT, though
- Brightness (Not working at all, and I don't want to use Shades or something like that. My brightness keys are not responding, and I don't even have a Brightness slider in the Displays Tab in my System Settings)
- USB (?) (Currently my USB isn't working at all, unless I have the device plugged in before booting, I don't know yet if I messed up something with my kexts, or if this is something that can be fixed with a DSDT)

Any help is appreciated, even any hints on how to accomplish my goals. Maybe some points are even wrong in the DSDT section, but this may be due to my lack of knowledge in DSDT patching :/

Thanks for your time and your efforts!

Greets,
LilaQ
 
Hey guys,

I am working on my hackintosh for two weeks now, every day.

Most of the components are working, but some are either not working at all, or not satisfactory.

Therefore, I need some help in DSDT patching. I tried to read a lot about this, but every patch seems really specific to some mainboard models. I know that the DTGP Hack is mandatory, and this is the only thing I would be able to do by myself, but I don't know how to go on from there.

My specs are in my profile (HP Spectre XT Touchsmart, i5 3310U).
Full specs are here: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&tmp_geoLoc=true&docname=c03613969

My unedited DSDT (grabbed from Linux Boot) is here: http://d-h.st/CKg

Things I would love to get to work:

- Sleep (Not working at all)

Have you implemented power management? What have you installed via Multibeast or otherwise after your fresh install of OS X. Also what version of OS X?

- Battery Icon (Semi-working with kexts, percentage always zero, but remaining time is shown)

For battery you need two things:
- ACPI battery manager: https://github.com/RehabMan/OS-X-ACPI-Battery-Driver
- and sometimes DSDT patches (at first glance, your DSDT needs patches for battery)

- Native sound - This may or may not be a challenge, since the HP got 4 speakers (2 on the bottom, 2 on the top), and VoodooHDA only uses the bottom speakers, with sound quality not even near the possible quality with Windows drivers. I DO have a patched AppleHDA for exactly my chipset, the instruction state to change the layout-id to 12 in my DSDT, though

Have you tried it yet?

- Brightness (Not working at all, and I don't want to use Shades or something like that. My brightness keys are not responding, and I don't even have a Brightness slider in the Displays Tab in my System Settings)

PNLF DSDT patch should be tried first.

- USB (?) (Currently my USB isn't working at all, unless I have the device plugged in before booting, I don't know yet if I messed up something with my kexts, or if this is something that can be fixed with a DSDT)

USB2 or USB3? What have you installed so far? Have you checked system.log for USB related errors? Have you looked at IORegistryExplorer to see what is attached to your EHC/XHC devices?

Sorry... about the more questions than answers... but it is normal. Most people are ill-prepared for the number of details they will need to be familiar with...
 
Have you implemented power management? What have you installed via Multibeast or otherwise after your fresh install of OS X. Also what version of OS X?

I have installed the patched AppleIntelCPUPowerManagement for 10.8.5.
My MacOSX version is 10.8.5, afair that and the USB3 Universal kexts is all that I have currently installed via Multibeast.

...DSDT Patches...

I just tried to patch the basics on my DSDT. I inserted the DTGP patch, renamed _T_0 to T_0 (and so on), and removed "External (\TNOT)" (Error "Name already exists in scope ^ (\TNOT)")
But now I still have an Error so I can move on with your recommended fixed. The error states:

"Error 4064 - Object does not exist ^ (HNOT)"

I don't really know how to fix this, a quick google search did not come up with a simple solution.

Here is my DSDT, patched up to this error: http://d-h.st/PEK

USB2 or USB3? What have you installed so far? Have you checked system.log for USB related errors? Have you looked at IORegistryExplorer to see what is attached to your EHC/XHC devices?

From what I know I have two USB3 ports and a single USB2 port, but on neither are my devices working just from plugging in.

To be honest, by the time I am not really sure what kexts I have installed and which not.
Here is a list of all my kexts inside my S/L/E: http://pastebin.com/0WJnA2t8
And the result of kextstat: http://pastebin.com/GLVuqNCu

System.log does not give any results if I filter for EHC or XHC.
In IORegistryExplorer I am not really sure what I would have to look for, therefore I made two images with the filters set to EHC and XHC, maybe you can gather some information from them?

http://s1.directupload.net/images/131008/wjk5eftp.png
http://s14.directupload.net/images/131008/z33jmlr3.png

These pictures were made while there was a USB drive plugged into my USB2 port.

I hope this is sufficient information, will provide more if necessary.

Thanks for your time and your effort, RehabMan, very much appreciated!
 
I have installed the patched AppleIntelCPUPowerManagement for 10.8.5.
My MacOSX version is 10.8.5, afair that and the USB3 Universal kexts is all that I have currently installed via Multibeast.



I just tried to patch the basics on my DSDT. I inserted the DTGP patch, renamed _T_0 to T_0 (and so on), and removed "External (\TNOT)" (Error "Name already exists in scope ^ (\TNOT)")
But now I still have an Error so I can move on with your recommended fixed. The error states:

"Error 4064 - Object does not exist ^ (HNOT)"

I don't really know how to fix this, a quick google search did not come up with a simple solution.

Here is my DSDT, patched up to this error: http://d-h.st/PEK

You have used too many patches. The only error in your original DSDT is the TNOT. Do just the TNOT patch (which amounts to removing the line of code at the error) and you will have an error free compile.

From what I know I have two USB3 ports and a single USB2 port, but on neither are my devices working just from plugging in.

Try removing GenericUSBXHCI.kext. Don't forget to rebuild cache after removing before rebooting (otherwise you'll still be loading from cache).
 
Ah okay, yeah I see. I will try to build the DSDT with all your recommended patches now.

Regarding the USB issues, I removed the GenericUBSXHCI.kext and now I am experiencing some strange behaviour. I can use my USB mouse on all of my USB3 and USB2 ports, but when I hook up a USB drive, it is not recognized at all, not even a single LED blink - any ideas?

I will report back with the DSDT.
 
Ah okay, yeah I see. I will try to build the DSDT with all your recommended patches now.

Regarding the USB issues, I removed the GenericUBSXHCI.kext and now I am experiencing some strange behaviour. I can use my USB mouse on all of my USB3 and USB2 ports, but when I hook up a USB drive, it is not recognized at all, not even a single LED blink - any ideas?

Probably on USB3 ports? Or is that a USB3 drive?

If so, try with -gux_defer_usb2 and GenericUSBXHCI installed. See here for more info: http://www.insanelymac.com/forum/topic/286860-genericusbxhci-usb-30-driver-for-os-x-with-source/

FYI: USB3, especially on 10.8.5 is a bit of a rough spot right now. Apple threw us some curve balls there...
 
Awesome, that did it! All USB ports now fully working, will implement the kernel flag in my boot.plist. :)

-----

Regarding my sound issues, I just tried to change my layout-id when I discovered that I don't have a layout-id in my HDEF.

So I just added the missing method and changed the hex value to 0x0C, I am not quite sure if I did it all the right way.
Here is my current DSDT: http://d-h.st/Qps

And here is the kext that is supposed to be working for my chipset: http://d-h.st/8ln

After boot I have no sound at all, speaker icon in the bar is grayed out. The only thing I can see in the console about audio is:
"09.10.13 01:00:31,000 kernel[0]: Sound assertion in AppleHDAController at line 483"

-----

Brightness slider is working in the SysPrefs after the DSDT patch, great!

But sadly my brightness control keys are not working.
I am not sure if the FN Keys Patch would be fitting here.

Little Background, I have F2/darker, F3/brighter ... F9/volume_down, F10/volume_up ...
The volume keys are working alright (despite the current fiddling with the correct audio kext & dsdt patching), so the brightness keys should be working too, without the FN Keys Patch, am I right?

Maybe I should use your tutorial on how to remap keys with VoodooPS2 to make brightness keys work? (Just guessing around)

(Also tried fn+up/down, fn+f2/f2 but to no avail)

-----

Battery & Sleep coming in the next post...
 
Awesome, that did it! All USB ports now fully working, will implement the kernel flag in my boot.plist. :)

-----

Nice!

Regarding my sound issues, I just tried to change my layout-id when I discovered that I don't have a layout-id in my HDEF.

So I just added the missing method and changed the hex value to 0x0C, I am not quite sure if I did it all the right way.
Here is my current DSDT:

I don't see a DSDT...

And here is the kext that is supposed to be working for my chipset:

No attachment...

Brightness slider is working in the SysPrefs after the DSDT patch, great!

But sadly my brightness control keys are not working.

Brightness keys are a keyboard mapping issue. What trackpad is in your laptop? If it is Synaptics you can use my PS2 driver, which will allow you to do some custom keyboard mapping.

I am not sure if the FN Keys Patch would be fitting here.

It won't help. The idea that patch does anything is a myth.

Little Background, I have F2/darker, F3/brighter ... F9/volume_down, F10/volume_up ...
The volume keys are working alright (despite the current fiddling with the correct audio kext & dsdt patching), so the brightness keys should be working too, without the FN Keys Patch, am I right?

The problem is the codes these keys send are specific to each laptop...

Maybe I should use your tutorial on how to remap keys with VoodooPS2 to make brightness keys work? (Just guessing around)
-----

If you're using my driver, yes...
 
Yea, I forgot the attachments, fixed in my previous post now :)

--

Brightness:

Yeah it's a Synaptics and I'm already using your driver. Will look into the remapping right now!

--

Battery:

I installed the ACPI battery manager and can now show the battery icon in the dock. Unfortunately the percentage is always at 0%. Is that something that could be fixed by a DSDT patch? If so, could you tell how to do this?

..

Sleep:

Sleep seems to work, although it needs about 15-20 seconds to shut everything off (should be normal, I guess), but after about 1-2 seconds it wakes up again.

I looked and saw the wake reason:
"09.10.13 01:30:43,000 kernel[0]: Wake reason: GLAN EHC2"

Is there anything I can do about this?


Again, thanks for all your help and patience RehabMan!
 
Battery:

I installed the ACPI battery manager and can now show the battery icon in the dock. Unfortunately the percentage is always at 0%. Is that something that could be fixed by a DSDT patch? If so, could you tell how to do this?

..

Definitely needs battery patches. If you install the debug version, you'll probably find the _BIF method is failing. This is due to EC fields larger than 8-bit, which you have a lot of...

Sleep:

Sleep seems to work, although it needs about 15-20 seconds to shut everything off (should be normal, I guess), but after about 1-2 seconds it wakes up again.

I looked and saw the wake reason:
"09.10.13 01:30:43,000 kernel[0]: Wake reason: GLAN EHC2"

Is there anything I can do about this?

15-20 sec is pretty long. There could be some things going on in _PTS (in DSDT).

And the instant wakeup is probably due to "Wake on Lan" and/or "Wake on USB". See if you can disable them in BIOS.
 
Status
Not open for further replies.
Back
Top