[wpkg-users] Power preferences

Robin Roevens robin.roevens at cocks.be
Tue Mar 17 09:07:24 CET 2009


My experience with the windows powermanagement features is that it is a 
per-user setting, but the user needs administrator rights to change it..
I however never tried the powercfg command, but I assume it has the same 
'restriction'. 
I have also seen situations where powermanagement settings are correctly 
set, but are not applied by Windows.
This happens when a normal user has other settings than the administrator, 
the administrater was logged in, and afterwards the user logs in.. Then 
the powermanagement settings of the administrator sometimes stays active 
despite the fact that the user has diferent PM settings..
Bottom line: I found those settings to be completely undependable.

Regards
Robin



From:
Anders Nilsson <andersn at isy.liu.se>
To:
wpkg-users at lists.wpkg.org
Date:
16.03.2009 17:31
Subject:
[wpkg-users] Power preferences



I run the wpkg.js client from Windows XP startup script, which means
wpkg runs as the system user (I think), and try to install the following
self-made package:

<package id="powerproperties"
  name="Power properties for monitor and standby"
  revision="3"
  reboot="false"
  priority="10">

  <install cmd='powercfg /S "Home/Office Desk"' />
  <install cmd='powercfg /X "Home/Office Desk" /monitor-timeout-ac 15' />
  <install cmd='powercfg /X "Home/Office Desk" /standby-timeout-ac 240' />
  <upgrade cmd='powercfg /S "Home/Office Desk"' />
  <upgrade cmd='powercfg /X "Home/Office Desk" /monitor-timeout-ac 15' />
  <upgrade cmd='powercfg /X "Home/Office Desk" /standby-timeout-ac 240' />
</package>

The problem is that the settings don't stick, that is nothing concerning
power properties as changed. The client wpkg log file thinks everything
is OK and that the package is successfully installed (or upgraded when
applicable).

Running the very same commands logged in as Administrator things work
just as expected. When nobody is logged on the monitor shuts down after
15 minutes and the system goes to standby in 4 hours.

As far as I can see these power property settings is not a user
preference, or is that my problem here?

  /Anders
-------------------------------------------------------------------------
wpkg-users mailing list archives >> 
http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



--
Denk aan het milieu - is het nodig deze mail te printen?

** Email Disclaimer:
** This e-mail and the information it contains may be confidential, legally privileged and protected by law.  Access by the intended recipient only is authorised.  If you are not the intended recipient, please notify the sender immediately and delete this e-mail from your system.  Any review, distribution, reproduction, publication or other use of this e-mail by persons or entities other than the intended recipient is prohibited.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20090317/f07dad09/attachment-0002.html>


More information about the wpkg-users mailing list