Steps to reproduce:
1. Open the attached project “IN-150263”
2. Build for MacOS
3. Open terminal, paste “while :; do printf '%s %.2f\n' "$(date +%H:%M:%S)" "$(ioreg -c IOHIDSystem | awk '/HIDIdleTime/
{print $NF/1e9; exit}
')"; sleep 1; done” and hit enter
4. Open the newly built app
5. Observe the terminal and your Mac
Actual result: In the terminal the time never goes more 10s and the computer never falls asleep (sometimes locks, but does not fall asleep)
Expected result: In the terminal the time goes to more than 10s and the computer eventually falls asleep
Reproducible with: 6000.0.0f1, 6000.0.81f1, 6000.3.22f1, 6000.5.8f1, 6000.6.0b8, 6000.7.0a5
Reproducible on: Tahoe 26.6.1 (M1 Max)
Not reproducible on: No other environment tested
Note:
- The test only works if the user doesn’t interact with the computer during the test
- Additionally you can check app System Monitor → Energy and observe that next to the “Sleep Prevention Bug” app the Preventing Sleep should be “No”
- For faster checks I suggest unplugging the computer from power