control panel / power settings not saving

srihari
hello,
        i opened control panel -> power ->schemes->power scheme and change
from ac power to battery power and pressed OK.
      But this setting is not getting changed.if i open again and check it
is showing default scheme that is ' ac scheme" . what should be added to
the os to make it work.

srihari
solved. changed AC_ONLINE_STATUS to AC_OFFLINE_STATUS in battery driver