MCE D-Bus Interface: include/mce/mode-names.h File Reference

MCE D-Bus Interface 1.10.x

mode-names.h File Reference

Defines for names of various modes and submodes for Mode Control Entity. More...

Go to the source code of this file.

## Macros
Radio State Constants
#define | MCE_RADIO_STATE_MASTER (1 << 0)
| Master switch; set - radios enabled, unset - radios disabled. More...
#define | MCE_RADIO_STATE_CELLULAR (1 << 1)
| Cellular; set - enabled, unset - disabled. More...
#define | MCE_RADIO_STATE_WLAN (1 << 2)
| WLAN; set - enabled, unset - disabled. More...
#define | MCE_RADIO_STATE_BLUETOOTH (1 << 3)
| Bluetooth; set - enabled, unset - disabled. More...
#define | MCE_RADIO_STATE_NFC (1 << 4)
| NFC; set - enabled, unset - disabled. More...
#define | MCE_RADIO_STATE_FMTX (1 << 5)
| FM transmitter; set - enabled, unset - disabled. More...
Call State Constants
#define | MCE_CALL_STATE_NONE "none"
| No ongoing call. More...
#define | MCE_CALL_STATE_RINGING "ringing"
| Call ringing. More...
#define | MCE_CALL_STATE_ACTIVE "active"
| Call on-going. More...
#define | MCE_CALL_STATE_SERVICE "service"
| Service operation on-going. More...
Call Type Constants
#define | MCE_NORMAL_CALL "normal"
| Normal call. More...
#define | MCE_EMERGENCY_CALL "emergency"
| Emergency call. More...
Touchscreen And Keypad Lock State Constants
#define | MCE_TK_LOCKED "locked"
| Touchscreen/Keypad locked. More...
#define | MCE_TK_SILENT_LOCKED "silent-locked"
| Touchscreen/Keypad silently locked. More...
#define | MCE_TK_LOCKED_DIM "locked-dim"
| Touchscreen/Keypad locked with fadeout. More...
#define | MCE_TK_LOCKED_DELAY "locked-delay"
| Touchscreen/Keypad locked with delay. More...
#define | MCE_TK_SILENT_LOCKED_DIM "silent-locked-dim"
| Touchscreen/Keypad silently locked with fadeout. More...
#define | MCE_TK_UNLOCKED "unlocked"
| Touchscreen/Keypad unlocked. More...
#define | MCE_TK_SILENT_UNLOCKED "silent-unlocked"
| Touchscreen/Keypad silently unlocked. More...
Display State Constants
#define | MCE_DISPLAY_ON_STRING "on"
| Display state name for display on. More...
#define | MCE_DISPLAY_DIM_STRING "dimmed"
| Display state name for display dim. More...
#define | MCE_DISPLAY_OFF_STRING "off"
| Display state name for display off. More...
Blank Prevention State Constants
#define | MCE_PREVENT_BLANK_ACTIVE_STRING "active"
| Blank prevent state name for active. More...
#define | MCE_PREVENT_BLANK_INACTIVE_STRING "inactive"
| Blank prevent state name for inactive. More...
Blanking Inhibit State Constants
#define | MCE_INHIBIT_BLANK_ACTIVE_STRING "active"
| Blank inhibit state name for active. More...
#define | MCE_INHIBIT_BLANK_INACTIVE_STRING "inactive"
| Blank inhibit state name for inactive. More...
Blanking Policy State Constants
#define | MCE_BLANKING_POLICY_DEFAULT_STRING "default"
| Default blanking policy active. More...
#define | MCE_BLANKING_POLICY_NOTIFICATION_STRING "notification"
| Default blanking policy disabled due to notifications. More...
#define | MCE_BLANKING_POLICY_ALARM_STRING "alarm"
| Default blanking policy disabled due to alarm dialog state. More...
#define | MCE_BLANKING_POLICY_CALL_STRING "call"
| Default blanking policy disabled due to call state. More...
#define | MCE_BLANKING_POLICY_LINGER_STRING "linger"
| Default blanking policy is about to be restored. More...
CABC Mode Constants
#define | MCE_CABC_MODE_OFF "off"
| CABC name for CABC disabled. More...
#define | MCE_CABC_MODE_UI "ui"
| CABC name for UI mode. More...
#define | MCE_CABC_MODE_STILL_IMAGE "still-image"
| CABC name for still image mode. More...
#define | MCE_CABC_MODE_MOVING_IMAGE "moving-image"
| CABC name for moving image mode. More...
Power Key Trigger Constants
#define | MCE_POWERKEY_EVENT_SHORT_PRESS (0u)
| Simulate single powerkey press. More...
#define | MCE_POWERKEY_EVENT_LONG_PRESS (1u)
| Simulate long powerkey press. More...
#define | MCE_POWERKEY_EVENT_DOUBLE_PRESS (2u)
| Simulate double powerkey press. More...
USB Cable State Constants
#define | MCE_USB_CABLE_STATE_UNKNOWN "unknown"
| USB cable state is not known. More...
#define | MCE_USB_CABLE_STATE_CONNECTED "connected"
| USB cable is connected. More...
#define | MCE_USB_CABLE_STATE_DISCONNECTED "disconnected"
| USB cable is disconnected. More...
Charger State Constants
#define | MCE_CHARGER_STATE_UNKNOWN "unknown"
| Charger state is not known. More...
#define | MCE_CHARGER_STATE_ON "on"
| Charger is active. More...
#define | MCE_CHARGER_STATE_OFF "off"
| Charger is inactive. More...
Charger Type Constants
#define | MCE_CHARGER_TYPE_NONE "none"
| No charger is active. More...
#define | MCE_CHARGER_TYPE_USB "usb"
| Standard down port (pc/hub) charger is active. More...
#define | MCE_CHARGER_TYPE_DCP "dcp"
| Dedicated charging port (wall) charger is active. More...
#define | MCE_CHARGER_TYPE_HVDCP "hvdcp"
| High voltage DCP charger is active. More...
#define | MCE_CHARGER_TYPE_CDP "cdp"
| Charging Downstream Port charger is active. More...
#define | MCE_CHARGER_TYPE_WIRELESS "wireless"
| Wireless charger is active. More...
#define | MCE_CHARGER_TYPE_OTHER "other"
| Other kind of charger is active. More...
Charging Hysteresis State Constants
#define | MCE_CHARGING_STATE_UNKNOWN "unknown"
| Charging hysteresis policy state is not known. More...
#define | MCE_CHARGING_STATE_ENABLED "enabled"
| Charging hysteresis policy allows charging. More...
#define | MCE_CHARGING_STATE_DISABLED "disabled"
| Charging hysteresis policy denies charging. More...
Charge-once-to-full policy override constants
#define | MCE_FORCED_CHARGING_UNKNOWN "unknown"
| Charge-once-to-full policy override state is not known. More...
#define | MCE_FORCED_CHARGING_ENABLED "enabled"
| Charge-once-to-full policy override has been activated. More...
#define | MCE_FORCED_CHARGING_DISABLED "disabled"
| Charge-once-to-full policy override has been deactivated. More...
Battery Status Constants
These values match legacy maemo (bme) battery status values.
#define | MCE_BATTERY_STATUS_UNKNOWN "unknown"
| Battery status is not known. More...
#define | MCE_BATTERY_STATUS_FULL "full"
| Battery is full. More...
#define | MCE_BATTERY_STATUS_OK "ok"
| Battery is neither full nor empty. More...
#define | MCE_BATTERY_STATUS_LOW "low"
| Battery is low on power. More...
#define | MCE_BATTERY_STATUS_EMPTY "empty"
| Battery is empty. More...
Battery State Constants
These values match linux power supply device status values.
#define | MCE_BATTERY_STATE_UNKNOWN "unknown"
| Battery state is not known. More...
#define | MCE_BATTERY_STATE_DISCHARGING "discharging"
| Battery is currently discharging. More...
#define | MCE_BATTERY_STATE_CHARGING "charging"
| Battery is currently charging. More...
#define | MCE_BATTERY_STATE_NOT_CHARGING "not_charging"
| Battery is not getting charged. More...
#define | MCE_BATTERY_STATE_FULL "full"
| Battery is fully charged. More...
Battery Level Constants
#define | MCE_BATTERY_LEVEL_UNKNOWN (-1)
| Battery level percentage is not known. More...
Input Policy State Constants
#define | MCE_INPUT_POLICY_ENABLED "enabled"
| Input events should be processed normally. More...
#define | MCE_INPUT_POLICY_DISABLED "disabled"
| Input events should be ignored. More...
Hardware Keyboard Availability Constants
#define | MCE_HARDWARE_KEYBOARD_UNDEF "undef"
| Hardware Keyboard availability is not known. More...
#define | MCE_HARDWARE_KEYBOARD_AVAILABLE "available"
| Hardware Keyboard is available. More...
#define | MCE_HARDWARE_KEYBOARD_NOT_AVAILABLE "not-available"
| Hardware Keyboard is not available. More...
Hardware Mouse Availability Constants
#define | MCE_HARDWARE_MOUSE_UNDEF "undef"
| Hardware Mouse availability is not known. More...
#define | MCE_HARDWARE_MOUSE_AVAILABLE "available"
| Hardware Mouse is available. More...
#define | MCE_HARDWARE_MOUSE_NOT_AVAILABLE "not-available"
| Hardware Mouse is not available. More...
Feedback Event Name Constants
#define | MCE_FEEDBACK_EVENT_POWERKEY "powerkey"
| Notify that an application should handle powerkey press. More...
#define | MCE_FEEDBACK_EVENT_FLIPOVER "flipover"
| Notify that an application should handle device flipover. More...
#define | MCE_FEEDBACK_EVENT_UNLOCK "double-power-key"
| Request lockscreen ui to switch to device unlock view. More...
#define | MCE_FEEDBACK_EVENT_HOMEKEY "home-key"
| Notify lipstick about homekey presses. More...
Sliding Keyboard Availability Constants
Used for example in evaluating whether virtual keyboard should be used or not. See: MCE_SLIDING_KEYBOARD_STATE_GET MCE_SLIDING_KEYBOARD_STATE_SIG
#define | MCE_SLIDING_KEYBOARD_UNDEF "undef"
| Sliding Keyboard state is not known. More...
#define | MCE_SLIDING_KEYBOARD_OPEN "open"
| Sliding Keyboard is opened. More...
#define | MCE_SLIDING_KEYBOARD_CLOSED "closed"
| Sliding Keyboard is closed. More...
Display Low Power Mode Constants
#define | MCE_LPM_UI_ENABLED "enabled"
| Display Low Power Mode is Enabled. More...
#define | MCE_LPM_UI_DISABLED "disabled"
| Display Low Power Mode is Disabled. More...
System Memory Pressure Constants
#define | MCE_MEMORY_LEVEL_NORMAL "normal"
| System memory use is at normal level. More...
#define | MCE_MEMORY_LEVEL_WARNING "warning"
| System memory use is above normal level. More...
#define | MCE_MEMORY_LEVEL_CRITICAL "critical"
| System memory use is at critical level. More...
#define | MCE_MEMORY_LEVEL_UNKNOWN "unknown"
| System memory use can't be evaluated. More...
TKLock status replies from SystemUI
#define | TKLOCK_UNLOCK 1
| TKLock was unlocked by the user. More...
#define | TKLOCK_RETRY 2
| TKLock unlock attempt failed. More...
#define | TKLOCK_TIMEOUT 3
| Attempt to open TKLock timed out. More...
#define | TKLOCK_CLOSED 4
| TKLock closed on request from mce. More...
Button backlight operation modes
#define | MCE_BUTTON_BACKLIGHT_MODE_OFF 0
| Button backlight should be turned off. More...
#define | MCE_BUTTON_BACKLIGHT_MODE_ON 1
| Button backlight should be turned on. More...
#define | MCE_BUTTON_BACKLIGHT_MODE_POLICY 2
| Button backlight should be turned on/off according to policy. More...

