I had the same problem with an X-E4. I could not wedge any plastic as suggested, since it is not possible. However, I cleaned the sensor with a cotton swab and that did the trick! The automatic switching on an off of the LCD and EVF works like a charm.
Thanks for all the valuable information.