Jump to content
49 posts in this topic

Recommended Posts

@Irish_Man hi my friend I hope that works for you!

 

Back-up older. I suggest you rename to SSDT-RHUB

 

 

 

RHUB+Kext-Compiled UPC.zip

 

 

  • Thanks 1
  • 2 weeks later...
On 10/13/2024 at 3:27 PM, miliuco said:

defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool yes -> macOS goes to sleep when pressing power button

  • defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool no -> macOS displays a dialog (sleep, restart, shutdown) as in real Macs.

 

Wow! Thank you! I lost this trick  and only now I have this dialog again.

It allows manipulate on black screen if somehow graphics card is not switched on:

<Power Button> for 1 second, <Tab>, <Space> -> reboot,

or <Power Button> for 1 second, <Tab>, <Tab>, <Space> -> enter sleep. <Mouse click> -> wake with graphics.

  • Like 3
  • 3 weeks later...
On 10/13/2024 at 8:27 PM, miliuco said:

defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool yes -> macOS goes to sleep when pressing power button

defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool no -> macOS displays a dialog (sleep, restart, shutdown) as in real Macs.

 

Do we need to sudo?

  • Like 1

Not sure if it's related, but in Sequoia property pci-aspm-default is gone from almost all devices/bridges.

If I run:

ioreg -l -p IODeviceTree | grep pci-aspm-default

I get in Sonoma:

Spoiler

Screenshot2024-11-15at12_48_37PM.png.d237689d192c2ce6ff2a3dec6c772f8c.png

 

and in Sequoia:

Spoiler

Screenshot2024-11-15at12_55_35PM.png.393019e6fa68ce20000c10a2551e28fa.png

 

Edited by hardcorehenry
  • Like 1

I created a different approach with an AppleScript that launches an app (Its a simple Sleeper.app) whenever the mac goes idle after 5 minutes of inactivity the app is  launches then make the mac in Sleep

It base on idle counter

The project is on test now to make it more functional so that it is perfect.

Edited by chris1111
  • Like 4
23 hours ago, miliuco said:

@chris1111

I can't find Sleeper.app in your Github. Is it available?

Hi @miliuco Its not on github now but my test is verry ssucessful:thumbsup_anim:

Sleeper time test.zip

 

 

Please test

 

USAGE:

Set Up Lock Screen

image.png.c5efc003de0de2f5ad7623cd8e2710ad.png


Copy paste SleeperTime folder to ➦ /Users/Shared


Adjust in seconds the time to sleep (The script check how many time the computer has been idle)

set timeToSleep to 60

 

image.png.b6d5aad6cfe0412da4e8cd80b8c03082.png

--------------------------------------------------------------------
Copy paste com.chris1111.sleeper.plist to ➦ /Library/LaunchAgents
Wait for he Popup new LoginItem Add

image.png.7eac92210722d6cf1bcaf099fb1408e7.png

 

Reboot macOS then dont use the mouse or keybord for the time you indicated then the Mac will sleep.

 

EDIT:

I set it to Users Shared just to save you from having to edit the directory in the plist file

You can use another directory, there is no problem.

Edited by chris1111
I set it to Users Shared just to save you from having to edit the directory in the plist file
  • Like 2
15 hours ago, miliuco said:

@chris1111

Thank you. I'll try and comment. 

Thanks I know it works but here Sleeper I put this in Bash mutch more better with an install command script

Verry good Ive test for two days now without issue:)

  • Like 1
2 hours ago, miliuco said:

@chris1111

Tried. Ir woks fine. Of course, bash better than AppleScript. Installer makes things very easy.

Thanks @miliuco really appreciate. :)

Edited by chris1111
  • Like 2
  • 5 months later...

Sorry, I have a similar situation on my Hackintosh, but despite having read all the topics, I didn't understand the subject sufficiently.


I have macOS Sequoia.

  • It enters and exits 100% Sleep using the Apple menu option, which is in the upper left corner, but...
  • It doesn't go into Sleep due to Inactivity.

Before, on the same hardware I had macOS Ventura. Ventura went into Sleep due to Inactivity 100% of the time.

 

Below I send the results of pmset -g for Ventura and Sequoia.

pmset -g Ventura:
image.thumb.png.9378f547a009264bcccaf07b56db2e42.png
 

pmset -g Sequoia:
image.thumb.png.94ef4cb735d8dbc3069fa36b0e79fe79.png

 

Tks.

Edited by webipsum
2 hours ago, webipsum said:

