Thank you Eric. I will post that info later.
Last night I was looking system logs from Console
I extracted the lines after going to Sleep:
31/8/16 18:21:03,581 identityservicesd[301]: <IMMacNotificationCenterManager: 0x7fa148e45930>: notification observer: com.apple.iChat notification: __CFNotification 0x7fa148c05180 {name = _NSDoNotDisturbEnabledNotification}
31/8/16 18:21:03,719 identityservicesd[301]: <IMMacNotificationCenterManager: 0x7fa148e45930>: NC Disabled: NO
31/8/16 18:21:03,723 identityservicesd[301]: <IMMacNotificationCenterManager: 0x7fa148e45930>: DND Enabled: YES
31/8/16 18:21:03,723 identityservicesd[301]: <IMMacNotificationCenterManager: 0x7fa148e45930>: Updating enabled: NO (Topics: (
))
31/8/16 18:21:04,000 kernel[0]: PM response took 2179 ms (248, netbiosd)
31/8/16 18:21:05,163 WindowServer[223]: device_generate_lock_screen_screenshot: authw 0x0(0)[inf, inf, 0, 0] shield 0x7fbebb056c00(2001), dev [2560,1440]
31/8/16 18:21:08,935 com.apple.xpc.launchd[1]: (com.logmein.hamachi[1058]) Service could not initialize: Unable to set current working directory. error = 2: No such file or directory, path = /Library/Application Support/LogMeIn Hamachi/: 15G31: xpcproxy + 12068 [1343][F7717708-ACF7-307D-B04E-998DFC36598F]: 0x2
31/8/16 18:21:08,935 com.apple.xpc.launchd[1]: (com.logmein.hamachi) Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
31/8/16 18:21:13,293 RunOuc[1060]: WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.6 instead of 10.11.6. This is not a bug in Gestalt -- it is a documented limitation. Use NSProcessInfo's operatingSystemVersion property to get correct system version number.
Call location:
I don't understand most of that but I highlighted in bold what it took my attention.
I don't use Logmein for 2 years. It is a program very difficult to erase completely.
I note that this is a 2 months old 27" iMac 2015. I migrated all my stuff from an old iMac using Migration Apple tools.
Yesterday I installed Logmein again for the purpose to uninstall it and consequently remove that service and other stuff that could be still installed.
I have to say that all Logmein ways to uninstall the program they recommend in their site are wrong.
No way to uninstall it.
The matter is that after I installed Logmein my display always turns on after setting system to sleep (auto or manually)