Yes there are personalities that you won't click with that will give you average grades no matter how good you are, but for most you can pretty definitely get above average which is 8/9 for us.
Main thing is your presentations in rounding. That is probably the single most important factor in determining your grade. If you prepare your presentation the night before for overnight H and Ps and deliver your everyday soap notes perfectly with an excellent assessment and plan and your resident doesn't have to add anything to it, that is most likely an 8/9 performance. Bonus to be on the safe side ask 2-3 excellent questions per day on your patients or other people's patients (high level questions after you read up on the basics related to areas of controversy or something not intuitive that you come across on UptoDate). Read on UptoDate regarding all your patients. It pretty much has all pimp questions and high level stuff needed to know for the disease.
If I am not sure how my performance is going, I write a really detailed history and physical note with references from studies and ask them to give me feedback on it (takes 1-2 hours but solidifies your grade)
This pretty much guarantees me a 8/9 regardless of whether they like me or not because those things are definitely an above-average performance anywhere in the country. There are some people that just will not like you and I could care less about those evals because majority of the evals will overshadow those (well except in Family where I did get screwed by a average eval because of only 1 attending).
Those tips are for rotations such as internal medicine, pediatrics, neurology, psychiatry which are rounding heavy.
For surgery, I have no clue. I am on it right now and I think I will get average evals, because I am still figuring out what surgeons like and don't like but my shelf, etc should take me to honors because that's what I will concentrate on.