libinput e suporte a touchscreen

2

Eu tenho o Ubuntu 16.04 rodando no Dell 13 5368 2-em-1 com touchscreen, mas não funciona.

xinput:

    ⎡ Virtual core pointer                      id=2    [master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
    ⎜   ↳ Logitech T400                             id=10   [slave  pointer  (2)]
    ⎜   ↳ DELL073B:00 06CB:7E7E Touchpad            id=11   [slave  pointer  (2)]
    ⎜   ↳ SynPS/2 Synaptics TouchPad                id=15   [slave  pointer  (2)]
    ⎜   ↳ Raydium Corporation Raydium Touch System  id=18   [slave  pointer  (2)]
    ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
        ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
        ↳ Power Button                              id=6    [slave  keyboard (3)]
        ↳ Video Bus                                 id=7    [slave  keyboard (3)]
        ↳ Power Button                              id=8    [slave  keyboard (3)]
        ↳ Sleep Button                              id=9    [slave  keyboard (3)]
        ↳ Intel Virtual Button driver               id=12   [slave  keyboard (3)]
        ↳ Intel HID events                          id=13   [slave  keyboard (3)]
        ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]
        ↳ Dell WMI hotkeys                          id=16   [slave  keyboard (3)]
        ↳ Logitech T400                             id=17   [slave  keyboard (3)]
        ↳ Integrated_Webcam_HD                      id=19   [slave  keyboard (3)]

xinput list-props:

Device 'Raydium Corporation Raydium Touch System':
    Device Enabled (139):   1
    Coordinate Transformation Matrix (141): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Calibration Matrix (315):  1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Calibration Matrix Default (316):  1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Send Events Modes Available (260): 1, 0
    libinput Send Events Mode Enabled (261):    0, 0
    libinput Send Events Mode Enabled Default (262):    0, 0
    Device Node (263):  "/dev/input/event11"
    Device Product ID (264):    9094, 12561
    libinput Horizonal Scroll Enabled (265):    0

/usr/share/X11/xorg.conf.d/90-libinput.conf:

# Match on all types of devices but tablet devices and joysticks
Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

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

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

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

grep -e "Usando o driver de entrada 'libinput'" /var/log/Xorg.0.log

[     3.968] (II) Using input driver 'libinput' for 'Power Button'
[     4.000] (II) Using input driver 'libinput' for 'Video Bus'
[     4.013] (II) Using input driver 'libinput' for 'Power Button'
[     4.033] (II) Using input driver 'libinput' for 'Sleep Button'
[     4.045] (II) Using input driver 'libinput' for 'Logitech T400'
[     4.061] (II) Using input driver 'libinput' for 'DELL073B:00 06CB:7E7E Touchpad'
[     4.091] (II) Using input driver 'libinput' for 'Intel Virtual Button driver'
[     4.106] (II) Using input driver 'libinput' for 'Intel HID events'
[     4.124] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[     4.153] (II) Using input driver 'libinput' for 'SynPS/2 Synaptics TouchPad'
[     4.178] (II) Using input driver 'libinput' for 'Dell WMI hotkeys'
[     4.194] (II) Using input driver 'libinput' for 'Logitech T400'
[     4.198] (II) Using input driver 'libinput' for 'Raydium Corporation Raydium Touch System'
[     4.344] (II) Using input driver 'libinput' for 'Integrated_Webcam_HD'

Parece que o dispositivo está ativado, o driver xinput carregado, mas não funciona. Não foi possível obter nenhum evento no dispositivo. Alguma idéia?

    
por Vladimir Shabunin 22.12.2016 / 17:42

1 resposta

0

Primeiro, verifique se cat /dev/input/event11 e a tela tocante fornecerão alguns dados no terminal. No caso, o dispositivo e o driver do kernel funcionam corretamente.

Outra coisa, verifique se o seu usuário está no grupo "input". Para mim tudo, exceto TS funcionou bem, mesmo sem o meu usuário estar no grupo de entrada.

    
por okias 18.05.2018 / 15:31