Jump to content

macOS 15 Sequoia does not enter sleep mode properly


miliuco
 Share

42 posts in this topic

Recommended Posts

3 horas atrás, miliuco disse:

@Max.1974

"Script de instalação Home Brew & SleepBTWatcher" (sete postagens acima) está bem, instala todas as coisas necessárias, cria arquivos ~/.sleep (desativa BT) e ~/.wakeup (ativa BT) e, no final, mata o processo bluetoothd para iniciar todas as novas configurações (é reativado em alguns segundos). Eu tenho que experimentar.


A pergunta que eu tenho é se nos arquivos ~/.sleep e ~/.wakeup será suficiente com esses comandos de linha única:

  • $(qual blueutil) -p 0 (~/.sleep)
  • $(que blueutil) -p 1 (~/.wakeup)

Ou se for necessário completá-los com mais comandos, como no outro script que você carregou:

  • ~/.dormir
    sudo kill -9 $(pgrep bluetoothd)
    $(qual blueutil) -p 0
    sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
    sudo kextunload -b com.apple.iokit.IOBluetoothHostControllerUARTTransport
    sudo launchctl stop com.apple.bluetoothd
  • ~/.acordar
    $(qual blueutil) -p 1
    sudo launchctl start com.apple.bluetoothd
    sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport

Vou tentar os dois caminhos. Você tentou os dois também? Hanks.

 

Hi @Miliuco I could not test on Sequoia because I have no issues with my ssdts and patchers. So sorry, I was used sometime ago, but I not sure if those kexts is present on Sequoia. I will try test but for while, I have not issues (thanks Lord !)

 

:D :wink_anim:

com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
com.apple.iokit.IOBluetoothHostControllerUARTTransport

Im not find it on Sequoia 

  • Like 1
Link to comment
Share on other sites

  • 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
Link to comment
Share on other sites

  • 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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 5
Link to comment
Share on other sites

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
Link to comment
Share on other sites

 Share

×
×
  • Create New...