Home
last modified time | relevance | path

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

1234

/linux/drivers/hid/bpf/progs/
H A DHuion__Inspiroy-2-S.bpf.c1 // SPDX-License-Identifier: GPL-2.0-only
18 /* Filled in by udev-hid-bpf */
26 /* How this BPF program works: the tablet has two modes, firmware mode and
27 * tablet mode. In firmware mode (out of the box) the tablet sends button events
28 * and the dial as keyboard combinations. In tablet mode it uses a vendor specific
30 * Depending on the mode some hid reports are never sent and the corresponding
33 * To switch the tablet use e.g. https://github.com/whot/huion-switcher
36 * This BPF works for both modes. The huion-switcher tool sets the
37 * HUION_FIRMWARE_ID udev property - if that is set then we disable the firmware
39 * If that property is not set we fix all hidraw nodes so the tablet works in
[all …]
H A DHuion__Dial-2.bpf.c1 // SPDX-License-Identifier: GPL-2.0-only
19 /* Filled in by udev-hid-bpf */
27 /* How this BPF program works: the tablet has two modes, firmware mode and
28 * tablet mode. In firmware mode (out of the box) the tablet sends button events
29 * and the dial as keyboard combinations. In tablet mode it uses a vendor specific
31 * Depending on the mode some hid reports are never sent and the corresponding
34 * To switch the tablet use e.g. https://github.com/whot/huion-switcher
37 * This BPF works for both modes. The huion-switcher tool sets the
38 * HUION_FIRMWARE_ID udev property - if that is set then we disable the firmware
40 * If that property is not set we fix all hidraw nodes so the tablet works in
[all …]
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/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 …]
/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 Dwacom.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * USB Wacom tablet support
5 * Copyright (c) 2000-2004 Vojtech Pavlik <vojtech@ucw.cz>
13 * Copyright (c) 2002-2011 Ping Cheng <pingc@wacom.com>
17 * v0.1 (vp) - Initial release
18 * v0.2 (aba) - Support for all buttons / combinations
19 * v0.3 (vp) - Support for Intuos added
20 * v0.4 (sm) - Support for more Intuos models, menustrip
21 * relative mode, proximity.
22 * v0.5 (vp) - Big cleanup, nifty features removed,
[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.
62 control, fn-lock, mic-mute LED, and other extra features.
65 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/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;
/linux/drivers/platform/x86/intel/
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/Documentation/admin-guide/laptops/
H A Dthinkpad-acpi.rst9 - Borislav Deianov <borislav@users.sf.net>
10 - Henrique de Moraes Holschuh <hmh@hmh.eng.br>
12 http://ibm-acpi.sf.net/
19 This driver used to be named ibm-acpi until kernel 2.6.21 and release
20 0.13-20070314. It used to be in the drivers/acpi tree, but it was
21 moved to the drivers/misc tree and renamed to thinkpad-acpi for kernel
25 The driver is named "thinkpad-acpi". In some places, like module
29 "tpacpi" is used as a shorthand where "thinkpad-acpi" would be too
33 ------
38 - Fn key combinations
[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 …]

1234