Форум русскоязычного сообщества Ubuntu


Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества?
Помогите нам с документацией!

Автор Тема: Эмуляция правой кнопки мыши на тачскрине планшета долгим тапом  (Прочитано 1648 раз)

0 Пользователей и 1 Гость просматривают эту тему.

leserf50

  • Автор темы
  • Гость
Тачскрин: GXTP7386

Планшет: chuwi hi 10x

Не работает эмуляция ПКМ долгим тапом по тачу, добавил в конфиг xorg 10-evdev.conf такие строчки:

        Option "EmulateThirdButton" "1"
        Option "EmulateThirdButtonTimeout" "750"
        Option "EmulateThirdButtonMoveThreshold" "50

правый клик в выводе xinput list-props 14

Evdev Third Button Emulation (288): 1
Evdev Third Button Emulation Timeout (289): 750
Evdev Third Button Emulation Button (290): 3
Evdev Third Button Emulation Threshold (291): 50

В общем правый клик включен, но не работает... В libinput скорее всего тоже, но не пробовал



Выводы комманд:

xinput list 14

GXTP7386:00 27C6:011A                    id=14 [slave  pointer  (2)]
Reporting 4 classes:
Class originated from: 14. Type: XIButtonClass
Buttons supported: 5
Button labels: "Button Unknown" "Button Unknown" "Button Unknown" "Button Wheel Up" "Button Wheel Down"
Button state:
Class originated from: 14. Type: XIValuatorClass
Detail for Valuator 0:
  Label: Abs MT Position X
  Range: 0.000000 - 6000.000000
  Resolution: 44000 units/m
  Mode: absolute
  Current value: 5185.000000
Class originated from: 14. Type: XIValuatorClass
Detail for Valuator 1:
  Label: Abs MT Position Y
  Range: 0.000000 - 9600.000000
  Resolution: 44000 units/m
  Mode: absolute
  Current value: 1105.000000
Class originated from: 14. Type: XITouchClass
Touch mode: direct
Max number of touches: 10

xinput list-props 14

Device 'GXTP7386:00 27C6:011A':
Device Enabled (142): 1
Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (275): 0
Device Accel Constant Deceleration (276): 1.000000
Device Accel Adaptive Deceleration (277): 1.000000
Device Accel Velocity Scaling (278): 10.000000
Device Product ID (265): 10182, 282
Device Node (266): "/dev/input/event15"
Evdev Axis Inversion (279): 0, 0
Evdev Axis Calibration (280): <no items>
Evdev Axes Swap (281): 0
Axis Labels (282): "Abs MT Position X" (300), "Abs MT Position Y" (301), "None" (0), "None" (0)
Button Labels (283): "Button Unknown" (268), "Button Unknown" (268), "Button Unknown" (268), "Button Wheel Up" (148), "Button Wheel Down" (149)
Evdev Scrolling Distance (284): 0, 0, 0
Evdev Middle Button Emulation (285): 0
Evdev Middle Button Timeout (286): 50
Evdev Middle Button Button (287): 2
Evdev Third Button Emulation (288): 1
Evdev Third Button Emulation Timeout (289): 750
Evdev Third Button Emulation Button (290): 3
Evdev Third Button Emulation Threshold (291): 50
Evdev Wheel Emulation (292): 0
Evdev Wheel Emulation Axes (293): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (294): 10
Evdev Wheel Emulation Timeout (295): 200
Evdev Wheel Emulation Button (296): 4
Evdev Drag Lock Buttons (297): 0

« Последнее редактирование: 15 Ноября 2020, 14:46:20 от leserf50 »

Оффлайн AlexDem

  • Активист
  • *
  • Сообщений: 696
    • Просмотр профиля
В общем правый клик включен, но не работает...
Не совсем понял, он не работает вообще даже клавишей на тачпаде, или не работает именно долгим тапом? А тапом двумя пальцами не пробовал? У меня именно так работает правый клик, если не пользоваться клавишами.

Оффлайн andytux

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 6834
    • Просмотр профиля
AlexDem, внимательно прочитай заголовок: "...на тачскрине планшета". Нет там клавиш.
Вот только автор ни словом не обмолвился о системе.
« Последнее редактирование: 15 Ноября 2020, 13:18:38 от andytux »

leserf50

  • Автор темы
  • Гость
Вот только автор ни словом не обмолвился о системе.
Ubuntu 18.04, i3wm

Пользователь добавил сообщение 15 Ноября 2020, 13:32:31:
А тапом двумя пальцами не пробовал
Тоже не пашет

Пользователь добавил сообщение 15 Ноября 2020, 13:42:33:
А, пардон я фак посмотреть забыл, ща представлю все


Chuwi Hi 10X
Ubuntu 18.04

uname -a:

Linux ubuntu 4.15.0-123-generic #126-Ubuntu SMP Wed Oct 21 09:40:11 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

lsusb:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 8087:0aaa Intel Corp.
Bus 001 Device 004: ID 0bda:5876 Realtek Semiconductor Corp.
Bus 001 Device 003: ID 0bda:5842 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lspci:

