Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signal hw keyboard availability state over D-Bus System Bus
Classify evdev nodes that send KEY_Q and KEY_P events as keyboards or slide-in keypads depending on whether they also emit SW_KEYPAD_SLIDE switch state events. Maintain a hw-keyboard-is-available state - which is true as long as there exists at least one keyboard device or slide-in keypad in open position. When availability state changes, a keypad_available_state_ind signal is broadcast over D-Bus System Bus. <node name="/com/nokia/mce/signal"> <interface name="com.nokia.mce.signal"> <signal name="keypad_available_state_ind"> <arg name="keypad_state" type="s"/> </signal> </interface> </node> Current state can be queried from mce with keypad_available_state_req D-Bus method call. <node name="/com/nokia/mce/request"> <interface name="com.nokia.mce.request"> <method name="keypad_available_state_req"> <arg direction="out" name="keypad_state" type="s"/> </method> </interface> </node> [mce] Signal hw keyboard availability state over D-Bus System Bus. Fixes JB#25232
- Loading branch information