Contribute
Register

Strange issue with sleep on hp-f158nr

Status
Not open for further replies.
Joined
Apr 4, 2015
Messages
24
Motherboard
HP Pavilion 17-f158nr
CPU
Intel Core i5-4210U
Graphics
Intel HD Graphics 4400+2048MB NVIDIA GeForce 840M
Dear frends, I have notebook hp-f158nr and mountain lion on it. Everething works well even fn keys for backlight and sound excepting strange working of sleeping. What I mean: after rebooting all ok, PC goes to sleep and wake but later especially if many programs is opened (latex, sublime, pdf, firefox, inkscape, terminal) PC may doesn't go to sleep. I close lid, screen goes off but coolers is spinning. If I open lid, screen is black and PC doesn't react except shutting down with power button. I can't find out what cause is.

What was done.
Clover installation (EFI). DSDT/SSDT obtained and decompiled on linux (Mint 17) after with maciasl patched with: PARSEOP_STORE/battery_HP-G6-2221ss/graphics_Rename-GFX0/graphics_Rename-B0D3/system_WAK2/system_IRQ/system_RTC/system_SMBUS/usb_prw_0x0d_xhc/usb_USB_7-series/brightness keys patches
SSDT generated with ssdtPRGen.
SSDT-9 for disabling discrete NVIDIA

installed drivers with kext utility: ACPIBatteryManager, FakePCIID_Intel_HD_Graphics, FakePCIID_Intel_HDMI_Audio, FakePCIID_XHCIMux, FakePCIID, FakeSMC, LegacyBCM943225HMB, toledaARPT, VoodooPS2Controller

Assertion status system-wide:
PreventUserIdleDisplaySleep 1
CPUBoundAssertion 0
PreventSystemSleep 0
PreventUserIdleSystemSleep 1
InternalPreventDisplaySleep 0
ExternalMedia 0
UserIsActive 0
ApplePushServiceTask 0
BackgroundTask 0

pmset -g |grep hibernatemode
hibernatemode 3
pmset -g |grep standby
stanby 0 standbydelay 10800

00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.1 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 2 (rev e4)
00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
08:00.0 Network controller: Broadcom Corporation BCM43225 802.11b/g/n (rev 01)
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 08)
0a:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev ff)

kextstat|grep -y acpiplat
11 2 0xffffff7f81e95000 0x5a000 0x5a000 com.apple.driver.AppleACPIPlatform (1.8) <10 9 7 6 5 4 3 1>

kextstat|grep -y appleintelcpu
nothing

kextstat|grep -y applelpc
88 0 0xffffff7f81be1000 0x3000 0x3000 com.apple.driver.AppleLPC (1.6.3) <83 10 5 4 3>
 

Attachments

  • RehabMan.zip
    117.3 KB · Views: 106
  • CLOVER.zip
    4.4 MB · Views: 109
  • MacBook Air - hp.ioreg
    1.8 MB · Views: 163
Last edited:
Dear frends, I have notebook hp-f158nr and mountain lion on it. Everething works well even fn keys for backlight and sound excepting strange working of sleeping. What I mean: after rebooting all ok, PC goes to sleep and wake but later especially if many programs is opened (latex, sublime, pdf, firefox, inkscape, terminal) PC may doesn't go to sleep. I close lid, screen goes off but coolers is spinning. If I open lid, screen is black and PC doesn't react except shutting down with power button. I can't find out what cause is.

What was done.
Clover installation (EFI). DSDT/SSDT obtained and decompiled on linux (Mint 17) after with maciasl patched with: PARSEOP_STORE/battery_HP-G6-2221ss/graphics_Rename-GFX0/graphics_Rename-B0D3/system_WAK2/system_IRQ/system_RTC/system_SMBUS/usb_prw_0x0d_xhc/usb_USB_7-series/brightness keys patches
SSDT generated with ssdtPRGen.
SSDT-9 for disabling discrete NVIDIA

installed drivers with kext utility: ACPIBatteryManager, FakePCIID_Intel_HD_Graphics, FakePCIID_Intel_HDMI_Audio, FakePCIID_XHCIMux, FakePCIID, FakeSMC, LegacyBCM943225HMB, toledaARPT, VoodooPS2Controller

Assertion status system-wide:
PreventUserIdleDisplaySleep 1
CPUBoundAssertion 0
PreventSystemSleep 0
PreventUserIdleSystemSleep 1
InternalPreventDisplaySleep 0
ExternalMedia 0
UserIsActive 0
ApplePushServiceTask 0
BackgroundTask 0

