Contribute
Register

HP ProBook 4540s Question

Status
Not open for further replies.
Joined
Aug 15, 2012
Messages
53
Motherboard
GA-Z77X-UD5H
CPU
Intel® Core™ i5-3570K
Graphics
Gainward GeForce® GTX 560 Ti 2048MB
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. Android
Hi all,
I have been messing with my ProBook for a while trying to get 10.8.4 fully working.
I don't really use the ProBook Installer, I use the attached package. I collected it from many things.
Things I want to ask about:
1- The GenericUSB Kext cause a problem while getting the laptop to sleep when a USB device is attached to the USB3. Is there a fix for this or am I doing it wrong?
2- There are mysterious things for me which are the "blinkscreen" script and "FileNVRAM" script.
What do they do actually? Do they only keep the brightness after the reboot? I think that's not a problem actually or should I use them?

At last, I want to thank all this community members for the work they do.
Thanks in advance.View attachment Post-Installation.zip
 
Hi all,
I have been messing with my ProBook for a while trying to get 10.8.4 fully working.
I don't really use the ProBook Installer, I use the attached package. I collected it from many things.
Things I want to ask about:
1- The GenericUSB Kext cause a problem while getting the laptop to sleep when a USB device is attached to the USB3. Is there a fix for this or am I doing it wrong?

What is the problem? What does 'pmset -g assertions' (Terminal) show?

Have you tried the latest one from Zenith432?

Realize that OS X doesn't like going to sleep when there are external storage devices connected. It is not as well behaved as Windows in that regard.

2- There are mysterious things for me which are the "blinkscreen" script and "FileNVRAM" script. What do they do actually? Do they only keep the brightness after the reboot? I think that's not a problem actually or should I use them?

For blinkscreen, see this thread: http://www.tonymacx86.com/hp-probook/96785-work-around-4x30s-screen-brightness.html

FileNVRAM is not a script, but rather a Chameleon boot loader module. It makes nvram work which is a fix for the Messages app. If you use recent Chameleon with it, you will also get screen brightness restored on boot.

FYI: You really should use the ProBook Installer, so you get a properly patched (and up-to-date) DSDT, and a set of kexts that have been tested by many.
 
I don't know whether it's my DSDT or the GenericUSB fault.
I patched my DSDT using the topic of the 4540s DSDT patches and your repository on GitHub.
View attachment DSDT.zip
When any USB device connected to any - except one port on the right (the outer one) - it doesn't go to sleep, justa a black screen and the power button is lit.
I press the power button till the computer turns off and when I reboot, it totally hangs and doesn't respond.
 
I don't know whether it's my DSDT or the GenericUSB fault.
I patched my DSDT using the topic of the 4540s DSDT patches and your repository on GitHub.
View attachment 59487

Little hard to tell what you did given that description. And the DSDT was definitely not created with the current patches...

When any USB device connected to any - except one port on the right (the outer one) - it doesn't go to sleep, justa a black screen and the power button is lit.
I press the power button till the computer turns off and when I reboot, it totally hangs and doesn't respond.

You didn't try anything I said in last post. Please re-read it.
 
I'm using the latest from your trunk.

Before sleep:
Code:
6/22/13 12:28:08 AM GMT+ 
Assertion status system-wide:
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   PreventUserIdleSystemSleep     1
   ExternalMedia                  0
   UserIsActive                   0
   ApplePushServiceTask           0
   BackgroundTask                 0

Listed by owning process:
  pid 141(helpd): [0x0000000c0000012f] 00:16:19 BackgroundTask named: "com.apple.helpd.sdmbuilding" 
  pid 128(coreaudiod): [0x0000000100000153] 00:00:00 NoIdleSleepAssertion named: "com.apple.audio.'AppleHDAEngineOutput:1B,0,1,2:0'.noidlesleep" 
  pid 44(mds): [0x0000000c0000012c] 00:16:20 BackgroundTask named: "com.apple.metadata.mds" 

Kernel Assertions: 0x0004 
 * Kernel Assertion ID = 500
   Created At = 6/22/13 12:11:35 AM GMT+ 
   Modified At = 1/1/70 2:00:00 AM GMT+02 
   Owner ID = 0xffffff800a551000
   Level = 0
   Assertions Set = None (4)

 * Kernel Assertion ID = 501
   Created At = 6/22/13 12:11:41 AM GMT+ 
   Modified At = 6/22/13 12:22:18 AM GMT+ 
   Owner ID = 0xffffff800a732000
   Level = 255
   Assertions Set = None (4)

 * Kernel Assertion ID = 502
   Created At = 6/22/13 12:11:42 AM GMT+ 
   Modified At = 1/1/70 2:00:00 AM GMT+02 
   Owner ID = 0xffffff800a746000
   Level = 0
   Assertions Set = None (4)

