fix setting powermanagement values

save when the value has changed and not when it is equal

fixes 93adb3fc2f067d7c0a2f5b2b29340311512e3dbb