if you enabled developer mode, you can ssh to the phone and issue commands posted. if you can open terminal, that will also work. last resort, is recovery mode to set back to factory state - that will wipe all data, pictures etc.