If I say hello first, the problem is resolved. I leave the grumpy buggers to themselves and not let it ruin my ride.
The only person who routinely does not say hello to me is the guy on the electrical assist bike. He usually overtakes me on the local 'incline', the one I hate.