The powermanager then needs to check for the Away-Mode call like this:
case PBT_POWERSETTINGCHANGE:
{
POWERBROADCAST_SETTING* s = (POWERBROADCAST_SETTING*)nEventData;
if( s != NULL && IsEqualGUID( s->PowerSetting, GUID_SYSTEM_AWAYMODE ) )
// The computer is entering “away” mode.
Further technical documentation is available in the attached documents or over on MSDN:
@TOMillr said:
Still problem is still present in the newest release It makes the CEC-Adapter I’ve bought specifically for my NUC pretty much useless.
Windows Away-Mode is a basic feature of Windows since the old XP days. Wonder why nobody has considered adding this to Kodi/OpenPHT yet…
It might need to be added upstream in Kodi before it shows up here. If you need the feature badly, you could also open an issue with the Kodi or OpenElec team.
Thanks for the that idea. But I’ve already opened up a ticket with Kodi almost two years ago and nobody (of the Linux heavy devs) really seems to care for or understand the problem.