Here's something to try, and it sounds a little "out there," but it can't hurt. Begin visualizing in your mind for a few minutes every time you think about the potential pain, that you are healing well and the medication you have is more than what you need. Visualize your healing going well (and rest, ice, elevate, and only do gentle movements to ensure it does), and mentally marvel at how pain-free you feel.
Take the prescribed medicine when it's scheduled, set an alarm if necessary. After a week, I was doing well, so I stopped taking my daytime oxycontin with no ill effects (if that doesn't work for you, continue taking it until it's gone). The hydrocodone worked well for me, but I wanted to drive, so I gradually swapped Extra Strength Tylenol for it. Since you're doing a bilateral, you are not likely to be cleared to drive for at least five weeks (safety reasons and all that), so there's no rush to try to get off the Tramadol. You may be able to supplement the Tramadol with Tylenol (as long as you remain under 4000mg in a 24 hour period). If this contradicts anything your doctor or pharmacist tells you, disregard -- I'm sharing what worked for me, and I was off all narcotics within two weeks with no ill-effects (except a little discomfort at 4 am with just Tylenol, and adding one Aleve at bedtime for a week took care of that).
If your OS says two weeks and only two weeks for prescription pain relievers, and your primary care physician will not get involved in that, I don't see any other way than mentally preparing yourself for it to go well pain-wise.
This is not the BoneSmart recommendation, and I hope I haven't strayed into the territory of giving medical advice. I do know your mind can be your most effective ally, so see if you can make it work for you in this instance. You want to be as relaxed and at peace as possible about this process. You have enough on your mind, but give yourself the best possible mental footing for a pain-free recovery.
As an afterthought, ice is your friend. Protect your skin from exposure, but icing should be measured in hours not minutes. Don't forget about the back of your knees.