Sorry, I have a similar situation on my Hackintosh, but despite having read all the topics, I didn't understand the subject sufficiently.


I have macOS Sequoia.

  • It enters and exits 100% Sleep using the Apple menu option, which is in the upper left corner, but...
  • It doesn't go into Sleep due to Inactivity.

Before, on the same hardware I had macOS Ventura. Ventura went into Sleep due to Inactivity 100% of the time.

 

 

Tks.

Check System Monitor for some extra activity.

Check if you have updated VirtualSMC.kext or FakeSMC.kext (April 2025).

 

I have Sequoia 15.5 and it goes to sleep due to inactivity as usual, as old systems.

  • Like 2
On 5/15/2025 at 1:59 AM, eSaF said:

Hi, did you change your SmBIOS (Mac Model) for Sequoia?

The reason I asked on the Ventura submitted pic, shows Mac Model-Pro and the Sequoia shows iMac.

 

This maybe nothing but if you did indeed change SmBIOS, you'll need to remap your USB Ports.

Changing Mac Model can/will have an adverse effect on Sleep/Wake function.

Perfect! You're absolutely right.
I deleted the Ventura and forgot to take a screenshot with the SMBios iMacPro1,1, but the information was the same.

 

Edited by webipsum
On 5/15/2025 at 3:09 AM, Slice said:

Check System Monitor for some extra activity.

Check if you have updated VirtualSMC.kext or FakeSMC.kext (April 2025).

 

I have Sequoia 15.5 and it goes to sleep due to inactivity as usual, as old systems.


VirtualSMC.kext is up to date and I am not using FakeSMC.kext:

CapturadeTela2025-05-15as08_28_20.thumb.png.48e81d38e588ae60a18066d74d41d721.png

Edited by webipsum

I believe the problem is in this section, but I can't find it.
The monitor turned off at 9:27pm (due to inactivity) and the Hackintosh did not go into Sleep mode due to inactivity.
After waiting 22 minutes (without going into Sleep mode) I used the mouse (9:49pm) to reactivate the monitor.
Tks!

Sleep.thumb.jpg.85d98e40ede31659e6d6515bd2368f5c.jpg

  • 7 months later...
On 10/1/2024 at 12:34 AM, Max.1974 said:

@miliuco  Hello great master Emílio, as always, your posts are very detailed and helpful. Greatly passionate about Hackintosh and eager to help people. 

 

I got a bash script from the internet that helped me a lot, and I put it in an Xcode script to make it easier, it solved a lot about sleep in my Hacks and especially in Sequoia. 

 

If you want to add to your knowledge, and I believe you already know, but it installs the sleep watcher and fixes the sleep return, of course you need to be up to date with the other PRW, GPRW, UPRW parameters.

 

So, here is the script

that helps a lot. 

 

Just Double Click on kext blue icon. 

 

Thanks.

 

 

USBFIX_SLEEP.zip 1.57 MB · 69 downloads

 

 

 :plane:

 

 

 

Credits by @sysclhttps://github.com/syscl/Fix-usb-sleep/blob/master/fixUSB.sh 

 

 

 

Thanks a lot for this. Solved 2 of my problems with 1 program!

 

My system. Z97-HD3 with Sequoia. USBToolBox USB fix done.

 

OCLP fixed the Broadcom WiFi and BT problem perfectly but after applying this, the idle sleep does not work (Manual sleep does) and Ethernet keeps dropping out intermittently.

 

This one fixed above. So far so good. 

  • Thanks 1
8 hours ago, mengshi said:

 

Thanks a lot for this. Solved 2 of my problems with 1 program!

 

My system. Z97-HD3 with Sequoia. USBToolBox USB fix done.

 

OCLP fixed the Broadcom WiFi and BT problem perfectly but after applying this, the idle sleep does not work (Manual sleep does) and Ethernet keeps dropping out intermittently.

 

This one fixed above. So far so good. 

 

Hi @mengshi to fix sleep maybe you need use this patches and SSTS, except core/tread for i9 processor and ABDG to XBDG (im not use OCLP because cause instability):

 

CapturadeTela2026-01-04s09_27_56.thumb.png.9ae838a752100ba78b9f398c6ce03161.png

CapturadeTela2026-01-04s09_29_06.png.72334cb7d18c033a672a026cb791ecc8.png

 

 

 

 

 

 

So glad to help you !! :thumbsup_anim:

Edited by Max.1974
×
×
  • Create New...