Re: Power manager problem Hive



By default, storage devices use the activity event named in the base storage
profile:

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles]
"ActivityEvent"="PowerManager/ActivityTimer/SystemActivity"

This ActivityEvent is watched by the power manager. Setting the event
indicates system activity, impacting the power manager's state machine. You
can disable the activity event associated with a storage device by changing
the registry settings under the storage profile. The following example will
disable activity events for all Hard Disks (HDProfile):

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile]
"ActivityEvent"=""
"EnableActivityEvent"=dword:0

You could globally disable file system activity timers by making the same
change under the base profile key (above).

The built-in flush mechanism provided by filesys.exe when
PRJ_ENABLE_REGFLUSH_THREAD is set is very simplistic; it flushes the
registry after the prescribed time-out or after the number of changes
reaches the configured threshold. It would be possible to develop an
application or driver that performs smarter flushing by changing the
regflush configuration:

[HKEY_LOCAL_MACHINE\System\ObjectStore\RegFlush]

"ActivityName"="RegFlushEvent"
"SpawnThread"=dword:0
"ActivityThreshold"=dword:1

The above settings will cause the file system to create an event named
RegFlushEvent (ActivityName) and signal the event after ever 1
(ActivityThreshold) registry change. Any application could open the
RegFlushEvent event, wait for registry changes, and then flush based on its
own heuristic using the RegFlushKey API.

--
Andrew Rogers
Microsoft Windows CE Core OS
http://blogs.msdn.com/ce_base/

___________________________________________________________
To reply directly, remove "online" from my email address.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Pretissimo2002" <pretissimo2002@xxxxxxxx> wrote in message
news:1127995079.072405.227250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thank you for the effort; see the questions inline.
>
>> When you use the hive based registry, your registry settings live in a
>> file
>> on disk. If there have been registry changes since the last flush, a
>> flush
>> will result in writes to the disk. The disk write will toggle the
>> SystemActivity event preventing the system from entering the SystemIdle
>> idle
>> state for a period of time.
>
> So whenever there is a disk write the 'SystemActivity' event gets reset
> to prevent the device to suspend? Is that to prevent dataloss? I think
> alot of disk devices are protected against dataloss in either hardware
> or software. Is there a way to turn this 'feature' off?
>
>> Have you enabled the built-in registry flushing mechanism (e.g. set
>> PRJ_ENABLE_REGFLUSH_THREAD)?
>
> Does it make a difference if a custom driver/application starts a
> flushing thread or that the kernel starts it?
>


.



Relevant Pages

  • Re: Way to Alter EWF RAM Config after boot?
    ... I found that the simplest solution was to configure EWF in TD so that it was disabled by default and setup an FBA RunOnce action to execute a script that configured the EWF registry settings the way I wanted. ... The problem is that on one device the protected drive is actually disk 0, ...
    (microsoft.public.windowsxp.embedded)
  • Re: Way to Alter EWF RAM Config after boot?
    ... >> to execute a script that configured the EWF registry settings the way I ... > labels my boot disk as disk 2 so I tried... ...
    (microsoft.public.windowsxp.embedded)
  • Re: OutPost
    ... >> several files from the disk D.!! ... >> registry there are all Agritum settings left in 'Current User/ Software' ... And I chose the automatic uninstall. ...
    (comp.security.firewalls)
  • Re: OutPost
    ... > several files from the disk D.!! ... > registry there are all Agritum settings left in 'Current User/ Software' ... And I chose the automatic uninstall. ...
    (comp.security.firewalls)
  • Re: Recovery Console - dir and cd commands say "The path or file specified is not valid".
    ... Change the boot order in you BIOS to boot from the CD drive. ... I've never had to use the registry editing tools so ... > "STOP: c0000218 Unknown Hard Error> Dumping physical memory to disk: nn". ... and can I load the Recovery Console from an XP> Pro CD. ...
    (microsoft.public.windowsxp.security_admin)

Loading