## Detailed Description

Defines for names of various modes and submodes for Mode Control Entity.

This file is part of mce-dev

Copyright (c) 2004 - 2011 Nokia Corporation and/or its subsidiary(-ies). Copyright (c) 2012 - 2022 Jolla Ltd. Copyright (c) 2019 Open Mobile Platform LLC.

Author
  David Weinehall david.nosp@m..wei.nosp@m.nehal.nosp@m.l@no.nosp@m.kia.c.nosp@m.om
  Tapio Rantala ext-t.nosp@m.apio.nosp@m..rant.nosp@m.ala@.nosp@m.nokia.nosp@m..com
  Vesa Halttunen vesa..nosp@m.halt.nosp@m.tunen.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.com
  Simo Piiroinen simo..nosp@m.piir.nosp@m.oinen.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.com
  Kimmo Lindholm kimmo.nosp@m..lin.nosp@m.dholm.nosp@m.@eke.nosp@m..fi

These headers are free software; you can redistribute them and/or modify them under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

These headers are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with these headers. If not, see http://www.gnu.org/licenses/.

## Macro Definition Documentation

## ◆ MCE_RADIO_STATE_MASTER

#define MCE_RADIO_STATE_MASTER (1 << 0)

Master switch; set - radios enabled, unset - radios disabled.

