No recoding necessary for the dimming mirror.
Here's the article from the home page that I followed a few years ago when I replaced mine =>
http://www.xoutpost.com/articles/x5/...tion-tips.html
Here's what it looks like =>
http://www.xoutpost.com/bmw-sav-foru...ss-mirror.html
Just be careful when you twist the mirror back on...some have reported cracking of the windshield during this process.