A petition for writ of habeas corpus has been filed in the latest attempt at freedom for Ryan Ferguson.