Since
  mce 1.10.60

Note
  Effectively is an alias for connman offline mode property. Chamges to offline mode are reflected to mce master radio bit and vise versa.

## ◆ MCE_RADIO_STATE_CELLULAR

#define MCE_RADIO_STATE_CELLULAR (1 << 1)

Cellular; set - enabled, unset - disabled.

Since
  mce 1.10.60

Note
  Currently this exists for backwards compatibility only.

## ◆ MCE_RADIO_STATE_WLAN

#define MCE_RADIO_STATE_WLAN (1 << 2)

WLAN; set - enabled, unset - disabled.

Since
  mce 1.10.60

Note
  Currently this exists for backwards compatibility only.

## ◆ MCE_RADIO_STATE_BLUETOOTH

#define MCE_RADIO_STATE_BLUETOOTH (1 << 3)

Bluetooth; set - enabled, unset - disabled.

Since
  mce 1.10.60

Note
  Currently this exists for backwards compatibility only.

## ◆ MCE_RADIO_STATE_NFC

#define MCE_RADIO_STATE_NFC (1 << 4)

NFC; set - enabled, unset - disabled.

Since
  mce 1.10.93

Note
  Currently this exists for backwards compatibility only.

## ◆ MCE_RADIO_STATE_FMTX

#define MCE_RADIO_STATE_FMTX (1 << 5)

