you are totally right. it had nothing to do with controller companion. display doesnt go off even without the program.
well, if it is normal behaviour in xinput, that the controller disconnects and then reconnects, when the display goes off, the idea of being in xinput all the time (with controller companion) is not viable.
thanks for answering!