I've been in that situation, too. I got out of it by us selling the company.
You should get rid of your co-founder and step up to be CEO yourself and start looking for someone who will do good work. Your co-founder might not have the incentive like you do, so maybe he feels fine with being average. There is no way to change such a person.