Hi @Iridium,
I am using Intel architecture.
See log details ==> http://ix.io/2dKp
This is how my sript looks like (/storage/.config/sleep.d/02-home.power) :
Bash
#!/bin/sh
case "$1" in
pre)
kodi-send --action="Action(close)" --delay=100 --action="ActivateWindow(home)" >> /tmp/test.log
;;
post)
kodi-send --action="Action(close)" --delay=100 --action="ActivateWindow(home)" >> /tmp/test.log
;;
esac
I can see in the /tmp/test.log file that the kodi-send action was executed.
However the actions seem to be ignored by Kodi, because nothing happens with the screen.
When Kodi is resumed again the screen is still in the old situation.
Code
Macmini:~/.config/sleep.d # more /tmp/test.log
Sending: {'content': 'Action(close)', 'type': 'action'}
Sending: {'content': 100, 'type': 'delay'}
Sending: {'content': 'ActivateWindow(home)', 'type': 'action'}
Sending: {'content': 'Action(close)', 'type': 'action'}
Sending: {'content': 100, 'type': 'delay'}
Sending: {'content': 'ActivateWindow(home)', 'type': 'action'}