Diesel or loud music seems to work.
When we had our whale strike I can attest I had neither the diesel or the radio going, and it was at night.
The boat was planing (quiet), doing about 10 knots, and the rudders were giving off a noticeable hum, that a member of the crew commented that same day " sounds just like a whale"
Probably sounds like a mating song knowing my luck....
We think the whale gave us a big slap with his tail as he sounded after the first hit which caused all the scratches on the side.
After that, we kept the radio on all night when we weren't motoring. We had a few close sightings after that, even yesterday coming back from Moreton we had 3 or 4 , one breaching less than 100mtrs from the boat.
I love whales, but it's not much fun kissing one.