Touch Bar functioning in very unique conditions
I have a very strange issue with my Touch Bar on MacBook Pro 15 (2016). It started to randomly disappear on its own around six months ago. I tried fixing it through all advice available on the internet but it didn't work and I concluded it's a hardware issue but recently I found something very strange. If there is a piece of cloth under the MacBook Pro, and I restart the machine, the Touch Bar returns and works well as long as the machine stays on. On any other surface (Wood, plastic, etc.) the Touch Bar doesn't come to life. If the cloth is made of wool, then the machine doesn't start and gives some hardware failure. If anyone else has experienced this and can recommend a possible fix then it would be great help.
P.S All of this issue started when I got my keyboard replaced under the apply keyboard replacement program for MacBook Pro.
MacBook Pro 15″, macOS 10.12