pmset -g |grep hibernatemode
hibernatemode 3
pmset -g |grep standby
stanby 0 standbydelay 10800

00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.1 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 2 (rev e4)
00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
08:00.0 Network controller: Broadcom Corporation BCM43225 802.11b/g/n (rev 01)
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 08)
0a:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev ff)

kextstat|grep -y acpiplat
11 2 0xffffff7f81e95000 0x5a000 0x5a000 com.apple.driver.AppleACPIPlatform (1.8) <10 9 7 6 5 4 3 1>

kextstat|grep -y appleintelcpu
nothing

kextstat|grep -y applelpc
88 0 0xffffff7f81be1000 0x3000 0x3000 com.apple.driver.AppleLPC (1.6.3) <83 10 5 4 3>

According to ioreg:
- backlight control is not implemented correctly
- various 'crapware' installed (LittleSnitch, HwInfo)
- old versions of FakeSMC kexts
- ACPI not patched correctly (wrong set of SSDTs, incorrect _PRW patch, probably more...)

http://www.tonymacx86.com/el-capita...faq-read-first-laptop-frequent-questions.html
 
Thanks, RehabMan.
1) Removed clover fix "SetIntelBacklight=true" from config.plist. Installed IntelBacklight.kext and added Brightness DSDT patch. Backlight control working good just as before.
2) Removed HwInfo.
3) Installed last FakeSMC.kext
4) Removed some SSDT tables. About "..incorrect _PRW patch.." I need explanation. At present I didn't apply any _PRW patch. Should I apply sb_prw_0x6d_xhc patch or not?
 

Attachments

  • hp_ver2.ioreg
    1.7 MB · Views: 168
Thanks, RehabMan.
1) Removed clover fix "SetIntelBacklight=true" from config.plist. Installed IntelBacklight.kext and added Brightness DSDT patch. Backlight control working good just as before.
2) Removed HwInfo.
3) Installed last FakeSMC.kext
4) Removed some SSDT tables. About "..incorrect _PRW patch.." I need explanation. At present I didn't apply any _PRW patch. Should I apply sb_prw_0x6d_xhc patch or not?

Previously you stated you applied the _PRW 0x0d patch (which is incorrect based on native DSDT which uses 0x6d).
 
When you say it's wrong I took clear dsdt and apply all patches once again except usb_prw_0x0d_xhc (+ added brightness_fix patch). Then replace dsdt whith this new one without any _PRW patches, restart PC and took ioreg.

Added
hp_ver2_ioreg: PARSEOP_STORE/battery_HP-G6-2221ss/graphics_Rename-GFX0/graphics_Rename-B0D3/system_WAK2/system_IRQ/system_RTC/system_SMBUS/usb_USB_7-series/brightness_fix/brightness_keys patches

hp_ver3_ioreg: PARSEOP_STORE/battery_HP-G6-2221ss/graphics_Rename-GFX0/graphics_Rename-B0D3/system_WAK2/system_IRQ/system_RTC/system_SMBUS/usb_USB_7-series/brightness_fix/brightness_keys patches + sb_prw_0x6d_xhc patch
 

Attachments

  • hp_ver3.ioreg
    1.7 MB · Views: 158
Last edited:
When you say it's wrong I took clear dsdt and apply all patches once again except usb_prw_0x0d_xhc (+ added brightness_fix patch). Then replace dsdt whith this new one without any _PRW patches, restart PC and took ioreg.

Added
hp_ver2_ioreg: PARSEOP_STORE/battery_HP-G6-2221ss/graphics_Rename-GFX0/graphics_Rename-B0D3/system_WAK2/system_IRQ/system_RTC/system_SMBUS/usb_USB_7-series/brightness_fix/brightness_keys patches

hp_ver3_ioreg: PARSEOP_STORE/battery_HP-G6-2221ss/graphics_Rename-GFX0/graphics_Rename-B0D3/system_WAK2/system_IRQ/system_RTC/system_SMBUS/usb_USB_7-series/brightness_fix/brightness_keys patches + sb_prw_0x6d_xhc patch

You will need to describe the details of the problem.

And then provide all details that represent your installation state...

Attach ioreg as ZIP: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

Provide output (in Terminal):
Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc
kextstat|grep -y applehda

Attach EFI/Clover folder as ZIP (press F4 at main Clover screen before collecting). Please eliminate 'themes' directory. Provide only EFI/Clover, not the entire EFI folder.

Attach output of (in Terminal):
Code:
sudo touch /System/Library/Extensions && sudo kextcache -u /

