Didn't you say in a previous question that you have lived there 5 yrs? Is the landlord and individual or is this an apartment complex. That makes the biggest difference. If this is an individual you may be fighting a losing battle no matter what you do. If the worse case scenario is that you lose your total deposit, so be it. The biggest worry would be that the charges go above and beyond that amount and you owe them more than your deposit. It would be nice to get your deposit back but I don't think you are. WALK THE UNIT WITH THE LANDLORD on the day you move. Continue to do the repairs to the walls and CLEAN CLEAN CLEAN. I would not spend the money to repair the carpet, instead hold on to it, if they are going to replace it anyway, why spend your money on it. Then if you are charged more than your deposit you will have the money.
Pricing used to charge tenants at move out will never match up the cost of repair companies. Whatever price they give you, just know the landlord can charge more than that. We had a move out charge list that we used, you can ask to see that or ask what the standard charges are.
Good luck!!
D.