After waking :
Code:
Assertion status system-wide:
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   PreventUserIdleSystemSleep     0
   ExternalMedia                  0
   UserIsActive                   0
   ApplePushServiceTask           0
   BackgroundTask                 0

Listed by owning process:
  pid 141(helpd): [0x0000000c0000012f] 00:20:17 BackgroundTask named: "com.apple.helpd.sdmbuilding" 
  pid 44(mds): [0x0000000c0000012c] 00:20:18 BackgroundTask named: "com.apple.metadata.mds" 

Kernel Assertions: 0x0004 
 * Kernel Assertion ID = 500
   Created At = 6/22/13 12:11:35 AM GMT+ 
   Modified At = 1/1/70 2:00:00 AM GMT+02 
   Owner ID = 0xffffff800a551000
   Level = 0
   Assertions Set = None (4)

 * Kernel Assertion ID = 501
   Created At = 6/22/13 12:11:41 AM GMT+ 
   Modified At = 6/22/13 12:22:18 AM GMT+ 
   Owner ID = 0xffffff800a732000
   Level = 255
   Assertions Set = None (4)

 * Kernel Assertion ID = 502
   Created At = 6/22/13 12:11:42 AM GMT+ 
   Modified At = 1/1/70 2:00:00 AM GMT+02 
   Owner ID = 0xffffff800a746000
   Level = 0
   Assertions Set = None (4)
It doesn't go to sleep when a device it connected to any USB3 port so I can't get those messages>
Those messages when the WiFi dongle connected to the outer right USB2 port.
 
The DSDT was patched about three months ago with old patches from your repo. before those Mini-SSDT and these stuff.

Yeah, I could tell...
 
I'm using the latest from your trunk.

Try with latest from Zenith432. I'll be updating mine soon, but not quite yet...

Before sleep:
Code:
6/22/13 12:28:08 AM GMT+ 
Assertion status system-wide:
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   PreventUserIdleSystemSleep     1
   ExternalMedia                  0
   UserIsActive                   0
   ApplePushServiceTask           0
   BackgroundTask                 0

Listed by owning process:
  pid 141(helpd): [0x0000000c0000012f] 00:16:19 BackgroundTask named: "com.apple.helpd.sdmbuilding" 
  pid 128(coreaudiod): [0x0000000100000153] 00:00:00 NoIdleSleepAssertion named: "com.apple.audio.'AppleHDAEngineOutput:1B,0,1,2:0'.noidlesleep" 
  pid 44(mds): [0x0000000c0000012c] 00:16:20 BackgroundTask named: "com.apple.metadata.mds" [/quote]

App using audio is keeping your laptop awake.  Try to eliminate it.

[quote]
It doesn't go to sleep when a device it connected to any USB3 port so I can't get those messages>[/quote]

Not sure what messages you're talking about.  You can still do 'pmseg -g assertions'...

[quote]
Those messages when the WiFi dongle connected to the outer right USB2 port.[/QUOTE]

There have been some WiFi dongles that cause problems with sleep.  Important to find a good one that has good drivers.  Better to use compatible half-mini PCIe with native OS X drivers.
 
I tried installing the latest GenericUSB kext from the original thread and these are the results:

With the dongle connected to the outer right USB2.0 port and it goes to sleep without problems:

Code:
6/22/13 1:23:32 AM GMT+0 
Assertion status system-wide:
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   PreventUserIdleSystemSleep     0
   ExternalMedia                  0
   UserIsActive                   0
   ApplePushServiceTask           0
   BackgroundTask                 0

Listed by owning process:
  pid 148(helpd): [0x0000000c00000130] 00:01:57 BackgroundTask named: "com.apple.helpd.sdmbuilding" 
  pid 47(mds): [0x0000000c0000012f] 00:01:57 BackgroundTask named: "com.apple.metadata.mds" 

Kernel Assertions: 0x0004 
 * Kernel Assertion ID = 500
   Created At = 6/22/13 1:21:24 AM GMT+0 
   Modified At = 1/1/70 2:00:00 AM GMT+02 
   Owner ID = 0xffffff800a4b1000
   Level = 0
   Assertions Set = None (4)

 * Kernel Assertion ID = 501
   Created At = 6/22/13 1:21:27 AM GMT+0 
   Modified At = 6/22/13 1:27:30 AM GMT+0 
   Owner ID = 0xffffff800a694000
   Level = 255
   Assertions Set = None (4)

 * Kernel Assertion ID = 502
   Created At = 6/22/13 1:21:29 AM GMT+0 
   Modified At = 1/1/70 2:00:00 AM GMT+02 
   Owner ID = 0xffffff800a69c000
   Level = 0
   Assertions Set = None (4)

