powerd uses the udev interface to learn about hardware changes.
The InputDeviceController class is responsible for setting input devices'
inhibit udev system attributes (to suppress events) and wakeup sysfs attributes (to enable or disable their ability to wake the system) appropriately depending on the system's current mode. For example, the touchscreen should be ignored while the system is in docked mode with its lid closed.
|If set, powerd will inhibit the device when not usable|
|Device is usable when system is docked|
|Device is usable when in clamshell mode with display off|
|Device is usable when in clamshell mode|
|Device is usable when in tablet mode|
|If set, powerd will manage the device's |
|Enable wakeup when system is docked|
|Enable wakeup when in clamshell mode with display off|
|Enable wakeup when in clamshell mode|
|Enable wakeup when in tablet mode|
|Shorthand for enabling wakeup only when usable|
|Unconditionally disable wakeup (if |
If only the
wakeup tag is set, wakeup will be unconditionally enabled. If one or more
wakeup_when_* tags are also present, wakeup will be enabled only while in the requested modes.
Boards can create and install their own udev rules with prefix
91- to override generic
internal/external_[type] roles, or create udev rules with prefix
93- to override the specific tags above.