Compress all files as ZIP. Do not use external links. Attach all files using site attachments only.
 
Details of problem.
When PC after restart sleep working like a charm -- ~ 3-4 sec for going to sleep and from. But if PC was high loaded, after sometimes it can't go to sleep. If after load it went to sleep it took ~10-20 sec to sleep and ~5-10 sec for wake. If it can't go to sleep display is turned off, power button lights and PC does't react, after hard restart all programs try to restore it's state. So, on my opinion, first cause is load of CPU (may be incorrect CPU/HD4400 management). Second, it seems to me some disk operations can cause the problem while going to sleep.

kextstat|grep -y acpiplat
11 2 0xffffff7f807b2000 0x5a000 0x5a000 com.apple.driver.AppleACPIPlatform (1.8) <10 9 7 6 5 4 3 1>

kextstat|grep -y appleintelcpu
nothing

kextstat|grep -y applelpc
74 0 0xffffff7f80a26000 0x3000 0x3000 com.apple.driver.AppleLPC (1.6.3) <71 10 5 4 3>

kextstat|grep -y applehda
nothing

sudo touch /System/Library/Extensions && sudo kextcache -u /
nothing

1) At present opened sublime (text), goldendict, firefox, terminal
uptime 8:57 up 34 mins, 2 users, load averages: 0,08 0,15 0,14
PC went to sleep. All Ok.

2) At present opened sublime (latex), goldendict, firefox, terminal, skim
uptime 9:08 up 45 mins, 2 users, load averages: 0,65 0,39 0,24
PC went to sleep. All Ok.

3) At present opened sublime (latex), goldendict, firefox, terminal, skim, safari with video stream (rt.com/on-air/)
beforу going to sleep video stream was stopped
uptime 9:19 up 55 mins, 2 users, load averages: 0,46 0,50 0,36
PC went to sleep. All Ok.

4) At present opened sublime (latex), goldendict, firefox, terminal, skim, safari with video stream (rt.com/on-air/), external disk was attached and extracted.
beforу going to sleep video stream was stopped
uptime 9:23 up 59 mins, 2 users, load averages: 0,66 0,58 0,43
PC went to sleep. All Ok.

5) At present opened sublime (latex), goldendict, firefox, terminal, skim 2 documents (second one opened on next desktop), safari with video stream (rt.com/on-air/), thunderbird, libreoffice (2 documents on next desktop).
beforу going to sleep video stream was stopped
uptime 9:23 up 59 mins, 2 users, load averages: 0,66 0,58 0,43
PC went to sleep. All Ok.

6) the same as 5 but USB mouse and AC are unplugged.
10:06 up 1:43, 2 users, load averages: 0,69 0,69 0,62
PC went to sleep. All Ok.

7) the same as 6
uptime 10:41 up 2:17, 2 users, load averages: 0,48 0,52 0,55
PC went to sleep. All Ok.

8) the same as 7
uptime 11:09 up 2:46, 2 users, load averages: 0,78 0,64 0,59
PC went to sleep. All Ok.

9) the same as 8
uptime 11:34 up 3:11, 2 users, load averages: 0,68 0,55 0,52
11:34 up 3:11, 2 users, load averages: 0,68 0,55 0,52

10) the same as 9 but USB mouse and AC are plugged/unplugged
uptime 13:09 up 4:45, 2 users, load averages: 0,27 0,50 0,57
PC didn't go to sleep. Hard reset. Before going to sleeping stopped working touchpad, after restaring it worked about minute and stopped again about 2-3 minutes. After starts working without tapping and left button, only cursor moving. Uptime 7 minutes. Restart again.

After restarting touchpad worked about minute and stopped again untill I move cursor by apple trackpad. But it was connected all the time before and all was ok.

so, at least 1 of 10 sleep was defect.

added.
May be it will be useful: Intel Power Gadget and HWMonitor crashs on launch.
 

Attachments

  • archive.zip
    2 MB · Views: 114
Last edited:
Details of problem.
When PC after restart sleep working like a charm -- ~ 3-4 sec for going to sleep and from. But if PC was high loaded, after sometimes it can't go to sleep. If after load it went to sleep it took ~10-20 sec to sleep and ~5-10 sec for wake. If it can't go to sleep display is turned off, power button lights and PC does't react, after hard restart all programs try to restore it's state. So, on my opinion, first cause is load of CPU (may be incorrect CPU/HD4400 management). Second, it seems to me some disk operations can cause the problem while going to sleep.

kextstat|grep -y acpiplat
11 2 0xffffff7f807b2000 0x5a000 0x5a000 com.apple.driver.AppleACPIPlatform (1.8) <10 9 7 6 5 4 3 1>

