Christo976, Dany Schibli,
I had some problem with Power On and Power Off the Sunrise TV Box UHD also. I tried to change flirc_util record_api 48 102 by 47 or 49 but it didn't work.
In fact, the Sunrise box was powering on but I couldn't get any sound or image.
I realised that my A/V receiver (Onkyo TX-NR-535) was bugging the Sunrise Box (especially when powering off). Despite I deactivated all "HDMI through" function of my devices, or even when I activated them, it was still bugging.
My configuration was like that: Sunrise TV Box UHD <-HDMI-> Onkyo <-HDMI-> TV
I changed like that now: Sunrise TV Box UHD <-HDMI-> TV <-Optical-> Onkyo. So for now it works. But I don't know if I could get Dolby Sourround or DTS sound in that configuration.
All this to say to check your A/V receiver if you have one and make some trials by bypassing it.