I edit the file libWFD_ENGINE.so to fix the screen mirroring when you have root and has a modified recovery.
I followed the steps in this forum http://forum.xda-developers.com/show....php?t=2621550
I try with my tablet GT-N8013 and my sony tv and it worked very well
Please try it and let me know if it works
use recovery to install