Butter a 13x9 casserole dish; layer potatoes, bacon, onion mixture and finish with more potatoes. Mix sour cream, cheese, and mushroom soup; pour mixture over top of potatoes. Cover with foil; bake at 350 degrees for 1 to 1 1/2 hours; uncover for the last 20 minutes.