blob: d9c9c63580dbcc6fcc041e6716851ac170988d71 [file] [log] [blame]
ENV{POWERD_ROLE}=="internal_keyboard", ENV{POWERD_TAGS_USABLE}="usable_when_laptop usable_when_display_off"
ENV{POWERD_ROLE}=="internal_touchpad", ENV{POWERD_TAGS_USABLE}="usable_when_laptop usable_when_display_off"
ENV{POWERD_ROLE}=="internal_touchscreen", ENV{POWERD_TAGS_USABLE}="usable_when_laptop usable_when_tablet"
ENV{POWERD_ROLE}=="internal_stylus", ENV{POWERD_TAGS_USABLE}="usable_when_laptop usable_when_tablet"
ENV{POWERD_ROLE}=="external_input", ENV{POWERD_TAGS_USABLE}="usable_when_docked usable_when_laptop usable_when_tablet usable_when_display_off"
ENV{POWERD_ROLE}=="cros_fingerprint", ENV{POWERD_TAGS_USABLE}="usable_when_docked usable_when_laptop usable_when_tablet usable_when_display_off"
ENV{POWERD_ROLE}=="cros_bluetooth", ENV{POWERD_TAGS_USABLE}="usable_when_docked usable_when_laptop usable_when_tablet usable_when_display_off"
ENV{POWERD_ROLE}=="internal_keyboard", KERNEL=="input*", ENV{POWERD_TAGS_WAKEUP}="wakeup"
ENV{POWERD_ROLE}=="internal_touchpad", KERNEL=="input*", ENV{POWERD_TAGS_WAKEUP}="wakeup wakeup_only_when_usable"
ENV{POWERD_ROLE}=="internal_touchscreen", KERNEL=="input*", ENV{POWERD_TAGS_WAKEUP}="wakeup wakeup_disabled"
ENV{POWERD_ROLE}=="internal_stylus", KERNEL=="input*", ENV{POWERD_TAGS_WAKEUP}="wakeup wakeup_only_when_usable"
ENV{POWERD_ROLE}=="external_input", KERNEL=="input*", ENV{POWERD_TAGS_WAKEUP}="wakeup wakeup_only_when_usable"
ENV{POWERD_ROLE}=="cros_fingerprint", KERNEL=="input*", ENV{POWERD_TAGS_WAKEUP}="wakeup wakeup_only_when_usable"
# Bluetooth hids are usable when in tablet mode but cannot wake the system from
# sleep. This is to prevent tablets (and convertibles in tablet mode) from being
# woken up unnecessarily. For example, we do not want to wake tablets stored in
# a backpack on Bluetooth HID connection.
ENV{POWERD_ROLE}=="cros_bluetooth", KERNEL=="input*", ENV{POWERD_TAGS_WAKEUP}="wakeup wakeup_when_docked wakeup_when_laptop wakeup_when_display_off"
ENV{POWERD_ROLE}!="", KERNEL=="input*", ATTR{inhibited}!="", ENV{POWERD_TAGS_INHIBIT}="inhibit"