swincas / cookies-n-code

A repo for code review sessions at CAS
http://astronomy.swin.edu.au/
MIT License
30 stars 34 forks source link

OSX laptop fan running full-speed after reboot #29

Closed manodeep closed 5 years ago

manodeep commented 6 years ago

I kept encountering this issue that my laptop fan would run continuously after a reboot. I tracked it down by using console, and seeing that there was a continuously repeating log entry

Aug 21 10:05:19 Manodeeps-MacBook-Pro com.apple.xpc.launchd[1] (com.citrix.ReceiverHelper[83341]): Could not find and/or execute program specified by service: 2: No such file or directory: /usr/local/libexec/ReceiverHelper.app/Contents/MacOS/ReceiverHelper
Aug 21 10:05:19 Manodeeps-MacBook-Pro com.apple.xpc.launchd[1] (com.citrix.ReceiverHelper[83341]): Service setup event to handle failure and will not launch until it fires.
Aug 21 10:05:19 Manodeeps-MacBook-Pro com.apple.xpc.launchd[1] (com.citrix.ServiceRecords[83342]): Could not find and/or execute program specified by service: 2: No such file or directory: /usr/local/libexec/ServiceRecords.app/Contents/MacOS/ServiceRecords
Aug 21 10:05:19 Manodeeps-MacBook-Pro com.apple.xpc.launchd[1] (com.citrix.ServiceRecords[83342]): Service setup event to handle failure and will not launch until it fires.
Aug 21 10:05:19 Manodeeps-MacBook-Pro com.apple.xpc.launchd[1] (com.citrix.ReceiverHelper[83343]): Could not find and/or execute program specified by service: 2: No such file or directory: /usr/local/libexec/ReceiverHelper.app/Contents/MacOS/ReceiverHelper
Aug 21 10:05:19 Manodeeps-MacBook-Pro com.apple.xpc.launchd[1] (com.citrix.ReceiverHelper[83343]): Service setup event to handle failure and will not launch until it fires.
Aug 21 10:05:19 Manodeeps-MacBook-Pro com.apple.xpc.launchd[1] (com.citrix.ServiceRecords[83344]): Could not find and/or execute program specified by service: 2: No such file or directory: /usr/local/libexec/ServiceRecords.app/Contents/MacOS/ServiceRecords
Aug 21 10:05:19 Manodeeps-MacBook-Pro com.apple.xpc.launchd[1] (com.citrix.ServiceRecords[83344]): Service setup event to handle failure and will not launch until it fires.

Searching on the internet seemed to imply [sudo] launchctl remove com.citrix.ReceiverHelper and [sudo] launchctl remove com.citrix.ServiceRecords would solve the problem. And previously that was the case, until the next reboot. And then I would have to do this launchctl remove again

However, this morning my laptop restarted "unexpectedly", and since then the launchctl remove stopped working and my laptop fan was continuously running at full speed.

Turns out that the way to stop these "daemons" was to prevent them from starting up in the first place. Within the folder, /Library/LaunchAgents/, there were two files com.citrix.ServiceRecords.plist and com.citrix.ReceiverHelper.plist. Each of these files contained a key called Disabled like so:

<key>Disabled</key>
<false/>

I replaced the false with true in both the plist files and voila. Those daemons are not invoked any more after reboots.

Added here in case someone else with a Swin laptop is facing a similar issue.

manodeep commented 5 years ago

I had posted the solution along with the problem but here if anyone else faces the same issue