Contribute
Register

USB + Sleep + WebCam issues PRECISION M6500

Status
Not open for further replies.
Okay, I just misunderstood purpose of USBInjectAll then.

config.plist has the renaming patch. USBInjectAll seems to be loading. IOReg looks good now, only has the ports injected from my SSDT. I do get my webcam back after instant wake.

All files regenerated and attached.

Last few lines of log for 'Wake reason' (trying to find way to search log backwards, taking too darn long)

2017-10-14 15:29:19.635279-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EHC2 (User)
2017-10-14 15:29:19.635281-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EHC2 (User)
2017-10-14 16:17:46.352810-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EH02 (User)
2017-10-14 16:17:46.352812-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EH02 (User)
2017-10-14 16:43:15.125654-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EH02 (User)
2017-10-14 16:43:15.125656-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EH02 (User)

As expected it is EH02 and the only device I have injected on that is the webcam. I can try removing _PRW for BTN and LID again, I know if I disable webcam it does sleep.

hub ports connected to internal devices should have portType=2.
For your instant wake problem, remove _PRW from PBTN, LID, and probably also EHC2/EH02.

Your patched DSDT is lacking any "OS Check Fix" patch...

It is easier to find recent things in kernel log if you clear it out before rebooting (sudo log erase --all).
 
So previously I had tried removing _PRW from PBTN,LID and EHC2 but laptop used to crash. This time it does not crash so SSDT injection seems to have helped. I will also fix the port type.

However the symptom has not gone away. Still get instant wake and the cause from logs is...
2017-10-14 16:17:46.352810-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EH02 (User)
2017-10-14 16:17:46.352812-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EH02 (User)
2017-10-14 16:43:15.125654-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EH02 (User)
2017-10-14 16:43:15.125656-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EH02 (User)
2017-10-14 17:38:54.652213-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 17:38:54.652215-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02

I see 3 OS Check fixes under MaciASL. None of them shows anything will get fixed on Preview. Is there another patch somewhere? I looked on your git page below but saw the same 3 patches.
https://github.com/RehabMan/Laptop-DSDT-Patch

Is there another OS Check fix patch somewhere?
 
So previously I had tried removing _PRW from PBTN,LID and EHC2 but laptop used to crash. This time it does not crash so SSDT injection seems to have helped. I will also fix the port type.

However the symptom has not gone away. Still get instant wake and the cause from logs is...
2017-10-14 16:17:46.352810-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EH02 (User)
2017-10-14 16:17:46.352812-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EH02 (User)
2017-10-14 16:43:15.125654-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EH02 (User)
2017-10-14 16:43:15.125656-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: PBTN LID EH02 (User)
2017-10-14 17:38:54.652213-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 17:38:54.652215-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02

I see 3 OS Check fixes under MaciASL. None of them shows anything will get fixed on Preview. Is there another patch somewhere? I looked on your git page below but saw the same 3 patches.
https://github.com/RehabMan/Laptop-DSDT-Patch

Is there another OS Check fix patch somewhere?

No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
 
I have also fixed the Port Type for the BT and the WebCam
 

Attachments

  • Problem Reporting 6.zip
    2.6 MB · Views: 43
I have also fixed the Port Type for the BT and the WebCam

Remove _PRW from EHC1.
Remove _PRW from AZAL (note... should be renamed to HDEF)
 
I applied renaming patch for AZAL to HDEF in config.plist
I removed _PRW from HDEF and tested.
I removed _PRW from EHC1 and then tested. This last change made things a bit worse.

I had noticed after removing _PRW from LID, on instant wake my display would not come back and stay blank until I pressed the mouse button. Now, after removing _PRW from EHC1, my display does not come back no matter what button/key I press. The only option I have left is to power cycle.

I have attached all files.

EDIT: Wake reason...
2017-10-14 18:14:00.909476-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 18:14:00.909478-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 18:42:53.437334-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 18:42:53.437335-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:02:11.922091-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:02:11.922094-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:03:20.425880-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:03:20.425883-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:04:26.843298-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:04:26.843301-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:05:51.499099-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:05:51.499102-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-15 09:07:11.323610-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-15 09:07:11.323612-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-15 09:13:23.175599-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-15 09:13:23.175600-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02

Thanks much.
 

Attachments

  • Problem Reporting 7.zip
    2.6 MB · Views: 52
Last edited:
I applied renaming patch for AZAL to HDEF in config.plist
I removed _PRW from HDEF and tested.
I removed _PRW from EHC1 and then tested. This last change made things a bit worse.

I had noticed after removing _PRW from LID, on instant wake my display would not come back and stay blank until I pressed the mouse button. Now, after removing _PRW from EHC1, my display does not come back no matter what button/key I press. The only option I have left is to power cycle.

I have attached all files.

EDIT: Wake reason...
2017-10-14 18:14:00.909476-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 18:14:00.909478-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 18:42:53.437334-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 18:42:53.437335-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:02:11.922091-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:02:11.922094-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:03:20.425880-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:03:20.425883-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:04:26.843298-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:04:26.843301-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:05:51.499099-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-14 19:05:51.499102-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-15 09:07:11.323610-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-15 09:07:11.323612-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-15 09:13:23.175599-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02
2017-10-15 09:13:23.175600-0500 localhost kernel[0]: (AppleACPIPlatform) Wake reason: EH02

Thanks much.

You used a buggy iasl to disassemble your ACPI/origin (when you patched ACPI).
See guide, and use the tools (iasl/MaciASL) that are linked:
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.232984/

The _EJD and _RMV objects you have in your DSDT may also be an issue.
And you may want to check into the _S1D and _S3D objects (read ACPI spec, make some experiments).

Usually removing the _PRW methods is enough. Maybe you need to remove more of them...

Note: Make sure you patch _OSI calls correctly. I would recommend using OSID->XSID and _OSI->XOSI and SSDT-XOSI.aml (see hotpatch guide).
 
Okay :(
I worked on the DSDT over time so don't even recall which patches I applied. I will start from scratch.

However, can you please tell me if I should do this before the other things you mentioned? Afraid if I change too many things together I will just lose track.
 
Okay :(
I worked on the DSDT over time so don't even recall which patches I applied. I will start from scratch.

However, can you please tell me if I should do this before the other things you mentioned? Afraid if I change too many things together I will just lose track.

Your decision on which things to work on.
Your responsibility to keep track of what you're doing.
 
Okay so I decided to start over conservatively because I think we were taking 1 step forward 2 steps back.

I took DSDT from origin. I saw it had EHCI instead of EHC1 and did have EHC2. I have encountered this situation for another laptop before. I renamed EHCI to EHC1 manually. Hope this is correct, else config.plist patch for EHCx --> EH0x wouldn't work. I also have AZAL-->HDEF in config.plist

I fixed "PNP" and "Package" errors using your patches.
I applied HPET because it was rebooting my laptop randomly.
I saw the _PRWs are different now.

USB3 ports are working.
Laptop sleeps but for all the wrong reasons. My EHC1 and EHC2 are completely kaput. USB2 ports external and internal (BT and WebCam) don't work. My USBInjectAll simply not doing anything. I have also temporarily removed SSDT injector reference from config.plist.

I have not yet touched any _PRWs in any way. No modifications, not removals. Thought maybe you can see the files and I could try one at a time. Sorry if I'm screwing up somewhere obvious. I was expecting EHC1/EHC2 to be working.
 

Attachments

  • Problem Reporting 8.zip
    2.5 MB · Views: 56
Status
Not open for further replies.
Back
Top