FM transmitter; set - enabled, unset - disabled.

Since
  mce 1.10.93

Note
  Currently this exists for backwards compatibility only.

## ◆ MCE_CALL_STATE_NONE

#define MCE_CALL_STATE_NONE "none"

No ongoing call.

Since
  mce 1.8.4

## ◆ MCE_CALL_STATE_RINGING

#define MCE_CALL_STATE_RINGING "ringing"

Call ringing.

Since
  mce 1.8.29

## ◆ MCE_CALL_STATE_ACTIVE

#define MCE_CALL_STATE_ACTIVE "active"

Call on-going.

Since
  mce 1.8.29

## ◆ MCE_CALL_STATE_SERVICE

#define MCE_CALL_STATE_SERVICE "service"

Service operation on-going.

Since
  mce 1.8.29

Deprecated:
  No longer in active use.

Use to prevent calls from being initiated; will not prevent emergency calls

## ◆ MCE_NORMAL_CALL

#define MCE_NORMAL_CALL "normal"

Normal call.

Since
  mce 1.8.4

## ◆ MCE_EMERGENCY_CALL

#define MCE_EMERGENCY_CALL "emergency"

Emergency call.

Since
  mce 1.8.4

## ◆ MCE_TK_LOCKED

#define MCE_TK_LOCKED "locked"

Touchscreen/Keypad locked.

Since
  mce 1.4.5

## ◆ MCE_TK_SILENT_LOCKED

#define MCE_TK_SILENT_LOCKED "silent-locked"

Touchscreen/Keypad silently locked.

Since
  mce 1.4.15

Deprecated:
  Handled as an alias for MCE_TK_LOCKED

## ◆ MCE_TK_LOCKED_DIM

#define MCE_TK_LOCKED_DIM "locked-dim"

Touchscreen/Keypad locked with fadeout.

Since
  mce 1.4.15

Deprecated:
  Handled as an alias for MCE_TK_LOCKED

## ◆ MCE_TK_LOCKED_DELAY

#define MCE_TK_LOCKED_DELAY "locked-delay"

Touchscreen/Keypad locked with delay.

Since
  mce 1.12.2

Deprecated:
  Handled as an alias for MCE_TK_LOCKED

## ◆ MCE_TK_SILENT_LOCKED_DIM

#define MCE_TK_SILENT_LOCKED_DIM "silent-locked-dim"

Touchscreen/Keypad silently locked with fadeout.

Since
  mce 1.4.15

Deprecated:
  Handled as an alias for MCE_TK_LOCKED

## ◆ MCE_TK_UNLOCKED

#define MCE_TK_UNLOCKED "unlocked"

Touchscreen/Keypad unlocked.

Since
  mce 1.4.5

## ◆ MCE_TK_SILENT_UNLOCKED

#define MCE_TK_SILENT_UNLOCKED "silent-unlocked"

