What is the deal with awaymodesupport

for several months I’ve been able to put my PC to sleep. But I had to programmatically turn off awaymodesupported. Then when the system woke up, I would turn the option back on. The last few days the system would not go to sleep it would go into away mode. Now when I try to send the code to turn on or off awaymodesupported the command does not get an error, but the value does not change.

Duplicate: Awaymodesupported