UserEventAgent takes up 100% CPU
So all out of a sudden after a restart my Mac goes crazy using 100% CPU for the UserEventAgent. You can't kill the thing, you cant even know what it does! To make a really long story short after quite some searching I found a post suggesting that UserEventAgent may hog your CPU due to some USB Keyboard, and then it hit me, I had bought a new mouse which for indexing reasons I will name as Sharkoon Drakonia (great mouse btw!).
Let me add to the solution below that you can skip the part of adding the -d flag. All it did for me was to bring down UserEvenAgent to 0% and then no proccesses seemed to take up the CPU. Summary showed System 96%, sorting 'All Proccesses' showed top proccess the activity monitor with 3%. How difficult is for a sum to match the parts really? (Did I mention thats a common windows problem? I could buy this problem at half the price, I think they ripped me off!)
Anyhow, let me just say of cource that since 2007 a lot have changed for Macs, now to actually go the Library you have to hit Go->Go to Folder in Finder and then type the path, and of cource we are about 400 builds away of this distant 2007 version of the AppleHIDMouseAgent. Changing the extention from plugin to DISABLED did the trick.
Hey, we may still have problems with mice and keyboards but look, theres a new iTunes, for the new iPhone. Think different.
The answer was found from a post back at 2007, here https://discussions.apple.com/thread/1197549?start=15&tstart=0
Reposting from pinkhandbagOct 29, 2007 6:40 AM (in response to pinkhandbag)
CFBundleShortVersionString 1.2.0
CFBundleVersion 1.2.0b3
ProjectName AppleHIDMouse
SourceVersion 1200303
Black MacBook 2GHz Intel Core Duo, Mac OS X (10.5)