Contribute
Register

[solved] Toshiba L50-b-14P Wakes 15 seconds after sleep (screen is off), than goes to sleep again.

Status
Not open for further replies.
Joined
Mar 15, 2011
Messages
11
Motherboard
MSI H61-E33-B3
CPU
i5-2500K
Graphics
GTX1060
Dear members,

I am busy installing and configuring Mac OS X El Capitan on my Toshiba L50-B-14P laptop and almost all parts are working now.

Laptop specifications:
  • Intel ® Core ™ i7-4500U processor
  • 12GB, DDR3L RAM (1,600 MHz)
  • AMD Radeon™ R7 M260 Graphics
  • Intel HD4400 graphics (internal)
  • Conexant (don't remember the 'model' number, but activated with AppleALC and ILU)
I've generated a SSDT.aml for CPU management.

Working:
Sound
Brightness
Discrete videocard off (I think it's off, but it's turning on after sleep I think)
WiFI (USB adapter)
CPU Management (I think)
Battery Status
HDMI Video (external screen)

Not Working:
Bluetooth (I haven't checked if I can get it to work because I don't use it right now)
Internal WiFI (because it's Intel)
Brightness keys (I have to fix them myself, but has no priority)
HDMI Audio (haven't looked into patching this)

My question is about the sleeping. When I click on sleep the screen will immedialty turn black and after 10/15 seconds the power button starts blinking, but after one blink the computer will boot again and the cooler will turn on again. The screen stays black though. I have turned off the 'hibernation' function because that isn't working on a hackintosh.

Also I have the feeling that the laptop battery is still drawning when I have no AC attached, so maybe the CPU management / discrete card aren't patched the right way?

The patches I've did are:
Code:
DSDT:
GFX0 --> IGPU
FIX Wak v2
HPET Fix
FIX PNOT/PPNT
AUDIO 3
SMBUS FIX
IRQ Fix
RTC Fix
OS Check Fix (Server 2012)
Fix Mutex non..
ADD IMEI
USB Series 8 Fix
Birghtness fix (Hashwell/Broadwell
BOD3 --> HDAU (manually)

SSDT-0:
GFX --> IGPU

SSDT-1:
Remove _PSS Placeholders
GFX --> IGPU

SSDT-2:
GFX --> IGPU

SSDT-6:
GFX --> IGPU
BOD3 --> HDAU

SSDT-7:
GFX --> IGPU
Call _OFF() from _INI (manually, to turn off discrete graphics)
Remove "One" from a method, because of error with compiling (manually)

The log of the 'pmset -g assertions' command:
Code:
2017-05-24 13:24:27 +0200

Assertion status system-wide:

   BackgroundTask                 0

   ApplePushServiceTask           0

   UserIsActive                   0

   PreventUserIdleDisplaySleep    0

   PreventSystemSleep             0

   ExternalMedia                  0

   PreventUserIdleSystemSleep     0

   NetworkClientActive            0

Kernel Assertions: 0x4=USB

   id=500  level=255 0x4=USB mod=01-01-70 01:00 description=com.apple.usb.externaldevice.1d100000 owner=IOUSBHostDevice

   id=505  level=255 0x4=USB mod=01-01-70 01:00 description=com.apple.usb.externaldevice.14500000 owner=IOUSBHostDevice

Idle sleep preventers: IODisplayWrangler

I had connected some USB devices like a mouse before checking this command, but when I want my laptop to sleep, I disconnect all of them.

The log of the 'pmset -g log' command, my clover folder and my IOReg file are in the attachment.

Can someone help me with my problems?

Thanks in advance,

EvilID
 

Attachments

  • Archief.zip
    2.7 MB · Views: 118
Last edited:
Dear members,

I am busy installing and configuring Mac OS X El Capitan on my Toshiba L50-B-14P laptop and almost all parts are working now.

Laptop specifications:
  • Intel ® Core ™ i7-4500U processor
  • 12GB, DDR3L RAM (1,600 MHz)
  • AMD Radeon™ R7 M260 Graphics
  • Intel HD4400 graphics (internal)
  • Conexant (don't remember the 'model' number, but activated with AppleALC and ILU)
I've generated a SSDT.aml for CPU management.

Working:
Sound
Brightness
Discrete videocard off (I think it's off, but it's turning on after sleep I think)
WiFI (USB adapter)
CPU Management (I think)
Battery Status
HDMI Video (external screen)

Not Working:
Bluetooth (I haven't checked if I can get it to work because I don't use it right now)
Internal WiFI (because it's Intel)
Brightness keys (I have to fix them myself, but has no priority)
HDMI Audio (haven't looked into patching this)

My question is about the sleeping. When I click on sleep the screen will immedialty turn black and after 10/15 seconds the power button starts blinking, but after one blink the computer will boot again and the cooler will turn on again. The screen stays black though. I have turned off the 'hibernation' function because that isn't working on a hackintosh.

Also I have the feeling that the laptop battery is still drawning when I have no AC attached, so maybe the CPU management / discrete card aren't patched the right way?

The patches I've did are:
Code:
DSDT:
GFX0 --> IGPU
FIX Wak v2
HPET Fix
FIX PNOT/PPNT
AUDIO 3
SMBUS FIX
IRQ Fix
RTC Fix
OS Check Fix (Server 2012)
Fix Mutex non..
ADD IMEI
USB Series 8 Fix
Birghtness fix (Hashwell/Broadwell
BOD3 --> HDAU (manually)

SSDT-0:
GFX --> IGPU

SSDT-1:
Remove _PSS Placeholders
GFX --> IGPU

SSDT-2:
GFX --> IGPU

SSDT-6:
GFX --> IGPU
BOD3 --> HDAU

SSDT-7:
GFX --> IGPU
Call _OFF() from _INI (manually, to turn off discrete graphics)
Remove "One" from a method, because of error with compiling (manually)

The log of the 'pmset -g assertions' command:
Code:
2017-05-24 13:24:27 +0200

Assertion status system-wide:

   BackgroundTask                 0

   ApplePushServiceTask           0

   UserIsActive                   0

   PreventUserIdleDisplaySleep    0

   PreventSystemSleep             0

   ExternalMedia                  0

   PreventUserIdleSystemSleep     0

   NetworkClientActive            0

Kernel Assertions: 0x4=USB

   id=500  level=255 0x4=USB mod=01-01-70 01:00 description=com.apple.usb.externaldevice.1d100000 owner=IOUSBHostDevice

   id=505  level=255 0x4=USB mod=01-01-70 01:00 description=com.apple.usb.externaldevice.14500000 owner=IOUSBHostDevice

Idle sleep preventers: IODisplayWrangler

I had connected some USB devices like a mouse before checking this command, but when I want my laptop to sleep, I disconnect all of them.

The log of the 'pmset -g log' command, my clover folder and my IOReg file are in the attachment.

Can someone help me with my problems?

Thanks in advance,

EvilID

You probably have "instant wake". And you didn't mention patching for it.
Read guide:
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/
 
You probably have "instant wake". And you didn't mention patching for it.
Read guide:
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/

I've added this patches (Well, patched everything again so I would not miss anything):
Hashwell LPC
And the two Instant wake patches (then removed duplicates because of errors, can't use both patches next to each other)

Still the same problem. System fans will stop, after 5/10 seconds the power button will blink once, then afterwards the numlock key wil light up and the power button will go on and the fans will turn on.

If I don't do anything, the system will stay on, but with the screen turned off.

I've attached my new files.
 

Attachments

  • Archief.zip
    2.7 MB · Views: 119
I've added this patches (Well, patched everything again so I would not miss anything):
Hashwell LPC
And the two Instant wake patches (then removed duplicates because of errors, can't use both patches next to each other)

Still the same problem. System fans will stop, after 5/10 seconds the power button will blink once, then afterwards the numlock key wil light up and the power button will go on and the fans will turn on.

If I don't do anything, the system will stay on, but with the screen turned off.

I've attached my new files.

Check your kernel logs for "Wake reason".

Note: There is only one appropriate "instant wake" patch (_PRW 0x0d or _PRW 0x6d depending on what GPE your laptop uses).

Note 2: You patched ACPI incorrectly (as per guide "PNOT" patch should not be used when you're not dropping CPU related SSDTs).
 
Check your kernel logs for "Wake reason".

Note: There is only one appropriate "instant wake" patch (_PRW 0x0d or _PRW 0x6d depending on what GPE your laptop uses).

Note 2: You patched ACPI incorrectly (as per guide "PNOT" patch should not be used when you're not dropping CPU related SSDTs).

Can you tell me what GPE my laptop uses, I can't figure it out.

This is the syslog about waking up:
Code:
Last login: Wed May 24 18:50:29 on ttys000
May 24 12:55:29 MacBook-Pro-van-Joost kernel[0] <Notice>: PlatformSetTimer :: Set timer(BlinkTimer) Fail !! GET_DRV_STATE(5)
May 24 12:55:26 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 12:55:29 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
--
--
May 24 13:26:38 MacBook-Pro-van-Joost kernel[0] <Notice>: polled file major 1, minor 0, blocksize 4096, pollers 5
May 24 13:26:43 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 13:26:46 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
--
--
May 24 17:55:17 MacBook-Pro-van-Joost loginwindow[90] <Warning>: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
May 24 17:55:20 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 17:55:23 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
--
--
May 24 17:55:32 MacBook-Pro-van-Joost kernel[0] <Notice>: PM response took 1978 ms (51, powerd)
May 24 17:55:38 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 17:55:41 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
--
--
May 24 17:56:41 MacBook-Pro-van-Joost kernel[0] <Notice>: polled file major 1, minor 0, blocksize 4096, pollers 5
May 24 17:56:47 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 17:56:50 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
--
--
May 24 18:09:36 MacBook-Pro-van-Joost kernel[0] <Notice>: polled file major 1, minor 0, blocksize 4096, pollers 5
May 24 18:09:42 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 18:09:45 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
--
--
May 24 18:46:37 MacBook-Pro-van-Joost kernel[0] <Notice>: PlatformSetTimer :: Set timer(BlinkTimer) Fail !! GET_DRV_STATE(5)
May 24 18:46:35 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 18:46:37 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
MacBook-Pro-van-Joost:~ joostvanc$
 
Can you tell me what GPE my laptop uses, I can't figure it out.

This is the syslog about waking up:
Code:
Last login: Wed May 24 18:50:29 on ttys000
May 24 12:55:29 MacBook-Pro-van-Joost kernel[0] <Notice>: PlatformSetTimer :: Set timer(BlinkTimer) Fail !! GET_DRV_STATE(5)
May 24 12:55:26 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 12:55:29 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
--
--
May 24 13:26:38 MacBook-Pro-van-Joost kernel[0] <Notice>: polled file major 1, minor 0, blocksize 4096, pollers 5
May 24 13:26:43 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 13:26:46 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
--
--
May 24 17:55:17 MacBook-Pro-van-Joost loginwindow[90] <Warning>: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
May 24 17:55:20 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 17:55:23 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
--
--
May 24 17:55:32 MacBook-Pro-van-Joost kernel[0] <Notice>: PM response took 1978 ms (51, powerd)
May 24 17:55:38 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 17:55:41 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
--
--
May 24 17:56:41 MacBook-Pro-van-Joost kernel[0] <Notice>: polled file major 1, minor 0, blocksize 4096, pollers 5
May 24 17:56:47 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 17:56:50 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
--
--
May 24 18:09:36 MacBook-Pro-van-Joost kernel[0] <Notice>: polled file major 1, minor 0, blocksize 4096, pollers 5
May 24 18:09:42 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 18:09:45 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
--
--
May 24 18:46:37 MacBook-Pro-van-Joost kernel[0] <Notice>: PlatformSetTimer :: Set timer(BlinkTimer) Fail !! GET_DRV_STATE(5)
May 24 18:46:35 MacBook-Pro-van-Joost kernel[0] <Notice>: Wake reason: PEGA XHC
May 24 18:46:37 MacBook-Pro-van-Joost kernel[0] <Notice>: No interval found for . Using 8000000
MacBook-Pro-van-Joost:~ joostvanc$

Try removing _PRW from PEGA (in SSDT-7) (or as Package() { 9, 0 })
Since your XHC _PRW examines a variable before returning 0x0d or 0x6d, the only way to tell is to use ACPIDebug.kext to print the return value from _PRW. It is likely 0x0d, since other _PRW methods return 0x0d unconditionally, but you should check for sure.
 
Sorry for this late reaction, but it's working. Thanks man! My laptop is sleeping now. The instant wake fix was 0x0d as you stated and I have removed PRW from PEGA in SSDT7 :)
 
Sorry for this late reaction, but it's working. Thanks man! My laptop is sleeping now. The instant wake fix was 0x0d as you stated and I have removed PRW from PEGA in SSDT7 :)

Marked solved.
 
Status
Not open for further replies.
Back
Top