00:00.0 Host bridge: Intel Corporation Device 31f0 (rev 03)
00:00.1 Signal processing controller: Intel Corporation Device 318c (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Device 3185 (rev 03)
00:0c.0 Network controller: Intel Corporation Device 31dc (rev 03)
00:0e.0 Audio device: Intel Corporation Device 3198 (rev 03)
00:0f.0 Communication controller: Intel Corporation Device 319a (rev 03)
00:12.0 SATA controller: Intel Corporation Device 31e3 (rev 03)
00:13.0 PCI bridge: Intel Corporation Device 31d8 (rev f3)
00:13.1 PCI bridge: Intel Corporation Device 31d9 (rev f3)
00:13.2 PCI bridge: Intel Corporation Device 31da (rev f3)
00:15.0 USB controller: Intel Corporation Device 31a8 (rev 03)
00:16.0 Signal processing controller: Intel Corporation Device 31ac (rev 03)
00:16.1 Signal processing controller: Intel Corporation Device 31ae (rev 03)
00:16.2 Signal processing controller: Intel Corporation Device 31b0 (rev 03)
00:16.3 Signal processing controller: Intel Corporation Device 31b2 (rev 03)
00:17.0 Signal processing controller: Intel Corporation Device 31b4 (rev 03)
00:17.1 Signal processing controller: Intel Corporation Device 31b6 (rev 03)
00:17.2 Signal processing controller: Intel Corporation Device 31b8 (rev 03)
00:17.3 Signal processing controller: Intel Corporation Device 31ba (rev 03)
00:18.0 Signal processing controller: Intel Corporation Device 31bc (rev 03)
00:18.1 Signal processing controller: Intel Corporation Device 31be (rev 03)
00:18.2 Signal processing controller: Intel Corporation Device 31c0 (rev 03)
00:18.3 Signal processing controller: Intel Corporation Device 31ee (rev 03)
00:19.0 Signal processing controller: Intel Corporation Device 31c2 (rev 03)
00:19.1 Signal processing controller: Intel Corporation Device 31c4 (rev 03)
00:19.2 Signal processing controller: Intel Corporation Device 31c6 (rev 03)
00:1c.0 SD Host controller: Intel Corporation Device 31cc (rev 03)
00:1e.0 SD Host controller: Intel Corporation Device 31d0 (rev 03)
00:1f.0 ISA bridge: Intel Corporation Device 31e8 (rev 03)
00:1f.1 SMBus: Intel Corporation Device 31d4 (rev 03)
« Последнее редактирование: 15 Ноября 2020, 13:46:56 от leserf50 »

Оффлайн AlexDem

  • Активист
  • *
  • Сообщений: 696
    • Просмотр профиля
А, точно, я что-то не обратил внимание про то, что это планшет. У меня была на ноуте схожая проблема, я решил её путем автозапуска вот этого скрипта: https://github.com/avernois/enable-elantech-on-ubuntu

Но так как это экран, то наверное тут другое.

leserf50

  • Автор темы
  • Гость
AlexDem, оба скрипта для synaptics драйвера, о чем свидетельствует их содержимое.

А мне надо для libinput или evdev.

Оффлайн ALiEN

  • Администратор
  • Старожил
  • *
  • Сообщений: 6690
  • 20% Cooler
    • Просмотр профиля
добавил в конфиг xorg 10-evdev.conf такие строчки:     Option "EmulateThirdButton" "1"
        Option "EmulateThirdButtonTimeout" "750"
        Option "EmulateThirdButtonMoveThreshold" "50
И всё? Как минимум, должны быть
Section ...
...
EndSection
🖥 AsRock B550M Pro4 :: AMD Ryzen 5 3600 :: 16 GB DDR4 :: AMD Radeon RX 6600 :: XFCE
💻 ACER 5750G :: Intel Core i5-2450M :: 6 GB DDR3 :: GeForce GT 630M :: XFCE

leserf50

  • Автор темы
  • Гость
ALiEN175, тогда бы иксы точно падали, но они ж не падают?!

А добавил я сюда:

cat /usr/share/X11/xorg.conf.d/10-evdev.conf
#
# Catch-all evdev loader for udev-based systems
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "EmulateThirdButton" "1"
        Option "EmulateThirdButtonTimeout" "750"
        Option "EmulateThirdButtonMoveThreshold" "50"
EndSection

мб сюда надо добавить кнопку, скиньте пж команду, я не понимаю тут нифига:
Button Labels (283): "Button Unknown" (268), "Button Unknown" (268), "Button Unknown" (268), "Button Wheel Up" (148), "Button Wheel Down" (149)

Usage: xinput set-prop <device> [--type=atom|float|int] [--format=8|16|32] <property> <val> [<val> ...]

xinput list

⎡ Virtual core pointer                    id=2 [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              id=4 [slave  pointer  (2)]
⎜   ↳ GXTP7386:00 27C6:011A                    id=14 [slave  pointer  (2)]
⎜   ↳ GXTP7386:00 27C6:011A Pen                id=15 [slave  pointer  (2)]
⎣ Virtual core keyboard                    id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard              id=5 [slave  keyboard (3)]
    ↳ Video Bus                                id=6 [slave  keyboard (3)]
    ↳ Power Button                            id=7 [slave  keyboard (3)]
    ↳ Front Camera: Front Camera              id=12 [slave  keyboard (3)]
    ↳ Back Camera: Back Camera                id=13 [slave  keyboard (3)]
    ↳ GXTP7386:00 27C6:011A Keyboard          id=16 [slave  keyboard (3)]
    ↳ Intel HID events                        id=17 [slave  keyboard (3)]
    ↳ Intel HID 5 button array                id=18 [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            id=19 [slave  keyboard (3)



Пользователь добавил сообщение 16 Ноября 2020, 12:18:58:
И... Ни у кого нет идей чтоли?
« Последнее редактирование: 16 Ноября 2020, 12:18:58 от leserf50 »

leserf50

  • Автор темы
  • Гость
Досвидания, я так и думал, что меня заигнорят, ну спасибо, акк удален

 

Страница сгенерирована за 0.035 секунд. Запросов: 25.