# US 2017/0285721 A1 · Reducing system energy consumption through event trigger coalescing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0285721 A1
- Document ID: US20170285721A1
- Status: Published application
- Kind: A1
- Application number: 15/083,796
- Filed: 2016-03-29
- Published: 2017-10-05
- Earliest claimed: 2016-03-29
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Graham Wong; Hari R. Pulapaka; Eric Bluestein
- Web page: https://patentgrep.com/patent/US20170285721A1

## CPC

- G06F 1/329: by task scheduling
- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06F 9/4893: {taking into account power or heat criteria (power management in computers in general G06F1/3203; thermal management in computers in general G06F1/206)}
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Coalescing triggers from external events. Embodiments include receiving a plurality of triggers, each associated with occurrence of an external event. A first trigger identified as time critical is scheduled for firing. A second trigger identified as opportunistic is coalesced with others of the plurality of triggers. Coalescing includes determining an importance of an application-based workload associated with the second trigger, determining a system state relevant to firing the second trigger, and determining a condition for firing the second trigger based on the importance of the workload and the system state. Coalescing also includes identifying that the condition for firing the second trigger aligns with a condition for firing the others of the plurality of triggers, and scheduling the second trigger for firing along with the others of the plurality of triggers. Embodiments also include subsequently firing the second trigger along with the others of the plurality of triggers.

## Claims

### Claim 1

A method, implemented at a computer system that includes one or more processors, for coalescing triggers from events external to the computer system, the method comprising:
receiving a plurality of triggers, each trigger being associated with the occurrence of a corresponding external event and having a type based on a type of the external event;
identifying that a first trigger of the plurality of triggers is time critical based on a first type of the first trigger, and scheduling the first trigger for firing based at least on the first trigger being time critical;
identifying that a second trigger of the plurality of triggers is opportunistic based on a second type of the second trigger, and coalescing firing of the second trigger with one or more others of the plurality of triggers based at least on the second trigger being opportunistic, including:
determining an importance of a workload associated with firing of the second trigger, the workload based on at least one application that has registered to receive notification of triggers of the second type;
determining a system state relevant to firing the second trigger;
determining a condition for firing the second trigger, based at least on the importance of the workload and the system state;
identifying that the condition for firing the second trigger aligns with a condition for firing the one or more others of the plurality of triggers; and
scheduling the second trigger for firing along with the one or more others of the plurality of triggers when the condition for firing the second trigger is met; and
subsequent to scheduling the second trigger for firing along with the one or more others of the plurality of triggers, firing the second trigger along with the one or more others of the plurality of triggers.

### Claim 2 (depends on 1)

The method of claim 1, wherein at least one of the one or more others of the plurality of triggers is of a different type than the second type.

### Claim 3 (depends on 1)

The method of claim 1, wherein a particular trigger of the one or more others of the plurality of triggers is of the second type, and wherein scheduling the second trigger for firing along with the one or more others of the plurality of triggers comprises at least one of:
combining a second payload of the second trigger and a first payload of the particular trigger;
replacing the particular trigger; or
invalidating the particular trigger.

### Claim 4 (depends on 3)

The method of claim 3, wherein combining the payload of the second trigger and the payload of the particular trigger comprises at least one of:
replacing the first payload with the second payload;
aggregating one or more values of the first payload and the second payload; or
concatenating one or more portions of the first payload with one or more portions of the second payload.

### Claim 5 (depends on 1)

The method of claim 1, wherein the system state relevant to firing the second trigger comprises whether firing of the second trigger would generate a user-visible change in a user interface at the computer system.

### Claim 6 (depends on 5)

The method of claim 5, wherein the system state relevant to firing the second trigger includes at least one of: (i) whether the at least one application registered to receive triggers of the type of the second trigger is actively executing, (ii) whether a screen of the computer system is on or off, (iii) whether a user interface of the at least one application registered to receive triggers of the type of the second trigger is currently being displayed; (iv) when the user interface of the at least one application registered to receive triggers of the type of the second trigger is anticipated to be displayed based on past application usage; or (v) whether a notification based on the firing of the second trigger would currently be displayed, if the second trigger were to be fired.

### Claim 7 (depends on 1)

The method of claim 1, wherein determining a condition for firing the second trigger also comprises determining a time period over which to coalesce triggers of the second type.

### Claim 8 (depends on 1)

The method of claim 1, wherein the firing of the second trigger along with the one or more others of the plurality of triggers is based upon occurrence of the condition for firing the second trigger.

### Claim 9 (depends on 1)

The method of claim 1, wherein the firing of the second trigger along with the one or more others of the plurality of triggers is based upon firing of the first trigger prior to occurrence of the condition for firing the second trigger.

