Skip to content

Commit b77ee38

Browse files
committed
registry: Add support for tablet mode switch on Surface Pro 8
Add a KIP subsystem tablet-mode switch device for the Surface Pro 8. The respective driver for this device provides SW_TABLET_MODE input events for user-space based on the state of the keyboard cover (e.g. detached, folded-back, normal/laptop mode). Signed-off-by: Maximilian Luz <[email protected]>
1 parent 07d8f96 commit b77ee38

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

module/src/clients/surface_aggregator_registry.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ static const struct software_node ssam_node_tmp_pprof = {
7777
.parent = &ssam_node_root,
7878
};
7979

80+
/* Tablet-mode switch via KIP subsystem. */
81+
static const struct software_node ssam_node_kip_tablet_switch = {
82+
.name = "ssam:01:0e:01:00:01",
83+
.parent = &ssam_node_root,
84+
};
85+
8086
/* DTX / detachment-system device (Surface Book 3). */
8187
static const struct software_node ssam_node_bas_dtx = {
8288
.name = "ssam:01:11:01:00:00",
@@ -264,11 +270,11 @@ static const struct software_node *ssam_node_group_sp8[] = {
264270
&ssam_node_bat_ac,
265271
&ssam_node_bat_main,
266272
&ssam_node_tmp_pprof,
273+
&ssam_node_kip_tablet_switch,
267274
&ssam_node_hid_kip_keyboard,
268275
&ssam_node_hid_kip_penstash,
269276
&ssam_node_hid_kip_touchpad,
270277
&ssam_node_hid_kip_iid5,
271-
/* TODO: Add support for tablet mode switch. */
272278
NULL,
273279
};
274280

0 commit comments

Comments
 (0)