Skip to content

Sleep is not properly tracked #2

@Joly0

Description

@Joly0

Hey, i noticed that on my work laptop laptop going to sleep is not properly tracked.

When i looked into the code i saw these event codes that indicate the different states:

$startEventIds = @(12,6005,1,107)   # boot/wake/resume
$endEventIds   = @(13,6006,42,1074) # shutdown/sleep/hibernate

i looked into the event viewer and noticed, that there are the event ids 506 and 507, where 506 is:

The system switches to modern standby mode. 

Reason: Idle timeout.

and 507 is:

The system exits modern standby mode. 

Reason: Input Keyboard.

I cannot find much about them when i searched online, but i still think they might be worth adding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions