Power off the toslink port

Hi Puff & Welcome

Sounds to me like your IR remote power button is switching to standby not full power off. I suggest looking at the Kodi Keymap Editor addon. There is a keymap in the Repository for a Sammix R95S and the power code is 0x140 KEY_POWER (NEC).

Instructions for the Keymap Repository are HERE