A weak earthquake with a magnitude of 2.9 on the Richter scale was detected in Ranau at 3.16pm on Wednesday (Jan 29).