Home
last modified time | relevance | path

Searched +full:tablet +full:- +full:mode (Results 1 – 25 of 76) sorted by relevance

1234

/linux/drivers/platform/surface/
H A Dsurface_aggregator_tabletsw.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Surface System Aggregator Module (SSAM) tablet mode switch driver.
19 /* -- SSAM generic tablet switch driver framework. -------------------------- */
73 const char *state = sw->ops.state_name(sw, &sw->state); in state_show()
92 int tablet, status; in ssam_tablet_sw_update_workfn() local
94 status = sw->ops.get_state(sw, &state); in ssam_tablet_sw_update_workfn()
98 if (sw->state.source == state.source && sw->state.state == state.state) in ssam_tablet_sw_update_workfn()
100 sw->state = state; in ssam_tablet_sw_update_workfn()
103 tablet = sw->ops.state_is_tablet_mode(sw, &state); in ssam_tablet_sw_update_workfn()
104 input_report_switch(sw->mode_switch, SW_TABLET_MODE, tablet); in ssam_tablet_sw_update_workfn()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # Microsoft Surface Platform-Specific Drivers
7 bool "Microsoft Surface Platform-Specific Device Drivers"
11 Say Y here to get to see options for platform-specific device drivers
29 be called surface3-wmi.
47 on 5th- and 6th-generation Microsoft Surface devices (including
55 thermal sensor access, and real-time clock information, depending on
59 tristate "Surface System Aggregator Module User-Space Interface"
62 Provides a misc-device interface to the Surface System Aggregator
67 the SSAM controller. Said client device manages a misc-device
[all …]
H A Dsurface_dtx.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Provides a user-space interface to properly handle clipboard/tablet
9 * use), or request detachment via user-space.
11 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com>
34 /* -- SSAM interface. ------------------------------------------------------- */
136 /* -- Main structures. ------------------------------------------------------ */
191 mutex_destroy(&ddev->write_lock); in __sdtx_device_release()
198 kref_get(&ddev->kref); in sdtx_device_get()
206 kref_put(&ddev->kref, __sdtx_device_release); in sdtx_device_put()
210 /* -- Firmware value translations. ------------------------------------------ */
[all …]
/linux/drivers/hid/
H A Dhid-letsketch.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Driver for the LetSketch / VSON WP9620N drawing tablet.
6 * This drawing tablet is also sold under other brand names such as Case U,
12 * to special key-combos. E.g. the 2 stylus buttons send right mouse clicks /
23 * Interface 1 EP 0x82 bootclass mouse, rdesc len 83, report id 0x0a, Tablet
27 * with a phone in portraid mode, while using the tablet in landscape mode.
31 * This interfaces send various hard-coded key-combos for the pad buttons
35 * This reports right-click mouse-button events for the 1st stylus button
46 #include "hid-ids.h"
71 return hid_hw_open(data->hdev); in letsketch_open()
[all …]
H A Dhid-waltop.c1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #include "hid-ids.h"
23 * tablet input mode, switching it between "default", "tablet" and "ink".
25 * This driver only uses "default" mode for all the supported tablets. This
26 * mode tries to be HID-compatible (not very successfully), but cripples the
29 * The "tablet" mode uses some proprietary, yet decipherable protocol, which
30 * represents the correct resolution, but is possibly HID-incompatible (i.e.
33 * The purpose of the "ink" mode is unknown.
35 * The feature reports needed for switching to each mode are these:
38 * 02 16 01 tablet
[all …]
H A Dhid-google-hammer.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Author: Wei-Ning Huang <wnhuang@google.com>
18 #include <linux/input/vivaldi-fmap.h>
28 #include "hid-ids.h"
29 #include "hid-vivaldi-common.h"
32 * C(hrome)B(ase)A(ttached)S(witch) - switch exported by Chrome EC and reporting
33 * state of the "Whiskers" base - attached or detached. Whiskers USB device also
34 * reports position of the keyboard - folded or not. Combining base state and
35 * position allows us to generate proper "Tablet mode" events.
66 return -ENOMEM; in cbas_ec_query_base()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
22 most commonly used to refer to the USB-HID specification, but other
27 removed from the HID bus by the transport-layer drivers, such as
58 to work on raw hid events when they want to, and avoid using transport-specific
64 tristate "User-space I/O driver support for HID subsystem"
67 Say Y here if you want to provide HID I/O Drivers from user-space.
68 This allows to write I/O drivers in user-space and feed the data from
71 user-space device.
73 This driver cannot be used to parse HID-reports in user-space and write
74 special HID-drivers. You should use hidraw for that.
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-driver-wacom4 Contact: linux-bluetooth@vger.kernel.org
7 controls reporting speed of Wacom bluetooth tablet. Reading
8 from this file returns 1 if tablet reports in high speed mode
14 Contact: linux-input@vger.kernel.org
21 presence of said LEDs and OLEDs on the tablet device.
25 Contact: linux-input@vger.kernel.org
29 when the stylus does not touch the tablet surface, and no
35 Contact: linux-input@vger.kernel.org
39 when the stylus touches the tablet surface, or any button is
44 Contact: linux-input@vger.kernel.org
[all …]
H A Dsysfs-bus-surface_aggregator-tabletsw6 This attribute returns a string with the current type-cover
10 - "disconnected": The type-cover has been disconnected.
12 - "closed": The type-cover has been folded closed and lies on
15 - "laptop": The type-cover is open and in laptop-mode, i.e.,
18 - "folded-canvas": The type-cover has been folded back
19 part-ways, but does not lie flush with the back side of the
20 device. In general, this means that the kick-stand is used
23 - "folded-back": The type cover has been fully folded back and
26 - "<unknown>": The current state is unknown to the driver, for
27 example due to newer as-of-yet unsupported hardware.
[all …]
H A Dsysfs-driver-intc_sar7 Specific Absorption Rate (SAR) regulatory mode is typically
11 the current SAR regulatory mode on the Dynamic SAR driver using
13 this sysfs node, the currently configured regulatory mode value
23 - The regulatory mode value has one of the above values.
24 - The default regulatory mode used in the driver is 0.
36 - device_mode
37 - bandtable_index
38 - antennatable_index
39 - sartable_index
46 device-mode like laptop/tablet/clamshell etc. and the
[all …]
/linux/drivers/platform/x86/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
12 x86 platforms, including vendor-specific laptop extension drivers.
23 This driver adds support for the ACPI-WMI (Windows Management
26 ACPI-WMI is a proprietary extension to ACPI to expose parts of the
27 ACPI firmware to userspace - this is done through various vendor
38 any ACPI-WMI devices.
45 Say Y here if you want to be able to read a firmware-embedded
50 be called wmi-bmof.
63 control, fn-lock, mic-mute LED, and other extra features.
66 will be called huawei-wmi.
[all …]
H A Ddual_accel_detect.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Helper code to detect 360 degree hinges (yoga) style 2-in-1 devices using 2 accelerometers
7 * ACPI methods, to let the firmware know if the 2-in-1 is in tablet- or laptop-mode.
9 * tablet-mode as well as to report SW_TABLET_MODE info to the OS.
25 adev = acpi_dev_get_first_match_dev("BOSC0200", NULL, -1); in dual_accel_detect_bosc0200()
39 if (acpi_dev_present("KIOX010A", NULL, -1) && in dual_accel_detect()
40 acpi_dev_present("KIOX020A", NULL, -1)) in dual_accel_detect()
44 if (acpi_dev_present("DUAL250E", NULL, -1)) in dual_accel_detect()
H A Dlenovo-ymc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * lenovo-ymc.c - Lenovo Yoga Mode Control driver
13 #include <linux/input/sparse-keymap.h>
15 #include "ideapad-laptop.h"
17 #define LENOVO_YMC_EVENT_GUID "06129D99-6083-4164-81AD-F092F9D773A6"
18 #define LENOVO_YMC_QUERY_GUID "09B0EE6E-C3FD-4243-8DA1-7911FF80BB8C"
25 MODULE_PARM_DESC(force, "Force loading on boards without a convertible DMI chassis-type");
50 /* Tablet */
61 struct lenovo_ymc_private *priv = dev_get_drvdata(&wdev->dev); in lenovo_ymc_notify()
75 dev_warn(&wdev->dev, in lenovo_ymc_notify()
[all …]
H A Dlenovo-yoga-tab2-pro-1380-fastcharger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Tablet 2 1380F / 1380L models.
26 #define YT2_1380_FC_PDEV_NAME "lenovo-yoga-tab2-pro-1380-fastcharger"
28 #define YT2_1380_FC_SERDEV_NAME "serial0-0"
29 #define YT2_1380_FC_EXTCON_NAME "i2c-lc824206xa"
51 struct pinctrl_state *state = enable ? fc->gpio_state : fc->uart_state; in yt2_1380_fc_set_gpio_mode()
54 ret = pinctrl_select_state(fc->pinctrl, state); in yt2_1380_fc_set_gpio_mode()
56 dev_err(fc->dev, "Error %d setting pinctrl state\n", ret); in yt2_1380_fc_set_gpio_mode()
66 return extcon_get_state(fc->extcon, EXTCON_CHG_USB_DCP) > 0; in yt2_1380_fc_dedicated_charger_connected()
71 return extcon_get_state(fc->extcon, EXTCON_CHG_USB_FAST) > 0; in yt2_1380_fc_fast_charger_connected()
[all …]
/linux/drivers/platform/chrome/
H A Dchromeos_tbmc.c1 // SPDX-License-Identifier: GPL-2.0
2 // Driver to detect Tablet Mode for ChromeOS convertible.
30 status = acpi_evaluate_integer(adev->handle, "TBMC", NULL, &state); in chromeos_tbmc_query_switch()
32 return -ENODEV; in chromeos_tbmc_query_switch()
45 return chromeos_tbmc_query_switch(adev, adev->driver_data); in chromeos_tbmc_resume()
50 acpi_pm_wakeup_event(&adev->dev); in chromeos_tbmc_notify()
53 chromeos_tbmc_query_switch(adev, adev->driver_data); in chromeos_tbmc_notify()
56 dev_err(&adev->dev, "Unexpected event: 0x%08X\n", event); in chromeos_tbmc_notify()
70 struct device *dev = &adev->dev; in chromeos_tbmc_add()
75 return -ENOMEM; in chromeos_tbmc_add()
[all …]
/linux/drivers/input/tablet/
H A Daiptek.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright (c) 2002-2004 Bryan W. Headley <bwheadley@earthlink.net>
20 * v0.1 - Initial release
21 * v0.2 - Hack to get around fake event 28's. (Bryan W. Headley)
22 * v0.3 - Make URB dynamic (Bryan W. Headley, Jun-8-2002)
24 * v0.4 - Rewrote substantial portions of the code to deal with
26 * support of 6000U - 12000U, procfs, and macro key support
27 * (Jan-1-2003 - Feb-5-2003, Bryan W. Headley)
28 * v1.0 - Added support for diagnostic messages, count of messages
29 * received from URB - Mar-8-2003, Bryan W. Headley
[all …]
/linux/arch/arm/boot/dts/vt8500/
H A Dwm8650-mid.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm8650-mid.dts - Device tree file for Wondermedia WM8650-MID Tablet
8 /dts-v1/;
12 model = "Wondermedia WM8650-MID Tablet";
16 bits-per-pixel = <16>;
18 display-timings {
19 native-mode = <&timing0>;
20 timing0: timing-800x480 {
21 clock-frequency = <0>; /* unused but required */
24 hfront-porch = <40>;
[all …]
H A Dwm8850-w70v2.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm8850-w70v2.dts
4 * - Device tree file for Wondermedia WM8850 Tablet
5 * - 'W70-V2' mainboard
6 * - HongLianYing 'HLY070ML268-21A' 7" LCD panel
11 /dts-v1/;
13 #include <dt-bindings/pwm/pwm.h>
16 model = "Wondermedia WM8850-W70v2 Tablet";
19 compatible = "pwm-backlight";
22 brightness-levels = <0 40 60 80 100 130 190 255>;
[all …]
/linux/drivers/input/mouse/
H A Dvsxxxaa.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for DEC VSXXX-AA mouse (hockey-puck mouse, ball or two rollers)
4 * DEC VSXXX-GA mouse (rectangular mouse, with ball)
5 * DEC VSXXX-AB tablet (digitizer with hair cross or stylus)
7 * Copyright (C) 2003-2004 by Jan-Benedict Glaw <jbglaw@lug-owl.de>
24 * supply at +5V and -12V.
30 * | 4 --- 3 |
32 * -------
35 * 1 (GND) 5 7 -
36 * 2 (RxD) 2 3 -
[all …]
/linux/drivers/hid/bpf/progs/
H A DXPPen__DecoMini4.bpf.c1 // SPDX-License-Identifier: GPL-2.0-only
17 * XP-Pen devices return a descriptor with the values the driver should use when
21 * ----- ----- ----- -----
23 * | | | `- Resolution: 5080 (13d8)
24 * | | `- Maximum pressure: 8191 (1FFF)
25 * | `- Logical maximum Y: 15240 (3B88)
26 * `- Logical maximum X: 20320 (4F60)
41 * The tablet send these values when the pad buttons are pressed individually:
44 * Button 1: 06 00 05 00 00 00 00 00 -> b
45 * Button 2: 06 00 08 00 00 00 00 00 -> e
[all …]
/linux/drivers/platform/x86/intel/
H A Dhid.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/input/sparse-keymap.h>
21 TABLET_SW_AUTO = -1,
31 "If you need this please report this to: platform-driver-x86@vger.kernel.org");
36 "Enable SW_TABLET_MODE reporting -1:auto 0:off 1:at-first-event 2:at-probe. "
37 "If you need this please report this to: platform-driver-x86@vger.kernel.org");
39 /* When NOT in tablet mode, VGBS returns with the flag 0x40 */
62 /* 1: LSuper (Page 0x07, usage 0xE3) -- unclear what to do */
63 /* 2: Toggle SW_ROTATE_LOCK -- easy to implement if seen in wild */
72 /* 13 has two different meanings in the spec -- ignore it. */
[all …]
H A Dvbtn.c1 // SPDX-License-Identifier: GPL-2.0+
13 #include <linux/input/sparse-keymap.h>
21 /* Returned when NOT in tablet mode on some HP Stream x360 11 models */
23 /* When NOT in tablet mode, VGBS returns with the flag 0x40 */
45 { KE_KEY, 0xC4, { KEY_VOLUMEUP } }, /* volume-up key press */
46 { KE_IGNORE, 0xC5, { KEY_VOLUMEUP } }, /* volume-up key release */
47 { KE_KEY, 0xC6, { KEY_VOLUMEDOWN } }, /* volume-down key press */
48 { KE_IGNORE, 0xC7, { KEY_VOLUMEDOWN } }, /* volume-down key release */
49 { KE_KEY, 0xC8, { KEY_ROTATE_LOCK_TOGGLE } }, /* rotate-lock key press */
50 { KE_KEY, 0xC9, { KEY_ROTATE_LOCK_TOGGLE } }, /* rotate-lock key release */
[all …]
/linux/include/uapi/linux/surface_aggregator/
H A Ddtx.h1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * Surface DTX (clipboard detachment system driver) user-space interface.
6 * device allows user-space to control the clipboard detachment process on
9 * Copyright (C) 2020-2021 Maximilian Luz <luzmaximilian@gmail.com>
42 /* Runtime errors (non-critical) */
62 * enum sdtx_device_mode - Mode describing how (and if) the clipboard is
65 * device operates as tablet.
69 * The device operates as tablet with keyboard and
81 * struct sdtx_event - Event provided by reading from the DTX device file.
95 * enum sdtx_event_code - Code describing the type of an event.
[all …]
/linux/Documentation/input/devices/
H A Dedt-ft5x06.rst2 ----------------------------------
4 The edt-ft5x06 driver is useful for the EDT "Polytouch" family of capacitive
6 focaltec ft5x06 devices, since they contain vendor-specific firmware. In
7 particular this driver is not suitable for the Nook tablet.
18 allows setting the "click"-threshold in the range from 0 to 80.
36 (readonly) contains the number of sensor fields in X- and
37 Y-direction.
39 mode:
40 allows switching the sensor between "factory mode" and "operation
41 mode" by writing "1" or "0" to it. In factory mode (1) it is
[all …]
/linux/arch/arm64/boot/dts/mediatek/
H A Dmt8173-elm-hana-rev7.dts1 // SPDX-License-Identifier: GPL-2.0-only
6 /dts-v1/;
7 #include "mt8173-elm-hana.dtsi"
11 chassis-type = "laptop";
12 compatible = "google,hana-rev7", "mediatek,mt8173";
17 cpu_crit: cpu-crit0 {
25 /delete-node/switch-tablet-mode;
26 /delete-node/switch-volume-down;
27 /delete-node/switch-volume-up;

1234