Well, I use a similar method, with less force and without the hammer, every now and then...
I've got a harddrive cooler which makes an enormous racket when it starts up, but by tapping/hitting it for a short while it settles down...
I know I should open it up and fix whatevers the problem, but I just can't be bothered to shut of my 'puter to fix it...