Touchscreen/Keypad silently unlocked.

Since
  mce 1.6.33

Deprecated:
  Handled as an alias for MCE_TK_UNLOCKED

## ◆ MCE_DISPLAY_ON_STRING

#define MCE_DISPLAY_ON_STRING "on"

Display state name for display on.

Since
  mce 1.5.21

## ◆ MCE_DISPLAY_DIM_STRING

#define MCE_DISPLAY_DIM_STRING "dimmed"

Display state name for display dim.

Since
  mce 1.5.21

## ◆ MCE_DISPLAY_OFF_STRING

#define MCE_DISPLAY_OFF_STRING "off"

Display state name for display off.

Since
  mce 1.5.21

## ◆ MCE_PREVENT_BLANK_ACTIVE_STRING

#define MCE_PREVENT_BLANK_ACTIVE_STRING "active"

Blank prevent state name for active.

Since
  mce 1.51.0

## ◆ MCE_PREVENT_BLANK_INACTIVE_STRING

#define MCE_PREVENT_BLANK_INACTIVE_STRING "inactive"

Blank prevent state name for inactive.

Since
  mce 1.51.0

## ◆ MCE_INHIBIT_BLANK_ACTIVE_STRING

#define MCE_INHIBIT_BLANK_ACTIVE_STRING "active"

Blank inhibit state name for active.

Since
  mce 1.51.0

## ◆ MCE_INHIBIT_BLANK_INACTIVE_STRING

#define MCE_INHIBIT_BLANK_INACTIVE_STRING "inactive"

Blank inhibit state name for inactive.

Since
  mce 1.51.0

## ◆ MCE_BLANKING_POLICY_DEFAULT_STRING

#define MCE_BLANKING_POLICY_DEFAULT_STRING "default"

Default blanking policy active.

Since
  mce 1.55.0

## ◆ MCE_BLANKING_POLICY_NOTIFICATION_STRING

#define MCE_BLANKING_POLICY_NOTIFICATION_STRING "notification"

Default blanking policy disabled due to notifications.

Since
  mce 1.55.0

## ◆ MCE_BLANKING_POLICY_ALARM_STRING

#define MCE_BLANKING_POLICY_ALARM_STRING "alarm"

Default blanking policy disabled due to alarm dialog state.

Since
  mce 1.55.0

## ◆ MCE_BLANKING_POLICY_CALL_STRING

#define MCE_BLANKING_POLICY_CALL_STRING "call"

Default blanking policy disabled due to call state.

Since
  mce 1.55.0

## ◆ MCE_BLANKING_POLICY_LINGER_STRING

#define MCE_BLANKING_POLICY_LINGER_STRING "linger"

Default blanking policy is about to be restored.

Since
  mce 1.55.0

## ◆ MCE_CABC_MODE_OFF

#define MCE_CABC_MODE_OFF "off"

CABC name for CABC disabled.

Since
  mce 1.8.88

## ◆ MCE_CABC_MODE_UI

#define MCE_CABC_MODE_UI "ui"

CABC name for UI mode.

Since
  mce 1.8.88

## ◆ MCE_CABC_MODE_STILL_IMAGE

#define MCE_CABC_MODE_STILL_IMAGE "still-image"

CABC name for still image mode.

Since
  mce 1.8.88

## ◆ MCE_CABC_MODE_MOVING_IMAGE

#define MCE_CABC_MODE_MOVING_IMAGE "moving-image"

CABC name for moving image mode.

Since
  mce 1.8.88

## ◆ MCE_POWERKEY_EVENT_SHORT_PRESS

#define MCE_POWERKEY_EVENT_SHORT_PRESS (0u)

Simulate single powerkey press.

Since
  mce 1.10.54

## ◆ MCE_POWERKEY_EVENT_LONG_PRESS

#define MCE_POWERKEY_EVENT_LONG_PRESS (1u)

Simulate long powerkey press.

Since
  mce 1.10.54

## ◆ MCE_POWERKEY_EVENT_DOUBLE_PRESS

#define MCE_POWERKEY_EVENT_DOUBLE_PRESS (2u)

Simulate double powerkey press.

Since
  mce 1.10.54

## ◆ MCE_USB_CABLE_STATE_UNKNOWN

#define MCE_USB_CABLE_STATE_UNKNOWN "unknown"

USB cable state is not known.

Since
  mce 1.86.0

## ◆ MCE_USB_CABLE_STATE_CONNECTED

