blob: b7337598276f758f403a1de22986af8a4ef40bc2 [file] [log] [blame]
// Copyright 2017 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
syntax = "proto2";
option optimize_for = LITE_RUNTIME;
package power_manager;
// Included in powerd's ScreenIdleStateChanged signal, emitted when the screen's
// dimming or on/off state changes in response to user activity or inactivity.
message ScreenIdleState {
// Next ID to use: 3
// If true, the screen-dim timeout has been reached.
//
// Note that this only reflects the inactivity delay. The screen may actually
// be turned off due to an earlier user request to reduce its brightness to 0,
// for instance. Use kBrightnessChangedSignal if you need to know the
// screen brightness currently requested by powerd.
optional bool dimmed = 1;
// If true, the screen-off timeout has been reached.
optional bool off = 2;
}