North Queensland residents were shaken awake last night as a 4.4-magnitude earthquake rocked the city.