#define MCE_USB_CABLE_STATE_CONNECTED "connected"

USB cable is connected.

Since
  mce 1.86.0

## ◆ MCE_USB_CABLE_STATE_DISCONNECTED

#define MCE_USB_CABLE_STATE_DISCONNECTED "disconnected"

USB cable is disconnected.

Since
  mce 1.86.0

## ◆ MCE_CHARGER_STATE_UNKNOWN

#define MCE_CHARGER_STATE_UNKNOWN "unknown"

Charger state is not known.

Since
  mce 1.86.0

## ◆ MCE_CHARGER_STATE_ON

#define MCE_CHARGER_STATE_ON "on"

Charger is active.

Since
  mce 1.86.0

## ◆ MCE_CHARGER_STATE_OFF

#define MCE_CHARGER_STATE_OFF "off"

Charger is inactive.

Since
  mce 1.86.0

## ◆ MCE_CHARGER_TYPE_NONE

#define MCE_CHARGER_TYPE_NONE "none"

No charger is active.

Since
  mce 1.102.0

## ◆ MCE_CHARGER_TYPE_USB

#define MCE_CHARGER_TYPE_USB "usb"

Standard down port (pc/hub) charger is active.

Since
  mce 1.102.0

## ◆ MCE_CHARGER_TYPE_DCP

#define MCE_CHARGER_TYPE_DCP "dcp"

Dedicated charging port (wall) charger is active.

Since
  mce 1.102.0

## ◆ MCE_CHARGER_TYPE_HVDCP

#define MCE_CHARGER_TYPE_HVDCP "hvdcp"

High voltage DCP charger is active.

Since
  mce 1.102.0

## ◆ MCE_CHARGER_TYPE_CDP

#define MCE_CHARGER_TYPE_CDP "cdp"

Charging Downstream Port charger is active.

Since
  mce 1.102.0

## ◆ MCE_CHARGER_TYPE_WIRELESS

#define MCE_CHARGER_TYPE_WIRELESS "wireless"

Wireless charger is active.

Since
  mce 1.102.0

## ◆ MCE_CHARGER_TYPE_OTHER

#define MCE_CHARGER_TYPE_OTHER "other"

Other kind of charger is active.

Since
  mce 1.102.0

## ◆ MCE_CHARGING_STATE_UNKNOWN

#define MCE_CHARGING_STATE_UNKNOWN "unknown"

Charging hysteresis policy state is not known.

Since
  mce 1.110.0

## ◆ MCE_CHARGING_STATE_ENABLED

#define MCE_CHARGING_STATE_ENABLED "enabled"

Charging hysteresis policy allows charging.

Since
  mce 1.110.0

## ◆ MCE_CHARGING_STATE_DISABLED

#define MCE_CHARGING_STATE_DISABLED "disabled"

Charging hysteresis policy denies charging.

Since
  mce 1.110.0

## ◆ MCE_FORCED_CHARGING_UNKNOWN

#define MCE_FORCED_CHARGING_UNKNOWN "unknown"

Charge-once-to-full policy override state is not known.

Since
  mce 1.112.0

## ◆ MCE_FORCED_CHARGING_ENABLED

#define MCE_FORCED_CHARGING_ENABLED "enabled"

Charge-once-to-full policy override has been activated.

Since
  mce 1.112.0

## ◆ MCE_FORCED_CHARGING_DISABLED

#define MCE_FORCED_CHARGING_DISABLED "disabled"

Charge-once-to-full policy override has been deactivated.

Since
  mce 1.112.0

## ◆ MCE_BATTERY_STATUS_UNKNOWN

#define MCE_BATTERY_STATUS_UNKNOWN "unknown"

Battery status is not known.

Since
  mce 1.86.0

## ◆ MCE_BATTERY_STATUS_FULL

#define MCE_BATTERY_STATUS_FULL "full"

Battery is full.

Since
  mce 1.86.0

## ◆ MCE_BATTERY_STATUS_OK

#define MCE_BATTERY_STATUS_OK "ok"

Battery is neither full nor empty.

Since
  mce 1.86.0

## ◆ MCE_BATTERY_STATUS_LOW

#define MCE_BATTERY_STATUS_LOW "low"

Battery is low on power.

Since
  mce 1.86.0

## ◆ MCE_BATTERY_STATUS_EMPTY

#define MCE_BATTERY_STATUS_EMPTY "empty"

Battery is empty.