kextstat|grep -y appleintelcpu
nothing

kextstat|grep -y applelpc
74 0 0xffffff7f80a26000 0x3000 0x3000 com.apple.driver.AppleLPC (1.6.3) <71 10 5 4 3>

kextstat|grep -y applehda
nothing

sudo touch /System/Library/Extensions && sudo kextcache -u /
nothing

1) At present opened sublime (text), goldendict, firefox, terminal
uptime 8:57 up 34 mins, 2 users, load averages: 0,08 0,15 0,14
PC went to sleep. All Ok.

2) At present opened sublime (latex), goldendict, firefox, terminal, skim
uptime 9:08 up 45 mins, 2 users, load averages: 0,65 0,39 0,24
PC went to sleep. All Ok.

3) At present opened sublime (latex), goldendict, firefox, terminal, skim, safari with video stream (rt.com/on-air/)
beforу going to sleep video stream was stopped
uptime 9:19 up 55 mins, 2 users, load averages: 0,46 0,50 0,36
PC went to sleep. All Ok.

4) At present opened sublime (latex), goldendict, firefox, terminal, skim, safari with video stream (rt.com/on-air/), external disk was attached and extracted.
beforу going to sleep video stream was stopped
uptime 9:23 up 59 mins, 2 users, load averages: 0,66 0,58 0,43
PC went to sleep. All Ok.

5) At present opened sublime (latex), goldendict, firefox, terminal, skim 2 documents (second one opened on next desktop), safari with video stream (rt.com/on-air/), thunderbird, libreoffice (2 documents on next desktop).
beforу going to sleep video stream was stopped
uptime 9:23 up 59 mins, 2 users, load averages: 0,66 0,58 0,43
PC went to sleep. All Ok.

6) the same as 5 but USB mouse and AC are unplugged.
10:06 up 1:43, 2 users, load averages: 0,69 0,69 0,62
PC went to sleep. All Ok.

7) the same as 6
uptime 10:41 up 2:17, 2 users, load averages: 0,48 0,52 0,55
PC went to sleep. All Ok.

8) the same as 7
uptime 11:09 up 2:46, 2 users, load averages: 0,78 0,64 0,59
PC went to sleep. All Ok.

9) the same as 8
uptime 11:34 up 3:11, 2 users, load averages: 0,68 0,55 0,52
11:34 up 3:11, 2 users, load averages: 0,68 0,55 0,52

10) the same as 9 but USB mouse and AC are plugged/unplugged
uptime 13:09 up 4:45, 2 users, load averages: 0,27 0,50 0,57
PC didn't go to sleep. Hard reset. Before going to sleeping stopped working touchpad, after restaring it worked about minute and stopped again about 2-3 minutes. After starts working without tapping and left button, only cursor moving. Uptime 7 minutes. Restart again.

After restarting touchpad worked about minute and stopped again untill I move cursor by apple trackpad. But it was connected all the time before and all was ok.

so, at least 1 of 10 sleep was defect.

added.
May be it will be useful: Intel Power Gadget and HWMonitor crashs on launch.

ACPI is not patched/configured correctly.

Based on ACPI/origin, you should have in ACPI/patched:
DSDT.aml
SSDT.aml (from ssdtPRgen.sh)
SSDT-0.aml
SSDT-1.aml
SSDT-2.aml
SSDT-6.aml
SSDT-7.aml

Also, you need DropOem=true when you have patched SSDTs in ACPI/patched. And you need to use SortedOrder to set SSDT load order.

It is covered in the guide...

http://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/
 
Decompiled *.aml, fixed mistakes, compiled SSDT0,1,2,6,7 and placed to "patched" folder. In config.plist added keys SortedOrder and DropOem=true. Now sleep works only if choose Apple-Sleep Regime. If I close lid only backlight turns off and turn on after lid opening. Is apropriate dsdt patch?

new ioreg/clover folder attached
 

Attachments

  • archive.zip
    2 MB · Views: 95
Decompiled *.aml, fixed mistakes, compiled SSDT0,1,2,6,7 and placed to "patched" folder. In config.plist added keys SortedOrder and DropOem=true. Now sleep works only if choose Apple-Sleep Regime. If I close lid only backlight turns off and turn on after lid opening. Is apropriate dsdt patch?

new ioreg/clover folder attached

Keep in mind sleep is always delayed by 15-20 sec. Or longer if there are assertions (check assertions 'pmset -g assertions').
 
Status
Not open for further replies.
Back
Top