Home
last modified time | relevance | path

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

123

/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-uclogic-params.c1 // SPDX-License-Identifier: GPL-2.0+
3 * HID driver for UC-Logic devices not fully compliant with HID standard
4 * - tablet initialization and parameter retrieval
16 #include "hid-uclogic-params.h"
17 #include "hid-uclogic-rdesc.h"
19 #include "hid-ids.h"
26 * uclogic_params_pen_inrange_to_str() - Convert a pen in-range reporting type
28 * @inrange: The in-range reporting type to convert.
50 * uclogic_params_pen_hid_dbg() - Dump tablet interface pen parameters
54 * Dump tablet interface pen parameters with hid_dbg(). The dump is indented
[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>
27 #include "hid-ids.h"
28 #include "hid-vivaldi-common.h"
31 * C(hrome)B(ase)A(ttached)S(witch) - switch exported by Chrome EC and reporting
32 * state of the "Whiskers" base - attached or detached. Whiskers USB device also
33 * reports position of the keyboard - folded or not. Combining base state and
34 * position allows us to generate proper "Tablet mode" events.
64 return -ENOMEM; in cbas_ec_query_base()
[all …]
H A Dwacom_sys.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * USB Wacom tablet support - system specific code
25 } while ((retval == -ETIMEDOUT || retval == -EAGAIN) && --retries); in wacom_get_report()
42 } while ((retval == -ETIMEDOUT || retval == -EAGAIN) && --retries); in wacom_set_report()
107 struct wacom_wac *wacom_wac = &wacom->wacom_wac; in wacom_wac_pen_serial_enforce()
108 struct wacom_features *features = &wacom_wac->features; in wacom_wac_pen_serial_enforce()
113 if (wacom_wac->serial[0] || !(features->quirks & WACOM_QUIRK_TOOLSERIAL)) in wacom_wac_pen_serial_enforce()
117 for (i = 0; i < report->maxfield; i++) { in wacom_wac_pen_serial_enforce()
118 for (j = 0; j < report->field[i]->maxusage; j++) { in wacom_wac_pen_serial_enforce()
119 struct hid_field *field = report->field[i]; in wacom_wac_pen_serial_enforce()
[all …]
H A Dhid-kye.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 #include "hid-ids.h"
21 * - Add battery and sleep support for EasyPen M406W and MousePen M508WX
22 * - Investigate ScrollZ.MiceFMT buttons of EasyPen M406
163 0x15, 0xFF, /* Logical Minimum (-1), */
219 0x15, 0x81, /* Logical Minimum (-127), */
233 0x09, 0x46, /* Usage (Tablet Pick), */
306 0x15, 0xFF, /* Logical Minimum (-1), */
335 14080, 10240, 1023, 55, 40, -1, 0x13, false},
342 40960, 25600, 1023, 1000, 625, -2, 0x13, false,
[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/lenovo/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
44 will be called lenovo-wmi-camera.
47 tristate "Lenovo Yoga Tablet Mode Control"
53 This driver maps the Tablet Mode Control switch to SW_TABLET_MODE input
75 support for Fn-Fx key combinations, Bluetooth control, video
78 <file:Documentation/admin-guide/laptops/thinkpad-acpi.rst> and
79 <http://ibm-acpi.sf.net/> .
81 This driver was formerly known as ibm-acpi.
85 Note that if you want ThinkPad-ACPI to be built-in instead of
86 modular, ALSA and rfkill will also have to be built-in.
[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 */
65 /* 1: LSuper (Page 0x07, usage 0xE3) -- unclear what to do */
66 /* 2: Toggle SW_ROTATE_LOCK -- easy to implement if seen in wild */
75 /* 13 has two different meanings in the spec -- ignore it. */
[all …]
/linux/drivers/platform/x86/
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()
/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";
21 bits-per-pixel = <16>;
23 display-timings {
24 native-mode = <&timing0>;
25 timing0: timing-800x480 {
26 clock-frequency = <0>; /* unused but required */
29 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/platform/x86/x86-android-tablets/
H A Dlenovo.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Copyright (C) 2021-2023 Hans de Goede <hansg@kernel.org>
16 #include <linux/input-event-codes.h>
29 #include "shared-psy-info.h"
30 #include "x86-android-tablets.h"
35 * The Android kernels have a hack in the i915 driver to write a non-standard
36 * panel specific DSI register to set the duty-cycle of the LCD's PWM output.
48 * But on some models the panel's PWM output defaults to a duty-cycle of
75 PROPERTY_ENTRY_GPIO("reset-gpios", &cherryview_gpiochip_nodes[1], 53, GPIO_ACTIVE_HIGH),
76 PROPERTY_ENTRY_GPIO("irq-gpios", &cherryview_gpiochip_nodes[1], 56, GPIO_ACTIVE_HIGH),
[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/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;
/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.
34 /sys/kernel/debug/i2c/<i2c-bus>/<i2c-device>/
39 $ ls -l /sys/bus/i2c/drivers/edt_ft5x06
44 0-0038 -> ../../../../devices/platform/soc/fcfee800.i2c/i2c-0/0-0038
48 /sys/kernel/debug/i2c/i2c-0/0-0038/
53 (readonly) contains the number of sensor fields in X- and
[all …]
/linux/tools/testing/selftests/hid/tests/
H A Dtest_wacom_generic.py2 # SPDX-License-Identifier: GPL-2.0
3 # -*- coding: utf-8 -*-
111 number and tool-type identifier. Values of ``0`` may sometimes be
112 used for the out-of-range condition.
150 range 0 cm - 5 cm) and exact unit comparison (e.g. 1 inch is
151 not within the range 0 cm - 5 cm).
153 phys_size = (field.physical_max - field.physical_min) * 10 ** (field.unit_exp)
163 Skeleton object for all kinds of tablet devices.
173 self.ring = -1
333 Bare-bones opaque tablet with a minimum of features.
[all …]
/linux/drivers/input/tablet/
H A Dwacom_serial4.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Wacom protocol 4 serial tablet driver
6 * Copyright 2011-2012 Julian Squires <julian@cipht.net>
13 * - elo, gunze drivers by Vojtech Pavlik <vojtech@ucw.cz>;
14 * - wacom_w8001 driver by Jaya Kumar <jayakumar.lkml@gmail.com>;
15 * - the USB wacom input driver, credited to many people
16 * (see drivers/input/tablet/wacom.h);
17 * - new and old versions of linuxwacom / xf86-input-wacom credited to
20 * - and xf86wacom.c (a presumably ancient version of the linuxwacom code),
24 * - support pad buttons; (requires access to a model with pad buttons)
[all …]
/linux/drivers/gpu/drm/vboxvideo/
H A Dvbox_drv.h1 /* SPDX-License-Identifier: MIT */
3 * Copyright (C) 2013-2017 Oracle Corporation
40 #define GUEST_HEAP_OFFSET(vbox) ((vbox)->full_vram_size - \
43 #define GUEST_HEAP_USABLE_SIZE (VBVA_ADAPTER_INFORMATION_SIZE - \
61 /* Array of structures for receiving mode hints. */
71 * Is user-space using an X.Org-style layout of one large frame-buffer
101 * When setting a mode we not only pass the mode to the hypervisor,
103 * for the emulated USB tablet. This input-mapping may change when
104 * the mode on *another* crtc changes.
106 * This means that sometimes we must do a modeset on other crtc-s then
[all …]

123