Since
  mce 1.86.0

## ◆ MCE_BATTERY_STATE_UNKNOWN

#define MCE_BATTERY_STATE_UNKNOWN "unknown"

Battery state is not known.

Since
  mce 1.104.0

## ◆ MCE_BATTERY_STATE_DISCHARGING

#define MCE_BATTERY_STATE_DISCHARGING "discharging"

Battery is currently discharging.

Charger is disconnected, battery is discharging.

Since
  mce 1.104.0

## ◆ MCE_BATTERY_STATE_CHARGING

#define MCE_BATTERY_STATE_CHARGING "charging"

Battery is currently charging.

Charger is connected, battery is charging.

Since
  mce 1.104.0

## ◆ MCE_BATTERY_STATE_NOT_CHARGING

#define MCE_BATTERY_STATE_NOT_CHARGING "not_charging"

Battery is not getting charged.

Charger is connected, battery is not getting charged.

Since
  mce 1.104.0

## ◆ MCE_BATTERY_STATE_FULL

#define MCE_BATTERY_STATE_FULL "full"

Battery is fully charged.

Charger is connected, battery is full.

Since
  mce 1.104.0

## ◆ MCE_BATTERY_LEVEL_UNKNOWN

#define MCE_BATTERY_LEVEL_UNKNOWN (-1)

Battery level percentage is not known.

Since
  mce 1.86.0

## ◆ MCE_INPUT_POLICY_ENABLED

#define MCE_INPUT_POLICY_ENABLED "enabled"

Input events should be processed normally.

Since
  mce 1.87.0

## ◆ MCE_INPUT_POLICY_DISABLED

#define MCE_INPUT_POLICY_DISABLED "disabled"

Input events should be ignored.

Since
  mce 1.87.0

## ◆ MCE_HARDWARE_KEYBOARD_UNDEF

#define MCE_HARDWARE_KEYBOARD_UNDEF "undef"

Hardware Keyboard availability is not known.

Since
  mce 1.39.0

## ◆ MCE_HARDWARE_KEYBOARD_AVAILABLE

#define MCE_HARDWARE_KEYBOARD_AVAILABLE "available"

Hardware Keyboard is available.

Since
  mce 1.39.0

## ◆ MCE_HARDWARE_KEYBOARD_NOT_AVAILABLE

#define MCE_HARDWARE_KEYBOARD_NOT_AVAILABLE "not-available"

Hardware Keyboard is not available.

Since
  mce 1.39.0

## ◆ MCE_HARDWARE_MOUSE_UNDEF

#define MCE_HARDWARE_MOUSE_UNDEF "undef"

Hardware Mouse availability is not known.

Since
  mce 1.109.0

## ◆ MCE_HARDWARE_MOUSE_AVAILABLE

#define MCE_HARDWARE_MOUSE_AVAILABLE "available"

Hardware Mouse is available.

Since
  mce 1.109.0

## ◆ MCE_HARDWARE_MOUSE_NOT_AVAILABLE

#define MCE_HARDWARE_MOUSE_NOT_AVAILABLE "not-available"

Hardware Mouse is not available.

Since
  mce 1.109.0

## ◆ MCE_FEEDBACK_EVENT_POWERKEY

#define MCE_FEEDBACK_EVENT_POWERKEY "powerkey"

Notify that an application should handle powerkey press.

Since
  mce 1.26.0

Normally MCE handles powerkey presses internally, however there are some exceptions - for example during alarms and incoming calls - where reacting to power key press is delegated to application ui relevant to the context.

See:

- MCE_ALARM_UI_FEEDBACK_SIG
- MCE_CALL_UI_FEEDBACK_SIG

## ◆ MCE_FEEDBACK_EVENT_FLIPOVER

#define MCE_FEEDBACK_EVENT_FLIPOVER "flipover"

Notify that an application should handle device flipover.

Since
  mce 1.26.0

While there are incoming calls or ringing alarms, MCE does device flipover detection. Reacting to such "sensor gestures" is delegated to application ui relevant to the context.

See:

- MCE_ALARM_UI_FEEDBACK_SIG
- MCE_CALL_UI_FEEDBACK_SIG

## ◆ MCE_FEEDBACK_EVENT_UNLOCK

#define MCE_FEEDBACK_EVENT_UNLOCK "double-power-key"

Request lockscreen ui to switch to device unlock view.

Since
  mce 1.37.0