With a normal USB Flash drive connected to one of the USB3 ports and it went to sleep:

Code:
6/22/13 1:27:10 AM GMT+0 
Assertion status system-wide:
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   PreventUserIdleSystemSleep     0
   ExternalMedia                  1
   DisableLowPowerBatteryWarnings 0
   UserIsActive                   0
   ApplePushServiceTask           0
   BackgroundTask                 0

Listed by owning process:
  pid 17(powerd): [0x000000090000014f] 00:00:30 ExternalMedia named: "com.apple.powermanagement.externalmediamounted" 
  pid 148(helpd): [0x0000000c00000130] 00:05:35 BackgroundTask named: "com.apple.helpd.sdmbuilding" 
  pid 47(mds): [0x0000000c0000012f] 00:05:36 BackgroundTask named: "com.apple.metadata.mds" 

Kernel Assertions: 0x0004 
 * Kernel Assertion ID = 500
   Created At = 6/22/13 1:21:24 AM GMT+0 
   Modified At = 6/22/13 1:42:30 AM GMT+0 
   Owner ID = 0xffffff800a4b1000
   Level = 255
   Assertions Set = None (4)

 * Kernel Assertion ID = 501
   Created At = 6/22/13 1:21:27 AM GMT+0 
   Modified At = 6/22/13 1:34:06 AM GMT+0 
   Owner ID = 0xffffff800a694000
   Level = 0
   Assertions Set = None (4)

 * Kernel Assertion ID = 502
   Created At = 6/22/13 1:21:29 AM GMT+0 
   Modified At = 1/1/70 2:00:00 AM GMT+02 
   Owner ID = 0xffffff800a69c000
   Level = 0
   Assertions Set = None (4)

With the dongle in one of the USB3 ports and it didn't go to sleep:

Code:
6/22/13 1:33:13 AM GMT+0 
Assertion status system-wide:
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   PreventUserIdleSystemSleep     0
   ExternalMedia                  0
   UserIsActive                   0
   ApplePushServiceTask           0
   BackgroundTask                 0

Listed by owning process:
  pid 148(helpd): [0x0000000c00000130] 00:03:13 BackgroundTask named: "com.apple.helpd.sdmbuilding" 
  pid 44(mds): [0x0000000c0000013c] 00:03:05 BackgroundTask named: "com.apple.metadata.mds" 

Kernel Assertions: 0x0004 
 * Kernel Assertion ID = 500
   Created At = 6/22/13 1:29:48 AM GMT+0 
   Modified At = 6/22/13 1:33:53 AM GMT+0 
   Owner ID = 0xffffff800a802000
   Level = 255
   Assertions Set = None (4)

 * Kernel Assertion ID = 501
   Created At = 6/22/13 1:29:53 AM GMT+0 
   Modified At = 1/1/70 2:00:00 AM GMT+02 
   Owner ID = 0xffffff800a612000
   Level = 0
   Assertions Set = None (4)

 * Kernel Assertion ID = 502
   Created At = 6/22/13 1:29:53 AM GMT+0 
   Modified At = 6/22/13 1:33:14 AM GMT+0 
   Owner ID = 0xffffff800a804000
   Level = 0
   Assertions Set = None (4)

So now, I can conclude that the driver of the dongle interfering with the kext?
It only sleeps when the dongle is controlled by the "AppleUSBEHCI"?
The dongle is D-Link DWA-121 and it has official Realtek drivers and has been working quite well for about 4 months with 10.8.2.

Last question, I tried removing the GenericUSB kext and also removes "AppleUSBXHCI.kext" which was proposed by one of the members long time ago and everything is working fine, but now all ports are working as USB2.0, right?
 
I tried installing the latest GenericUSB kext from the original thread and these are the results:

With the dongle connected to the outer right USB2.0 port and it goes to sleep without problems:

Code:
6/22/13 1:23:32 AM GMT+0 
Assertion status system-wide:
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   PreventUserIdleSystemSleep     0
   ExternalMedia                  0
   UserIsActive                   0
   ApplePushServiceTask           0
   BackgroundTask                 0

Listed by owning process:
  pid 148(helpd): [0x0000000c00000130] 00:01:57 BackgroundTask named: "com.apple.helpd.sdmbuilding" 
  pid 47(mds): [0x0000000c0000012f] 00:01:57 BackgroundTask named: "com.apple.metadata.mds" 

