Coreaudiod prevents iMac from idle sleeping
Hi!
I've had an annoying bug for a while. When I boot my iMac, I always get "pid"s (PreventUserIdleSleep) from "coreaudiod".
The thing is, nothing is playing. Nothing at all. The coreaudiod messages are there even if I reboot the computer with no apps at all running, and nothing special in this menu:
I think it might be caused by the USB device I use to plug my turntable in, but even if I reboot the Mac with it unplugged, I'll still get the "pid"s and the computer won't go to idle sleep by itself. The screensaver will pop in, then the display will sleep, but the hard drive won't unless I manually press the power button or click "sleep" in the Apple menu.
The only ways I found to fix the issues is the "sudo killall coreaudiod" terminal command, and to boot up in safe mode. When I do either of these, the sleep behavior goes back to normal, until the next reboot that is.
Does anyone have any idea of what can cause this, and what can be done to fix it so I don't have to kill the process by hand at every reboot.
I'll give as much information as I can to help you guys help me, if you think you know what might be up. I'm currently on a 27 inches 2013 iMac, running El Capitan, and this issue has persisted through Mountain Lion, Mavericks and Yosemite before that. This is my first time submitting something to this forum, so sorry if I did something wrong.
Thank you very much in advance!
iMac (27-inch, Late 2012), OS X El Capitan (10.11.1)