When MCE bumps into situation where removing tklock is requested while device is locked, it asks ui to switch into device unlock view instead of deactivating tklock.

See:

- MCE_POWER_BUTTON_TRIGGER

Note
  The "double-power-key" value is just unfortunate historical artefact that can't be changed without causing a D-Bus API break.

## ◆ MCE_FEEDBACK_EVENT_HOMEKEY

#define MCE_FEEDBACK_EVENT_HOMEKEY "home-key"

Notify lipstick about homekey presses.

Since
  mce 1.82.0

Artefact from tk7001 adaptation: The fingerprint sensor doubles as home key. To facilitate "wakeup display and activate fingerprint sensor" type activity homekey handling is divided in two parts: 1st mce subjects the press to similar unblanking rules as what is done to the powerkey and then after/when display is powered up reaction to the homekey is delegated to lipstick.

See:

- MCE_POWER_BUTTON_TRIGGER

## ◆ MCE_SLIDING_KEYBOARD_UNDEF

#define MCE_SLIDING_KEYBOARD_UNDEF "undef"

Sliding Keyboard state is not known.

Since
  mce 1.39.0

## ◆ MCE_SLIDING_KEYBOARD_OPEN

#define MCE_SLIDING_KEYBOARD_OPEN "open"

Sliding Keyboard is opened.

Since
  mce 1.39.0

## ◆ MCE_SLIDING_KEYBOARD_CLOSED

#define MCE_SLIDING_KEYBOARD_CLOSED "closed"

Sliding Keyboard is closed.

Since
  mce 1.39.0

## ◆ MCE_LPM_UI_ENABLED

#define MCE_LPM_UI_ENABLED "enabled"

Display Low Power Mode is Enabled.

Since
  mce 1.30.0

## ◆ MCE_LPM_UI_DISABLED

#define MCE_LPM_UI_DISABLED "disabled"

Display Low Power Mode is Disabled.

Since
  mce 1.30.0

## ◆ MCE_MEMORY_LEVEL_NORMAL

#define MCE_MEMORY_LEVEL_NORMAL "normal"

System memory use is at normal level.

Since
  mce 1.35.0

## ◆ MCE_MEMORY_LEVEL_WARNING

#define MCE_MEMORY_LEVEL_WARNING "warning"

System memory use is above normal level.

Since
  mce 1.35.0

Signifies: Unnecesary resources should be released.

## ◆ MCE_MEMORY_LEVEL_CRITICAL

#define MCE_MEMORY_LEVEL_CRITICAL "critical"

System memory use is at critical level.

Since
  mce 1.35.0

Signifies: Unnecessary processes should exit. Non-critical processes can be expected to get terminated by kernel side out of memory killer.

## ◆ MCE_MEMORY_LEVEL_UNKNOWN

#define MCE_MEMORY_LEVEL_UNKNOWN "unknown"

System memory use can't be evaluated.

Since
  mce 1.35.0

Signifies: Kernel does not provide memnotify interface and/or memory use limits have not been defined in mce configuration.

## ◆ TKLOCK_UNLOCK

#define TKLOCK_UNLOCK 1

TKLock was unlocked by the user.

Since
  mce 1.10.92 (legacy)

## ◆ TKLOCK_RETRY

#define TKLOCK_RETRY 2

TKLock unlock attempt failed.

Since
  mce 1.10.92 (legacy)

Deprecated:
  Ignored by MCE

## ◆ TKLOCK_TIMEOUT

#define TKLOCK_TIMEOUT 3

Attempt to open TKLock timed out.

Since
  mce 1.10.92 (legacy)

Deprecated:
  Ignored by MCE

## ◆ TKLOCK_CLOSED

#define TKLOCK_CLOSED 4

TKLock closed on request from mce.

Since
  mce 1.10.92 (legacy)

## ◆ MCE_BUTTON_BACKLIGHT_MODE_OFF

#define MCE_BUTTON_BACKLIGHT_MODE_OFF 0

Button backlight should be turned off.

Since
  mce 1.98.0

## ◆ MCE_BUTTON_BACKLIGHT_MODE_ON

#define MCE_BUTTON_BACKLIGHT_MODE_ON 1

Button backlight should be turned on.

Since
  mce 1.98.0

## ◆ MCE_BUTTON_BACKLIGHT_MODE_POLICY

#define MCE_BUTTON_BACKLIGHT_MODE_POLICY 2

Button backlight should be turned on/off according to policy.

Since
  mce 1.98.0