DEV Community 👩‍💻👨‍💻

Discussion on: Controlling photoanalysisd

Collapse
 
dunhamgithub profile image
DunhamGitHub

Hi. Updated to MacOS Catalina (Photos Version 5.0...)
Would be great if you updated your solution, it does not seem to work anymore.

Collapse
 
gjbianco profile image
Guy Bianco IV Author

I haven't updated yet, so I can't test it out.

Is it still actually running and using CPU in the background for this? Is there a way to turn it off from their settings?

Which method did you try? The current one or the cron-based one?

Sorry for all of the questions, but it's possible with the major update to Photos that they changed if/how the process works.

Collapse
 
dunhamgithub profile image
DunhamGitHub

Yeah it is a) still running and b) still using CPU (20-25%)

  • I even tried entering the cronjobs in terminal directly to see if it quits. No chance.

I have now simply removed the following files but I am 100% sure the next update will bring them back:

  • com.apple.photoanalysisd.plist file in /System/Library/LaunchAgents
  • photoanalysisd in /Sytem/Library/PrivateFrameworks/Photo.../Versions/A/Support
Thread Thread
 
gjbianco profile image
Guy Bianco IV Author

Interesting. So it looks like the service is still called the same thing. I'm wondering if you go back to the old way I listed (using a cron job to kill the service every 20 minutes) would work. Kind of a jackhammer, but should still work. Maybe need to have it run more often :/

Sounds like I get to play around with it once I upgrade :)

Thread Thread
 
dunhamgithub profile image
DunhamGitHub

Hmmm - I assume it's still called the same yes, but again, somehow the command won't kill nor stop it.

This is what I have been using since before Mojave and now has stopped working as cron:

/1 * * * * launchctl disable gui/501/com.apple.photoanalysisd && launchctl kill -TERM gui/501/com.apple.photoanalysisd

My current solution is even worse -> deleting the system plist and unix exe:)