### Claim 10 (depends on 1)

The method of claim 1, wherein the condition for firing the second trigger comprises a time-based condition.

### Claim 11 (depends on 1)

The method of claim 1, wherein the condition for firing the second trigger comprises a change in the system state relevant to firing the second trigger.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
prior to firing the second trigger along with the one or more others of the plurality of triggers, identifying a new condition for firing the second trigger; and
re-scheduling the second trigger for firing along with the one or more others of the plurality of triggers when new condition is met,
wherein firing the second trigger along with the one or more others of the plurality of triggers is based upon occurrence of the new condition.

### Claim 13 (depends on 1)

The method of claim 1, wherein determining a condition for firing the second trigger based at least on the importance of the workload comprises at least one of identifying data being processed by the at least one application, identifying application functionality, or identifying whether other applications rely on the at least one application.

### Claim 14

A computer system, comprising:
one or more processors; and
one or more computer-readable media having stored thereon computer-executable instructions that are executable by the one or more processors to cause the computer system to coalesce triggers from events external to the computer system, the computer-executable instructions including instructions that are executable to cause the computer system to perform at least the following:
receive a plurality of triggers, each trigger being associated with the occurrence of a corresponding external event and having a type based on a type of the external event;
identify that a first trigger of the plurality of triggers is time critical based on a first type of the first trigger, and schedule the first trigger for firing based at least on the first trigger being time critical;
identify that a second trigger of the plurality of triggers is opportunistic based on a second type of the second trigger, and coalesce firing of the second trigger with one or more others of the plurality of triggers based at least on the second trigger being opportunistic, including:
determining an importance of a workload associated with firing of the second trigger, the workload based on at least one application that has registered to receive notification of triggers of the second type;
determining a system state relevant to firing the second trigger;
determining a condition for firing the second trigger, based at least on the importance of the workload and the system state;
identifying that the condition for firing the second trigger aligns with a condition for firing the one or more others of the plurality of triggers; and
scheduling the second trigger for firing along with the one or more others of the plurality of triggers when the condition for firing the second trigger is met; and
subsequent to scheduling the second trigger for firing along with the one or more others of the plurality of triggers, fire the second trigger along with the one or more others of the plurality of triggers.

### Claim 15 (depends on 14)

The computer system of claim 14, wherein at least one of the one or more others of the plurality of triggers is of a different type than the second type.

### Claim 16 (depends on 14)

The computer system of claim 14, wherein a particular trigger of the one or more others of the plurality of triggers is of the second type, and wherein scheduling the second trigger for firing along with the one or more others of the plurality of triggers comprises at least one of:
combining a second payload of the second trigger and a first payload of the particular trigger;
replacing the particular trigger; or
invalidating the particular trigger.

### Claim 17 (depends on 14)

The computer system of claim 14, wherein the system state relevant to firing the second trigger comprises whether firing of the second trigger would generate a user-visible change in a user interface at the computer system.

### Claim 18 (depends on 14)

The computer system of claim 14, wherein the condition for firing the second trigger comprises a time-based condition or a change in the system state relevant to firing the second trigger.

### Claim 19 (depends on 14)

The computer system of claim 14, wherein determining a condition for firing the second trigger based at least on the importance of the workload comprises at least one of identifying data being processed by the at least one application, identifying application functionality, or identifying whether other applications rely on the at least one application.

### Claim 20

A computer program product comprising one or more hardware storage devices having stored thereon computer-executable instructions that are executable by one or more processors of a computer system to cause the computer system to coalesce triggers from events external to the computer system, the computer-executable instructions including instructions that are executable to cause the computer system to perform at least the following:
receive a plurality of triggers, each trigger being associated with the occurrence of a corresponding external event and having a type based on a type of the external event;
identify that a first trigger of the plurality of triggers is time critical based on a first type of the first trigger, and schedule the first trigger for firing based at least on the first trigger being time critical;
identify that a second trigger of the plurality of triggers is opportunistic based on a second type of the second trigger, and coalesce firing of the second trigger with one or more others of the plurality of triggers based at least on the second trigger being opportunistic, including:
determining an importance of a workload associated with firing of the second trigger, the workload based on at least one application that has registered to receive notification of triggers of the second type;
determining a system state relevant to firing the second trigger;
determining a condition for firing the second trigger, based at least on the importance of the workload and the system state;
identifying that the condition for firing the second trigger aligns with a condition for firing the one or more others of the plurality of triggers; and
scheduling the second trigger for firing along with the one or more others of the plurality of triggers when the condition for firing the second trigger is met; and
subsequent to scheduling the second trigger for firing along with the one or more others of the plurality of triggers, fire the second trigger along with the one or more others of the plurality of triggers.