Kernel Assertions: 0x0004 
 * Kernel Assertion ID = 500
   Created At = 6/22/13 1:21:24 AM GMT+0 
   Modified At = 1/1/70 2:00:00 AM GMT+02 
   Owner ID = 0xffffff800a4b1000
   Level = 0
   Assertions Set = None (4)

 * Kernel Assertion ID = 501
   Created At = 6/22/13 1:21:27 AM GMT+0 
   Modified At = 6/22/13 1:27:30 AM GMT+0 
   Owner ID = 0xffffff800a694000
   Level = 255
   Assertions Set = None (4)

 * Kernel Assertion ID = 502
   Created At = 6/22/13 1:21:29 AM GMT+0 
   Modified At = 1/1/70 2:00:00 AM GMT+02 
   Owner ID = 0xffffff800a69c000
   Level = 0
   Assertions Set = None (4)

And it is probably a USB2 WiFi so that is probably the best way to use it (why use a USB3 port if it isn't USB3?).

With a normal USB Flash drive connected to one of the USB3 ports and it went to sleep:

Code:
6/22/13 1:27:10 AM GMT+0 
Assertion status system-wide:
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   PreventUserIdleSystemSleep     0
   ExternalMedia                  1
   DisableLowPowerBatteryWarnings 0
   UserIsActive                   0
   ApplePushServiceTask           0
   BackgroundTask                 0

Listed by owning process:
  pid 17(powerd): [0x000000090000014f] 00:00:30 ExternalMedia named: "com.apple.powermanagement.externalmediamounted" 
  pid 148(helpd): [0x0000000c00000130] 00:05:35 BackgroundTask named: "com.apple.helpd.sdmbuilding" 
  pid 47(mds): [0x0000000c0000012f] 00:05:36 BackgroundTask named: "com.apple.metadata.mds" 

Kernel Assertions: 0x0004 
 * Kernel Assertion ID = 500
   Created At = 6/22/13 1:21:24 AM GMT+0 
   Modified At = 6/22/13 1:42:30 AM GMT+0 
   Owner ID = 0xffffff800a4b1000
   Level = 255
   Assertions Set = None (4)

 * Kernel Assertion ID = 501
   Created At = 6/22/13 1:21:27 AM GMT+0 
   Modified At = 6/22/13 1:34:06 AM GMT+0 
   Owner ID = 0xffffff800a694000
   Level = 0
   Assertions Set = None (4)

 * Kernel Assertion ID = 502
   Created At = 6/22/13 1:21:29 AM GMT+0 
   Modified At = 1/1/70 2:00:00 AM GMT+02 
   Owner ID = 0xffffff800a69c000
   Level = 0
   Assertions Set = None (4)

Kind of surprised it went to autosleep with the 'externalmedia' assertion.

With the dongle in one of the USB3 ports and it didn't go to sleep:

Code:
6/22/13 1:33:13 AM GMT+0 
Assertion status system-wide:
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   PreventUserIdleSystemSleep     0
   ExternalMedia                  0
   UserIsActive                   0
   ApplePushServiceTask           0
   BackgroundTask                 0

Listed by owning process:
  pid 148(helpd): [0x0000000c00000130] 00:03:13 BackgroundTask named: "com.apple.helpd.sdmbuilding" 
  pid 44(mds): [0x0000000c0000013c] 00:03:05 BackgroundTask named: "com.apple.metadata.mds" 

Kernel Assertions: 0x0004 
 * Kernel Assertion ID = 500
   Created At = 6/22/13 1:29:48 AM GMT+0 
   Modified At = 6/22/13 1:33:53 AM GMT+0 
   Owner ID = 0xffffff800a802000
   Level = 255
   Assertions Set = None (4)

 * Kernel Assertion ID = 501
   Created At = 6/22/13 1:29:53 AM GMT+0 
   Modified At = 1/1/70 2:00:00 AM GMT+02 
   Owner ID = 0xffffff800a612000
   Level = 0
   Assertions Set = None (4)

 * Kernel Assertion ID = 502
   Created At = 6/22/13 1:29:53 AM GMT+0 
   Modified At = 6/22/13 1:33:14 AM GMT+0 
   Owner ID = 0xffffff800a804000
   Level = 0
   Assertions Set = None (4)

So now, I can conclude that the driver of the dongle interfering with the kext?

I don't see an assertion there, so surprised it would not go to sleep at scheduled time. Did you look in system.log for any clues/reason?

It only sleeps when the dongle is controlled by the "AppleUSBEHCI"?
The dongle is D-Link DWA-121 and it has official Realtek drivers and has been working quite well for about 4 months with 10.8.2.

Sounds like it. You might run your results by Zenith432 and see what he thinks...

Last question, I tried removing the GenericUSB kext and also removes "AppleUSBXHCI.kext" which was proposed by one of the members long time ago and everything is working fine, but now all ports are working as USB2.0, right?

I would think so... (everything USB2 without any USB3 drivers).
 
Status
Not open for further replies.
Back
Top